Warning: strpos() expects parameter 1 to be string, array given in/ . . . Error
-
Automatic upgrade has just taken my WP to version 4.3.1–en_GB.
I am using the Evolve theme, most recent version.
Following the recent WP automatic upgrade I now get the error: ‘Warning: strpos() expects parameter 1 to be string, array given in/ …’
Making the following changes in the wp-includes/shortcodes.php file cures the problem but surely must only be a temporary fix as any other upgrade to WP will just override this.In wp-includes/shortcodes.php change:
‘if ( false === strpos( $content, ‘[‘ ) ) { . . .’To:
‘if ( false === strpos( (string) $content, ‘[‘ ) ) { . . .’As this is probably a WP/Theme compatability issue, is theme4press likely to provide a fix for the excellent Evolve theme?
Any other repair/fix ideas would be welcome.
- The topic ‘Warning: strpos() expects parameter 1 to be string, array given in/ . . . Error’ is closed to new replies.