-
AuthorPosts
-
October 9, 2023 at 10:02 pm #1421947
I’ve been geting the following in error logs. Need some help determining what is causing this.
PHP Fatal error: Uncaught Error: Call to undefined function wc_get_notices() in /wp-content/themes/enfold/config-woocommerce/config.php:2818\nStack
October 10, 2023 at 7:18 am #1421971Hey ttem,
Thank you for the inquiry.
Do you have any plugins that run scheduled tasks in the background? The error occurs in the enfold/config-woocommerce/config.php > avia_woocommerce_cart_dropdown function, which is used in the avia_woocommerce_cart_placement function and is responsible for rendering the cart dropdown.
If you want to disable the function temporarily, please add this code in the functions.php file.
remove_action( 'ava_main_header', 'avia_woocommerce_cart_dropdown', 10 ); remove_action( 'ava_inside_main_menu', 'avia_woocommerce_cart_dropdown', 10 ); remove_action( 'ava_before_bottom_main_menu', 'avia_woocommerce_cart_dropdown', 10 );
Best regards,
IsmaelOctober 10, 2023 at 8:52 pm #1422052Hi Ismael,
Thanks for quick reply! I don’t have any scheduled task plug-in. Anyway to troubleshoot and not lose the cart drop down functionality?
October 11, 2023 at 10:15 am #1422096Hi,
Thank you for the update.
Do you get the error when the plugins are deactivated? Please provide the WP and S/FTP login details in the private field so that we can further check the issue.
Best regards,
IsmaelOctober 12, 2023 at 10:36 pm #1422272Thank you..much appreciated! logins below.
October 13, 2023 at 5:49 am #1422331Hi,
Thank you for the info.
We cannot find the error log in any folders and we don’t see any issues with the site when we switched to debug mode. Did you change the location of the error log?
Best regards,
IsmaelOctober 13, 2023 at 12:46 pm #1422387You can access by clicking on WP Engine tab in the wp admin dashboard
October 16, 2023 at 5:42 am #1422616Hi,
We aren’t noticing any problems on the frontend, but when we try to access the error logs in the WP Engine panel, we encounter this error. Is it possibly restricted in some way?”
[Mon Oct 16 01:10:42.087656 2023] [autoindex:error] [pid 16742] [client .....:0] AH01276: Cannot serve directory /nas/..../live/..../wp-includes/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive [Mon Oct 16 02:42:23.368566 2023] [autoindex:error] [pid 19213] [client ....] AH01276: Cannot serve directory /.../content/live/..../wp-includes/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
Thank you for your patience.
Best regards,
IsmaelOctober 21, 2023 at 9:34 am #1423194Hi Ismael,
Sorry I missed your response till now. Those are the error logs. I did add your code function to child function.php to disable cart dropdown. So would not be showing that error in the error logs unless function disable code is removed.
October 23, 2023 at 3:00 am #1423352Hi,
Thank you for the update.
Looks like the errors are NOT originating from the functions.php file, but rather from a misconfiguration on your server. Have you tried asking WP Engine regarding these errors? We also noticed that some of the template files have been modified in your child theme, which might require updates. Again, we are not seeing any errors in the front end.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.