Tagged: Warning: Undefined array key
-
AuthorPosts
-
August 16, 2024 at 11:42 pm #1464799
Recently migrated in this Woocommerce store and are moving it to Enfold. Have been troubleshooting this for this last week and just cannot see m to figure out what might be causing these errors. They only show up on the SHOP pages and it is definitely only when Enfold is activated. Warning: Undefined array key “default” … and Warning: Undefined array key “content” in…
Example pages w/errors:
2 errors: https://visualrush.in/vosselections/grapes/malbec/
Just one error: https://visualrush.in/vosselections/product/alpataco-malbec/Have re-installed a fresh version of the theme and turned off all plug-ins to see if we can get it to disappear, but nothing seems to work. On some of teh product pages it even causes the footer to not show up. Strange stuff.
Thank you in advance!
August 19, 2024 at 7:30 am #1464881Hey Ryan,
Thank you for the inquiry.
Did you modify the header.php or footer.php in the child theme? Please make sure that these template files are updated with the latest version. To temporarily hide the error, try to set the WP_DEBUG_DISPLAY constant to false.
// https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/#wp_debug_display
Best regards,
IsmaelAugust 19, 2024 at 6:26 pm #1464920Thank you for taking a look! We have actually not changed ANYTHING on the default templates under the child theme. Have a few Function overrides, but those do not seem to have any affect. Completely bypassing the child theme still gets us the errors. Because this is not yet a LIVE site, we would prefer to FIX the errors and not just hide them. What can we do to get to the bottom of what is causing these errors? (have never seen them on any other WooCommerce site running Enfold we have worked on.
Thank you in advance!
August 19, 2024 at 8:20 pm #1464931Update to above. Apparently if we switch to PHP 7.4, BOTH errs seen on category pages like: https://visualrush.in/vosselections/product-category/spirit/ disappear. Obviously this is not ideal, however hoping this might be helpful to troubleshoot WHERE exactly this is coming from and how to get rid of it?
August 19, 2024 at 8:55 pm #1464933I turned OFF display errors in PHP 8.1, but this does not seem ideal going forward. Hoping you have some other advice on this that fixes the issue better going forward? (PHP 8.2 threw the same errors)
August 20, 2024 at 5:05 am #1464943Hi,
Thank you for the update.
We are unable to reproduce the issue on our end using PHP 8.0, so we are not yet sure what is causing it. Have you tried disabling all modifications in the functions.php file and temporarily deactivating all plugins?
Best regards,
IsmaelAugust 20, 2024 at 5:20 pm #1464994Absolutely, we tried that process first. I have hid the error reporting for now so we can continue to develop, but would love to figure out what exactly is causing it.
Our PHP version is actually 8.1.25. This is currently the lowest on this server, and what all our sites – including those running Enfold- seem to work fine on. 8.2 still gives trouble with some plug-ins we have noticed.
August 23, 2024 at 4:50 am #1465200 -
AuthorPosts
- You must be logged in to reply to this topic.