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?
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?
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.
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!
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.
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'])) )Brilliant! Thank you, sir. Applied and appreciating.
You must log in to post.