- This topic has 5 replies, 2 voices, and was last updated 4 years, 3 months ago by Andre Flores.
- AuthorPosts
- July 24, 2020 at 7:17 pm #983736Ralf schmitzParticipant
Hi,
that is also a mistake.
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in/motopress-amp/vendor/simple_html_dom.php on line 1518
Invalid argument supplied for foreach() in plugins/motopress-amp/vendor/simple_html_dom.php on line 724
preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /plugins/motopress-amp/vendor/simple_html_dom.php on line 715
July 27, 2020 at 7:32 am #984304Andre FloresModeratorHi, Ralf!
Kindly submit your request to our Help Desk, providing a temporary access to WordPress dashboard, so we take a closer look at the issue.
Regards,
AndreJuly 27, 2020 at 4:00 pm #984630Ralf schmitzParticipantHello Andre,
I have WordPress 5.4.2 and PHP 7.4.
I found the error had to adjust the code insimple_html_dom.php on line 724 and in simple_html_dom.php on line 715Now it works fine.
Regards,
RalfJuly 28, 2020 at 8:17 am #984871Andre FloresModeratorHi, Ralf!
Thank you for sharing your insights. It would be much appreciated if you specify what exactly you have changed, so other users who possibly come a
cross this issue could use your solution. Thank you in advance!Regards,
AndreJuly 28, 2020 at 2:12 pm #985053Ralf schmitzParticipantHi Andre,
I’m not the plugin’s programmer?
OK the following should be exchanged.
/motopress-amp/vendor/simple_html_dom.php on line 724
$ pattern = “/ ([\ w -: \ *] *) (?: \ # ([\ w -] +) | \. ([\ w -] +))? (?: \ [@? ( !? [\ w -:] +) (?: ([! * ^ $]? =) [\ “‘]? (. *?) [\”‘]?)? \])? ([\ / ,] +) / is “;change in.
$ pattern = “/ ([\ w \ -: \ *] *) (?: \ # ([\ w \ -] +) | \. ([\ w \ -] +))? (?: \ [ @? (!? [\ w \ -:] +) (?: ([! * ^ $]? =) [\ “‘]? (. *?) [\”‘]?)? \])? ([\ /,] +) / is “;
change in.
/motopress-amp/vendor/simple_html_dom.php on line 1518
if ( ! preg_match( “/^[\w-:]+$/”, $tag ) ) {ändern in.
if ( ! preg_match( “/^[\w\-:]+$/”, $tag ) ) {
Please test it helped me no more errors in the server log.
Regards,
RalfJuly 29, 2020 at 7:28 am #985291Andre FloresModeratorHi, Ralf!
Thank you for sharing the code changes, it is much appreciated!
Regards,
Andre - AuthorPosts
- You must be logged in to reply to this topic.