Plugin update Caused website errors and warnings

I updated plugins and I am getting the following errors:

At top of Home page

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 206

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 210

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 256

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 258

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 274

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 276

And further down the Home Page:

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 206

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 210

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 256

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 258

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 274

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 276

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 206

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 210

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 256

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 258

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 274

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 276

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 206

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 210

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 256

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 258

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 274

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 276

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 206

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 210

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 256

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 258

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 274

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 276

These warnings appear throughout the Home Page

On the Interior Pages: About, Services and Contact Page:

This appears at the top of each page:

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 206

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 210

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 256

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 258

Warning: strpos() expects parameter 1 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 274

Warning: preg_match_all() expects parameter 2 to be string, array given in /home1/mystudio/public_html/wp-content/plugins/cornerstone/includes/classes/components/class-shortcode-finder.php on line 276

I have uploaded an “Undergoing maintenance” splash page until this is resolved.

It appears to be the Cornerstone plugin issue and I need direction on how this can be resolved.

I am getting similar errors after updating.

Hey @CreativeOil,

Thanks for providing us with credentials. However, the level of access you’ve given us is not enough for us to see your setup. Please give us Admin Level access.

While we’re waiting for you to provide us with admin access, please try uninstalling Cornerstone and then go to WP Admin Menu > X and click on the link to install Cornerstone again.

Please also have your web host prevent error messages from displaying. That could be done by changing this line:

define( 'WP_DEBUG', false );

in your wp-config.php in the root of your WordPress install to this:

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

That will disable error display while still logging the errors in a debug.log file.

@Throne, please follow the suggestion above. If that doesn’t help, the cause could be different on your end and we need to know if the problem was not caused by third-party factors so please do the following troubleshooting steps.

  1. Ensure everything is up to date according to our version compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195. Please follow the best practices when updating your theme and plugins. See https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 for more details.

  2. If you’re using a caching plugin, clear all caches then temporarily deactivate your caching plugin and other optimization plugins. Also, clear your browser cache after that.

  3. If you’re using a CDN, please clear the CDN’s cache and temporarily disable optimization services.

  4. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

  5. If you’re using a child theme, please switch to the parent theme.

Thanks.

Hi @CreativeOil,

As an addition to Christian request, would you mind providing your FTP login credentials as well?

Thanks!

Hi @CreativeOil,

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

Hope this helps.

(1) WP-admin Access Permissions have been changed to “administrator” as requested

(2) “go to WP Admin Menu > X and click on the link to install Cornerstone again”

This takes me to a page: http://www.ooglemestudios.com/x/#/content and shows a button “Close dialog” and displays the following error:

"Session expired
Please log in again. The login page will open in a new window. After logging in you can close it and return to this page."

I am not able to uninstall or re-install. I have tried to login again as the page indicates but it goes back to same error.

Hi, @Rad,

FTP - CPanel access added to secure note.

Thank you for instructions, I wish I were more confident in code and would prefer not to have a code newbie like myself touch anything in a config file.

Hello @CreativeOil,

I have resolved your issue. I simply updated the X theme and Cornerstone to X 7.0.2 and Cornerstone 4.0.2.

Always make sure to update your WP, theme and plugins. Most of the time, out dated WP, theme or plugin could cause issues and conflicts in your site.

Please check your site now.

Thank you so much! You guys, ROCK!!

Site looks great… back to normal!

I will keep an eye on the updates as you have suggested.

Amy

You’re very welcome, @CreativeOil. Also, thank you for your kind words.

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