• Resolved critara

    (@critara)


    Hi Nicola,

    since the latest updates I have encountered an error which creates problems in the backend of my wordpress installation (on two website so far, since I have not updated the others yet for obvious reasons). I am not sure whether the problem is due to WP updates, to the plugin updates or to a compatibility issue, unfortunately.

    The two websites where I have had this problem seem to work fine (forms function and the website outside looks just fine), but when I log into WP’s backend I am faced with a style-less interface, and when clicking on some of the links inside the backend, a 400 error page appears telling me that the headers are too large. It does not always happen, but it has happened on some of them.
    As soon as I delete the plugin via FTP, the website works fine.

    These are the errors found in the WP error log (I have hidden data of my website for security reasons):

    [24-Jan-2019 10:25:36 UTC] PHP Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/*MY-ACCOUNT*/*MYWEBSITE.EXT*/wp-content/plugins/smart-cookie-kit/simple_html_dom.php on line 688
    [24-Jan-2019 10:25:36 UTC] PHP Warning: Invalid argument supplied for foreach() in home/*MY-ACCOUNT*/*MYWEBSITE.EXT*/wp-content/plugins/smart-cookie-kit/simple_html_dom.php on line 695
    [24-Jan-2019 10:25:36 UTC] PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in home/*MY-ACCOUNT*/*MYWEBSITE.EXT*/wp-content/plugins/smart-cookie-kit/simple_html_dom.php on line 1377

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same error. Dashboard works but homepage of site is broken.

    PHP message: PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/*/plugins/smart-cookie-kit/simple_html_dom.php on line 1377

    Edit: Problem is caused by a bug in simple html dom parser with PHP7.3. See this thread. It needs to be updated https://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.7/

    • This reply was modified 5 years, 10 months ago by zamson.
    • This reply was modified 5 years, 10 months ago by zamson.
    • This reply was modified 5 years, 10 months ago by zamson.
    • This reply was modified 5 years, 10 months ago by zamson.
    Plugin Author Nicola Modugno

    (@shark986)

    Hello @critara,
    as @zamson has pointed out there is a compatibility issue.
    Please, could you confirm that you are running your sites on PHP 7.3?
    If yes, you could solve downgrading temporary the PHP version.
    I will do some checks and release soon an update.

    I will update you on this post.
    Thank you, Nicola.

    Thread Starter critara

    (@critara)

    Thank you Nicola and @zamson, I have rolled back to php 7.2 and that solved the problem.
    Thank you again, Nicola, this is a great plugin, by the way. Same for your support ??

    P.S. By the way, I was having the opposite problem @zamson had: my dashboard was broken but the website was otherwise working just fine.

    • This reply was modified 5 years, 10 months ago by critara.

    @shark986 Still seeing errors with PHP 7.3.x

    PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /example.comweb/app/plugins/smart-cookie-kit/simple_html_dom.php on line 1377

    Would be great if you could package the plugin with the new version of simple_html_dom (https://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.7/).

    Errors goes away when replacing simple_html_dom.php in the plugin root.

    • This reply was modified 5 years, 8 months ago by zamson.
    • This reply was modified 5 years, 8 months ago by zamson.
    Plugin Author Nicola Modugno

    (@shark986)

    @critara, @zamson,
    I have updated the plugin with a more recent version of simplePhpDom.
    Please, let me know ??
    Thank you, Nicola.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘problems after latest updates’ is closed to new replies.