PHP Warning, expects parameter 1 to be string
-
While I’m not very tech savvy when it comes to WordPress, I at least have found my way to understand how to turn on and access my debug.log in WordPress. ?? There I recently just discovered a single warning that showed up yesterday in my log that I originally emailed to my connection at plugin Jetpack to ask them if they knew what it meant. This is what I got from them.
>Hi Andrew,
>
>PHP Warning: trim() expects parameter 1 to be string, array given in /home/content/—>——–/html/wp-includes/class-wp-query.php on line 755
>
>This is caused by a plugin that’s using a specific query to change the way posts are >displayed on some pages of your site. My guess would be that this is caused by the >Relevanssi plugin on your site; it makes changes to the way posts are sorted on search >result pages and that may at times cause issues.
>
>I would recommend that you get in touch with the plugin author and let them know you >ran into this issue; they should be able to help you investigate further.
>Before you contact them, however, you can try to confirm that it is indeed caused by >issues on search result pages by trying to make a search on a page when Relevanssi is >used, and see if more warnings pop up on your error log.I have been using your plugin with great success and had no issues ever that I am aware of. I just happened to notice this issue show up with a warning in my debug.log today. It’s the first time it happened since turning on my debug.log a couple of months ago and am not sure what it means. I use the default WordPress search widget that’s tied to the front it and Relevannsi to the back end. I have not changed any of the defaults to Relevannsi since starting to use it years ago. I love the plugin and just wanted to pass this on to see if you know what it might be. There are no other search strings on my site and the only other data entry on my site is to sign up for an email subscription. I have a very basic site. Let me know if you have any idea on this?
Sincerely, and thanks for any help you may be able to offer on this,
AndrewThe page I need help with: [log in to see the link]
- The topic ‘PHP Warning, expects parameter 1 to be string’ is closed to new replies.