• Resolved Derek Wilcox

    (@themassapothecary)


    I have just set up a duplicate server with PHP 8 instead of 7 and cloned my site to it. Everything works perfectly with PGP except code snippets. At first, I thought it was a snippet I had active causing the problem but then I deleted the plugin and reinstalled a fresh one with no snippets already and it still crashes the site the second it is activated. Do you know when the plugin will work with PHP 8??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    The plugin is developed and tested on PHP 8, so it should be fully compatible.

    Can you provide the message associated with the error that’s causing the site to crash?

    Thread Starter Derek Wilcox

    (@themassapothecary)

    @bungeshea it just says “There has been a critical error on this website. ” and everything is Grey

    Thread Starter Derek Wilcox

    (@themassapothecary)

    In console it does have an error that says failed to load resource server responded with a status of 500 ()

    Thread Starter Derek Wilcox

    (@themassapothecary)

    Apache error logs @bungeshea

    [Thu Aug 04 16:53:29.771752 2022] [proxy_fcgi:error] [pid 28789:tid 140441068500736] [client 73.249.94.152:0] AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant \xe2\x80\x98woocommerce_allow_marketplace_suggestions\xe2\x80\x99 -............f PHP) in /home/815231.cloudwaysapps.com/vhuhiuhuyf/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 1', referer: https://wordpress-815231-2798518.cloudwaysapps.com/wp-admin/post.php?post=49961&action=edit

    Plugin Author Shea Bunge

    (@bungeshea)

    Perhaps you could enable debugging to see a more useful error message?

    Plugin Author Shea Bunge

    (@bungeshea)

    The error message you posted definitemy came from one of your snippets. It looks like you have the string woocommerce_allow_marketplace_suggestions in the snippet but it’s not quoted correctly – essentially, the code is malformed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP 8 + Fatal Error’ is closed to new replies.