Error generated by Cornerstone

Hi,

I get the following error message on my homepage (first line, at the top of the screen):
Warning: Cannot use a scalar value as an array in /home2/r82056aiki/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 102

Currently running the latest versions of everything: X 7.2.3 / Cornerstone 4.2.3 / WordPress 5.5.1
Website: https://www.aikiseishin.ro/

Can you help?
Thank you.

Hey @radualunita,

I believe you’re using the latest version of PHP. If that is the case, please try downgrading a version older like PHP 7.4 to PHP 7.0 and see if that removes the warning.

PHP warnings just warn that a function could be deprecated in the future. But, that doesn’t mean that there would be problems. Our development team will eventually update the codebase to eliminate warnings for the latest version of PHP.

You can either downgrade or just hide the PHP warning (recommended for live sites) by setting WP Debug in wp-config.php to true and then adding the following lines of code below that. Your web host might be able to help you with this. If not, just hire a developer to do this for you.

  // 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 );

Hope that helps.

Yes. It’s true, I am on PHP 7.4. Forgot to mention…
Funny thing - I actually had tried changing ‘wp_debug_log’ to false, but it was not enough… :slight_smile:
But this additional ‘wp_debug_display’ set to false - solved it.

It’s perfect now! Thank you so much!!

Hi @radualunita,

We are glad that you are able to solve your issue. If you have any other concerns, feel free to reach us.

Thank you.

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