Error on page

When I enable debug mode, This error shows up on my screen

Notice: Undefined index: estimation_form in /var/www/vhosts/keenondeen.com/httpdocs/wp-content/themes/pro/cornerstone/includes/classes/components/class-shortcode-finder.php on line 203

I have no idea where to start to fix this. Please advise.

Hey @muaawiyahtucker,

You might be using PHP 7.3 or beyond. Though that’s generally a good thing, themes and plugins might not catch up to latest PHP version just yet so please try downgrading to PHP 7.2 (if applicable).

Anyway, PHP notices won’t hurt your site so you can hide them by setting WP_DEBUG in your wp-config.php to true and then adding these extra line below it.

// 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 );
@ini_set( 'display_errors', 0 );

For more details about debugging in WordPress, please read this documentation: https://wordpress.org/support/article/debugging-in-wordpress

Hope that helps.

Thank you very much. How did you know it was an issue with the version of PHP I’m running?

Hi @muaawiyahtucker,

Because the error you show above is a PHP notice and it does not usually happen, so more likely it’s your PHP version (but we could be wrong).

You can ignore those notices though by following the suggestion provided by Christian above.

Troubleshooting PHP Error Messages

Thanks,

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