Tagged: PHP Fatal Error
-
AuthorPosts
-
November 2, 2022 at 12:58 am #1370996
Hello support,
I’m receiving this error:
PHP Fatal error: Uncaught Error: Call to undefined function wc_get_notices() in /wp-content/themes/enfold/config-woocommerce/config.php:2318\nStack
What can I do to fix. Thank you!
November 2, 2022 at 3:33 pm #1371072Hey ttem,
Could you try to update to PHP 8.0 to see if that helps? If not, then please share admin WordPress login details with us in private.
Best regards,
RikardNovember 3, 2022 at 8:15 am #1371183Hi Rikard,
Updated to PHP 8.0 though still have issue. Also updated to WP 6.1November 3, 2022 at 10:12 am #1371193Hi ttem,
Thanks for giving us admin access.
I don’t seem to see any issues when I checked your site, where can we find it?Best regards,
NikkoNovember 3, 2022 at 1:52 pm #1371227I’m having a hard trying to find it as well but the error is still showing in the site error logs.
November 3, 2022 at 2:32 pm #1371236Maybe some deprecated function in child function.php?
November 5, 2022 at 7:17 am #1371405Hi ttem,
The undefined function shown is wc_get_notices however this function is defined in Woocommerce.
There seem to be many files in your child theme and there maybe some code that cause it, try to temporarily switch to the parent theme (Enfold) then rename the log files and see if it helps.
It maybe better if you use a staging site to troubleshoot the issue, since you might have visitors on your site.Best regards,
NikkoNovember 6, 2022 at 3:40 pm #1371525I’m also seeing this ‘notice’ error in logs, maybe this sheds some light on the PHP Fatal error: Uncaught Error: Call to undefined function wc_get_notices()
Payment gateway with handle ‘wc-payment-method-cod’ has been deactivated in Cart and Checkout blocks because its dependency ‘wc-blocks-registry’ is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/docs/extensibility/payment-method-integration.md#registering-assets
November 7, 2022 at 6:23 am #1371597Hi ttem,
It is possible that those errors are connected however in order to find that out we need to isolate those issues and try to fix them.
Can you create a staging site for us? so we can try to debug it further without worrying if there are any visitors on the site, if we deactivate any/all of the plugins.
Also, please provide an FTP access for the staging site and post it privately.Best regards,
NikkoNovember 7, 2022 at 8:35 am #1371618Hi Nikko,
Thank you for your help! I created a staging copy and ftp access.
November 7, 2022 at 3:13 pm #1371658Hi ttem,
Thanks for providing us both admin and FTP access.
I was able to check it and enable the debug mode as well as log the errors in wp-config.php file.define( 'WP_DEBUG', true ); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
however, I could debug.log file is not showing which seems to indicate that I’m not triggering any errors, is there a set of actions that triggers this on the live site?
Best regards,
NikkoNovember 8, 2022 at 10:16 am #1371727Hi Nikko,
I really appreciate your help on this!
I am still seeing these errors in log though I have not been able to find what is triggering them. Woocommerce conversions have significantly dropped which I strongly suspect is related to whatever is causing these errors.November 15, 2022 at 12:30 am #1372579Hi ttem,
I have checked the logs and it seems the issues that are appearing are these two things:
PHP Deprecated: Required parameter $order follows optional parameter $headers in /themes/kauai/functions.php on line 459 PHP Deprecated: Required parameter $order follows optional parameter $headers in /themes/kauai/functions.php on line 468
Which are functions to the woocommerce_email_headers filter and it’s not something we should change because the filter is defined in the woocommerce plugin itself, also that notice can be ignored.
Everything else in the log file shows:auditor:scan=fingerprint
Seems to be coming from a scanner.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.