PHP Warning

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #983736
    Ralf schmitz
    Participant

    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

    #984304
    Andre Flores
    Moderator

    Hi, 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,
    Andre

    #984630
    Ralf schmitz
    Participant

    Hello 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 715

    Now it works fine.

    Regards,
    Ralf

    #984871
    Andre Flores
    Moderator

    Hi, 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,
    Andre

    #985053
    Ralf schmitz
    Participant

    Hi 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,
    Ralf

    #985291
    Andre Flores
    Moderator

    Hi, Ralf!

    Thank you for sharing the code changes, it is much appreciated!

    Regards,
    Andre

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.