Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello, this error message is self explained, the plugin uses regular expressions to determine if a parameter in a HTTP request has the expected format, it seems that you submitted a form with a field containing a list of items (aka. array). What were you doing before this error appeared?

    Thread Starter photoMaldives

    (@photomaldives)

    Hi Yorman. Thanks for your quick reply.

    I was updating 5 or 6 plugins using the normal automated WP admin page. Once the updates were complete, this error message broke at the top of the screen.

    I have just updated 2 more plugins (iThemes Security and Google Analytics) and the problem did not re-occur.

    I did spot this in the changelog, which may or may not be related –

    Google Analytics by Yoast
    Version: 5.0.1
    Release Date: September 4th, 2014
    Bugfixes:
    Fixed string where array expected warning.

    Problem closed.

    I have the same problem: Warning: preg_match() expects parameter 2 to be string, array given in /home/bill911/public_html/wp-content/plugins/sucuri-scanner/sucuri.php on line 882

    And it happened after updating WordPress to 4.0, then Sucuri and then themes,on various blogs (the line number changes).

    See my other post for other problems appearing after update.

    Thanks for marking this resolved when it isn’t.

    Thread Starter photoMaldives

    (@photomaldives)

    … and thanks for the sarcasm when there’s no need for it ! 😉

    Ticket now updated to NOT RESOLVED.

    People calm down. I apologize for this issue, this happen because I have strict rules in the plugin to determine if a parameter in a HTTP request is secure or not, but the WordPress way to write code is not very standard, so it is very hard for developers like me to write good code when the data provided by the core is unexpected.

    The fix for this bug is already in the repository, but as you can see there my changesets are ahead of the current release 1.6.9, so you will need to wait for version 1.7.0 to get the update notification in your site.

    I will mark this ticket as resolved ONLY when the fix is public.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning: preg_match() expects parameter 2 to be string’ is closed to new replies.