If you right-click on the form and inspect it in your browser’s Web Inspector, are you able to see anything that seems unique about the form… then you could perhaps look for that (like a form id) in the code to see what might be generating it?
Scott
Thanks for your reply Scott,
Great suggestion, if only it was that easy. Here is a screenshot of the forms as seen through the web inspector. There are no obvious signs of identification on them however, it does almost appear as if parts of some url or GET variables are jumbled into it. We see a “?1=1” which I have no clue where that might be from.

I can also add that it does not seem to be related to Javascript in any way, as when I view the site with JS disabled, I still get the same identical error.
-
This reply was modified 8 years, 3 months ago by
SAAhmed. Reason: Tested error without Javascript
Hmmmm… the 1=1 can be seen in WordPress’s WP Query class. Take a look at line 2809 in class-wp-query.php. Since this is happening when conducting a search, is there anything in the search.php template file that looks out of place? I would try renaming search.php to something else to try to rule out a problem with the file.
Have your tried a different theme to see if the problem persists?
Scott
Hello again Scott,
I did a search for 1=1 in the wp-includes folder, and changed all references to it using 2=2, including the class-wp-query.php that you mentioned, just to see if that affected the broken forms. Unfortunately it did not. Even with 2=2 references, it still said 1=1. Which means maybe it is from somewhere else in wordpress, or perhaps it is a reflection of some kind of evaulation like A=B, A is true, B is true so 1=1.
I did try different themes, and it occurs in all of them, including the admin panel. Which seems to suggest it could likely be a plugin problem and not with a theme. The site it is on is busy enough that it is hard for me to take it all down. Perhaps I can try disabling every plugin, but I would need to do this in some kind of middle of night kind of downtime.
Your suggestions are much appreciated. I wish they would have yielded something. But unfortunately I feel as if I am not much closer to finding the culprit.
Darn… sorry that I don’t have another idea. Can you check your server’s PHP error log? That might give an idea of what plug-in is the problem if that is, indeed, the case. Otherwise, I would recommend looking into standing up a local install of your website so that you have a place to test and troubleshoot without affecting your live site.
Sorry I couldn’t be of more help. Good luck!
Scott