WordPress.org

Ready to get started?Download WordPress

Forums

Simply Exclude
simply-exclude\simplyexclude.php on line 1449 (6 posts)

  1. bibo_m16
    Member
    Posted 2 years ago #

    Warning: strlen() expects parameter 1 to be string, array given in Server\wp-content\plugins\simply-exclude\simplyexclude.php on line 1449

    How to resolve this php error?

    http://wordpress.org/extend/plugins/simply-exclude/

  2. Paul Menard
    Member
    Plugin Author

    Posted 2 years ago #

    I will need to patch the code for this. In the mean time you might want to turn off warning on your site. Just a note a warning is informational and not an error.

  3. gordsellar
    Member
    Posted 2 years ago #

    Um, I can't find the command for turning off warnings on my site. I'm having the same problem... is there a way to turn off the warning, or to fix it? Thanks!

  4. kgagne
    Member
    Posted 2 years ago #

    Ditto. I have this problem when accessing a tag archive. I see no way in the plugin options or in wp-config.php to disable this warning.

  5. DavidArndt
    Member
    Posted 2 years ago #

    I fixed this error by adding the following code at line 1449 of the simplyexclude.php:

    && is_string($value) //added this to fix no string error

    so the lines 1448-1450 look like this

    if ((isset($wp_query->query_vars['post_type']))
    		 && is_string($value) //added this to fix no string error
    		 && (strlen($wp_query->query_vars['post_type'])) )
  6. kgagne
    Member
    Posted 2 years ago #

    Brilliant! Thank you, sir. Applied and appreciating.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic