Problems after updates

after installing updates carnestone and x theme get many errors almost on all pages like:
Warning: strpos() expects parameter 1 to be string, array given in /home/content/94/12339294/html/site/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 206

pages:


Hi there,

Thanks for letting us know. We’re looking into what would be causing the warnings behind the scenes. For now, could you please go into wp-config.php and make sure that WP_DEBUG is set to false. It should look like this:

define( 'WP_DEBUG', false );

That will prevent the warnings from appearing for the time being, although we will still need to uncover why they are being triggered and fix it in a future point release.

Hi @kolyanich,

I’m currently checking this issue but I couldn’t reproduce this on my installation. This warning means the strpos first parameter isn’t a string.

if ( strpos($post_data, $shortcode) !== false ) {

But no matter what I did, existing or newly added page and with or without slider (as sample shortcode), the $post_data remains string and that’s from this line

$post_data = get_post_meta( $post_ID, '_cornerstone_data', true )

I like to further test and investigate this on your installation, would you mind providing your admin and FTP login credentials in the secure note? I would love to find the cause of this issue on your installation.

Thanks!

Hi @kolyanich,

Please check this related thread https://theme.co/apex/forum/t/cornerstone-error-wp-content-plugins-cornerstone-includes-classes-components-class-shortcode-finder-php/64468/15

Hope that helps :slight_smile:

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