• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Did you set WP_DEBUG to true? You should set WP_DEBUG to false to hide any PHP notice on your live server.

    You are correct, the theme author @romik84 probably has to look into this issue.

    Thanks!

    Thread Starter MikeAlan

    (@mikealan)

    Hi Denzel,
    Thanks for your reply.
    Debug was set to true because I was trying to sort out this and another problem.
    I shall forward this problem to the author and see what his responce is.

    I have now moved the site to my personal office server to work on it there as I am getting to many unwanted registrations. How they find out about a subdomain site I don’t know, especially as it has not been publicised in any way. I will also probably have to rebuild the database as I am getting weird and odd errors creeping in.

    Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: strpos() expects parameter 1 to be string, array given in/ . . . Error’ is closed to new replies.