Archived topic
Problem refreshing the page
19 replies · Started by Juan Carlos on November 22, 2021
Hi there,
Both are strange - can't reproduce either.
However, the first one you can remove by switching to our new Typography system: https://docs.generatepress.com/article/switching-to-dynamic-typography/
The second one means WooCommerce isn't returning an array, which it should be: https://github.com/woocommerce/woocommerce/blob/master/includes/abstracts/abstract-wc-product.php#L601
My guess is something is interfering with that function.
However, these "Warnings" shouldn't be displayed on your website at all if WP_DEBUG is set to false. Can you check?: https://wordpress.org/support/article/debugging-in-wordpress/
Thanks tom
I have fixed one of the problems, but the error still appears:
PHP Warning: Undefined array key 0 in ..../public_html/wp-content/plugins/gp-premium/woocommerce/functions/functions.php on line 1211
I know that this does not affect the display of the page, but I would like to solve this error
Thanks!!!
We can add an extra check in our code to make sure it doesn't output a Warning, but the fact that we haven't seen this Warning before and this code hasn't changed in a couple of years tells me there's something strange going on with your installation.
Did turning off WP_DEBUG prevent it from showing up?
Hello again Tom
The configuration that I have always had is:
define ('WP_DEBUG', false);
The error:
..../public_html/wp-content/themes/generatepress/inc/typography.php on line 911 disappears when i delete the child theme from generatepress. I have version 0.1 is it correct?
anyway the error still appears:
..../public_html/wp-content/plugins/gp-premium/woocommerce/functions/functions.php on line 1211
I don't understand what can happen ...
Thanks!!
If the first error disappears when you deactivate your child theme it means there's likely a function in the child theme causing the conflict.
As for the second error, it's strange that it's still displaying with WP_DEBUG turned off. There are a couple of other lines you can add which you can find here: https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/