Debug notices going wild

Hey guys,

I often build sites with WP Debug enabled - and your theme is spitting out way too many error notices.

Is there any chance you could clean up the exception handling around looper and a few others; it really floods the log. I appreciate this isn’t a production issue but it does drive me nuts haha.

[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: control_accordion_header_indicator in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/definitions/accordion.php on line 427
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: options_rating_value_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 145
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: options_rating_scale_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 153
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: options_rating_scale_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 161
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: options_alert_close_offset in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/definitions/alert.php on line 204
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: options_alert_close_offset in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/definitions/alert.php on line 212
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: options_rating_value_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 145
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: options_rating_scale_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 153
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: options_rating_scale_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 161
[08-Mar-2022 08:23:47 UTC] PHP Notice:  Undefined variable: control_widget_area_bg_color in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/definitions/widget-area.php on line 119
[08-Mar-2022 08:23:54 UTC] PHP Notice:  Undefined index: unique_id in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/classes/dynamic-content/class-looper-manager.php on line 152
[08-Mar-2022 08:23:54 UTC] PHP Notice:  Undefined index: unique_id in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/classes/dynamic-content/class-looper-manager.php on line 152
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined index: unique_id in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/classes/dynamic-content/class-looper-manager.php on line 152
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined index: unique_id in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/classes/dynamic-content/class-looper-manager.php on line 152
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined index: unique_id in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/classes/dynamic-content/class-looper-manager.php on line 152
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined index: unique_id in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/classes/dynamic-content/class-looper-manager.php on line 152
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: control_accordion_header_indicator in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/definitions/accordion.php on line 427
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: options_rating_value_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 145
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: options_rating_scale_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 153
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: options_rating_scale_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 161
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: options_alert_close_offset in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/definitions/alert.php on line 204
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: options_alert_close_offset in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/definitions/alert.php on line 212
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: options_rating_value_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 145
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: options_rating_scale_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 153
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: options_rating_scale_content in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/control-partials/rating.php on line 161
[08-Mar-2022 08:23:55 UTC] PHP Notice:  Undefined variable: control_widget_area_bg_color in /var/www/thriveasone/wp-content/themes/pro/cornerstone/includes/elements/definitions/widget-area.php on line 119

That’s a taste of what I’m getting on a constant basis - I have lots more I could provide, especially around “conditions” too.

Feedback welcome.

Thanks,

Matt

Hi Matt,

Thanks for reaching out.
I have checked the latest version of Pro in my local environment with the WP_DEBUG value true* but didn’t find the issue described here. I would suggest you add the debug setup in the wp-config.php file to log the errors into the file name debug.log inside the wp-content folder.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

Please find the video that will help you to edit wp-config.php and add the above code: https://www.youtube.com/watch?v=3SDPTafEM8o
Please let us know the errors logged into the debud.log file for further investigation.

Thanks

Hey Tristup,

That debug configuration is how errors are already being logged on all the sites we build - that’s where the error log snippet came from :wink:

I will capture more of them as I continue to build, but since we are actively developing - we tend to clear the log often. Above are a few errors that I continually see across ALL of the sites - I’d imagine it would be relatively straightforward to check if the values are being declared correctly in your code :slight_smile:

Thank you!

Matt

Hi Matt,

We never encountered the issues you mentioned here and never been reported before by any of the customers. So we need to know what exactly causes the issues, and the debug.log file may indicate the reason behind it. I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue **if you have activated it.
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above help, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– FTP/CPanel credentials to access the files

To create a secure note, click the key icon underneath any of your posts.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.