Open GoogleCodeExporter opened 9 years ago
Same exact issue here, it happened so much and so fast that before I noticed it
I was banned from the whole server while doing testing...
The main site in this case is a WordPress site with its standard SEO htaccess
settings of:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Any help is greatly appreciated.
Original comment by IMakeTy...@gmail.com
on 29 Jun 2011 at 11:49
I have had the same problem with a huge error_log file being generated by the
line-36-line-37 loop. In my particular case, the error seemed to be caused by
users attempting to view forum postings which had been deleted. The point,
though, was that "fopen" was returning "false" rather than the intended URL
(or, rather, the text of the page at the intended URL).
I "fixed" the looping problem by inserting lines into the function in
phpmobilizer.class.php which contained "line 35". The following starts at "line
34":
function loadData(){
$fp=fopen($this->_url(), "r");
// insert the following 'if' loop
// to correct errors when the
// target URL doesn't actually exist
// if fopen has returned 'false'
if (!$fp) {
// then replace the 'false'
// with your 404_error page
// (replace examplified URL
// with your page's URL)
$fp=fopen("http://m.my_domain.com/404_error.htm", "r");
// begin the regular "while" loop
// to read in the 404_error page
while(!feof($fp)){
$this->html .= fgets($fp);
}
fclose($fp);
}
// else, if fopen has returned
// valid webpage text...
else {
// ...do the regular thing:
while(!feof($fp)){
$this->html .= fgets($fp);
}
fclose($fp);
}
// following end-curly-brace
// reflects edits; remove if
// deleting if-else coding
}
}
I hope this can help others.
Original comment by stapel.p...@gmail.com
on 29 Apr 2015 at 1:25
Original issue reported on code.google.com by
terryhan...@yahoo.co.uk
on 8 Sep 2010 at 4:14