• Resolved sarahweb

    (@sarahweb)


    Hiya – updated to WP 5.5 and then went to update to PHP 7.3 and critical error – in logs I get this:

    [17-Aug-2020 11:15:51 UTC] PHP Warning: Use of undefined constant JSON_UNESCAPED_SLASHES – assumed ‘JSON_UNESCAPED_SLASHES’ (this will throw an Error in a future version of PHP) in /…../wp-content/plugins/tablepress/tablepress.php on line 63
    [17-Aug-2020 11:15:51 UTC] PHP Warning: A non-numeric value encountered in /…../wp-content/plugins/tablepress/tablepress.php on line 63

    Thank you
    Sarah

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    That sounds strange. From what I can see, this JSON_UNESCAPED_SLASHES constant was introduced in PHP 5.4, see https://www.php.net/manual/en/json.constants.php
    I can therefore only assume that there’s something special about the copy of PHP on your server. Is the JSON module integrated?

    Also, I haven’t received any reports like that before, even though TablePress has been using that constant for a while now. To me, this is also an indicator that there’s something weird going on on your server.

    Regards,
    Tobias

    Thread Starter sarahweb

    (@sarahweb)

    I have checked and JSON is switched on for PHP 7.2… I will ask server hosts and see if they can explain it also – and yes I agree its very odd for your plugin to throw errors! Was surprised myself

    I will see what else I can determine

    Thank you
    Sarah

    Thread Starter sarahweb

    (@sarahweb)

    Found error – and yes when updated to 7.3 JSON got dropped – even though its visible for 7.2 and 7.4!!

    Sorry about that – all now working correctly again 🙂

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘7.3 PHP error – critical error’ is closed to new replies.