This topic has 15 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Olga Barlow
Hi Olga/Rose – can you take a look at my debug.log. I’m getting quite frequent 503’s as it’s called out some of the theme files.
Hello,
You provided access to themes folder on FTP so I can’t check it. I’ve installed Error Log Monitor plugin to be able to see the log in Dashboard and tried to re-save menu, theme options and page but -error log is empty.
Here is instruction how you can enable debug mode – https://codex.wordpress.org/Debugging_in_WordPress
Please make a screenshot once you get the 503’s so so we can take a closer look.
Regards
Hi Rose, debug is enabled. See content below. Can we remove screenshot?
Hello,
The screenshot was removed.
I do not see error messages even with the debug enabled.
Regards
Thank you Rose.
I have them hidden at display in my config file. Maybe there’s something relevant in the debug.log in content folder. I’m trying to determine the root cause of the 503’s occurring. Not sure if it’s the theme or a plug-in that trips.
Just following up to ensure you were able to successfully access the debug log. I’ve noticed a recurring error of ‘Trying to get property of non-object in class-wp-query.php on line 3871’
Hello,
To check if the problem relates to theme, you need to temporary activate a default theme on site. Also, you can disable all 3-rd party plugins, if after that the error disappears, activate plugins one by one to find out which of plugins caused the problem.
Regards
Hi Rose – ok, I’ll give that a shot. In the meantime I thought I’d share the following I’ve pulled out from the debug log
Trying to get property of non-object in /wp-includes/class-wp-query.php on line 3871
PHP Notice: Trying to get property of non-object in /wp-content/themes/xstore/framework/template-elements.php on line 1147
post_id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_nopriv_et_ajax_search’), WP_Hook->do_action, WP_Hook->apply_filters, etheme_ajax_search_action, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.
Hello,
Check now, please.
Regards
Thanks Olga. On a quick look, I don’t see any bugs being logged. What is it that you did?
Hello,
WooCommerce made some changes and we also made improvements to the ajax search to fix the problem “post_id was called incorrectly”. This fix will be included in next theme update.
Regards
Hi Olga, I’ve come across more errors in debug log. Related to theme-functions.php in the framework folder and a couple others.
[25-Mar-2018 19:29:30 UTC] PHP Notice: Undefined index: cat in /public_html/wp-content/themes/xstore/framework/theme-functions.php on line 1720
[25-Mar-2018 19:29:30 UTC] PHP Notice: Undefined index: cat in /public_html/wp-content/themes/xstore/framework/theme-functions.php on line 1732
[25-Mar-2018 19:29:32 UTC] PHP Notice: Undefined index: cat in /public_html/wp-content/themes/xstore/framework/theme-functions.php on line 1809
[25-Mar-2018 20:39:40 UTC] PHP Notice: Trying to get property of non-object in /public_html/wp-includes/class-wp-query.php on line 3871
[26-Mar-2018 14:53:44 UTC] PHP Notice: wpdb was called incorrectly. wpdb must set a database connection for use with escaping. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.) in /public_html/wp-includes/functions.php on line 4147
[26-Mar-2018 14:53:45 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) in /public_html/wp-includes/wp-db.php on line 1531
Hello,
We have fixed notice with theme-functions.php. All the other notices are not related to our theme.
Regards
Hi Olga, I’ve narrowed down to which plugin may be causing the other errors however, this one arose:
First parameter must either be an object or the name of an existing class in /public_html/wp-content/themes/xstore/framework/woo.php on line 868
I also get this error.
[28-Mar-2018 17:04:56 UTC] PHP Notice: Trying to get property of non-object in public_html/wp-includes/class-wp-query.php on line 3871
Hello,
Check now.
Regards
You must be logged in to reply to this topic.Log in/Sign up