Running Suffusion 4.4.9 (latest) on WP 4.5.2 (latest), I sometimes get the following error_logs. They seem to appear when I visit the WP backend - but not 100% of the time (it isn't consistently reproducible). I'm running the site on localhost, so nobody can access it but me. Even if I know the exact 'page visit' that caused it to appear, revisiting the page immediately after will often not cause the log to appear a 2nd time (it seems to be random). I realize that they're just notices, and thus probably harmless - however, their appearance does make it quite a bit more cumbersome to identify when there's an actual problem being reported, so I'd really like to get it figured out. Any guidance would be appreciated...
Code: Select all
[27-May-2016 00:54:08] PHP Notice: Trying to get property of non-object in D:\Work\Webroot\htdocs\wp-content\themes\suffusion\functions\actions.php on line 616
[27-May-2016 00:54:08] PHP Stack trace:
[27-May-2016 00:54:08] PHP 1. {main}() D:\Work\Webroot\htdocs\index.php:0
[27-May-2016 00:54:08] PHP 2. require() D:\Work\Webroot\htdocs\index.php:17
[27-May-2016 00:54:08] PHP 3. require_once() D:\Work\Webroot\htdocs\wordpress\wp-blog-header.php:19
[27-May-2016 00:54:08] PHP 4. include() D:\Work\Webroot\htdocs\wordpress\wp-includes\template-loader.php:75
[27-May-2016 00:54:08] PHP 5. get_header() D:\Work\Webroot\htdocs\wp-content\themes\suffusion\404.php:11
[27-May-2016 00:54:08] PHP 6. locate_template() D:\Work\Webroot\htdocs\wordpress\wp-includes\general-template.php:45
[27-May-2016 00:54:08] PHP 7. load_template() D:\Work\Webroot\htdocs\wordpress\wp-includes\template.php:531
[27-May-2016 00:54:08] PHP 8. require_once() D:\Work\Webroot\htdocs\wordpress\wp-includes\template.php:572
[27-May-2016 00:54:08] PHP 9. body_class() D:\Work\Webroot\htdocs\wp-content\themes\suffusion\header.php:54
[27-May-2016 00:54:08] PHP 10. get_body_class() D:\Work\Webroot\htdocs\wordpress\wp-includes\post-template.php:546
[27-May-2016 00:54:08] PHP 11. apply_filters() D:\Work\Webroot\htdocs\wordpress\wp-includes\post-template.php:755
[27-May-2016 00:54:08] PHP 12. call_user_func_array() D:\Work\Webroot\htdocs\wordpress\wp-includes\plugin.php:235
[27-May-2016 00:54:08] PHP 13. suffusion_get_body_classes() D:\Work\Webroot\htdocs\wordpress\wp-includes\plugin.php:0
[27-May-2016 00:54:08] PHP 14. suffusion_get_pseudo_template_class() D:\Work\Webroot\htdocs\wp-content\themes\suffusion\functions\filters.php:633