index.php problem
 
                              
                                
                                 LRACMS   0
From: -
                                 
                              
                            From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
The alternative caching method (file cache only) is now part of the new 1.5.1 release.
                  
                  
                The alternative caching method (file cache only) is now part of the new 1.5.1 release.
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
Thanks!
- Louis
                  
                  
                Thanks!
- Louis
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
Fixed
It seems like that your server has problems with larger cache files. I added a workaround to index.php, which use a different caching method for the frontpage (mainnews).
                  
                  
                Fixed

It seems like that your server has problems with larger cache files. I added a workaround to index.php, which use a different caching method for the frontpage (mainnews).
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
PHP 4.2.x had a small memory leak bug which cause this memory error message random from time to time. This issue is unrelated to storyteller.
:(
Time for a trouble ticket. Please send me your FTP and/or SSH shell login.
                  
                  
                Originally posted by LRACMS
Running PHP 4.2.2
PHP 4.2.x had a small memory leak bug which cause this memory error message random from time to time. This issue is unrelated to storyteller.
Originally posted by LRACMS
That didn't work either. No access until I turn the cache off and replace the index.php with the original.
:(
Time for a trouble ticket. Please send me your FTP and/or SSH shell login.
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
No, it did not work. I had to restore the original index.php and set the cache to NO again.
- Louis
                  
                  
                No, it did not work. I had to restore the original index.php and set the cache to NO again.
- Louis
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
Running PHP 4.2.2
That didn't work either. No access until I turn the cache off and replace the index.php with the original.
- Louis
                  
                  
                Running PHP 4.2.2
That didn't work either. No access until I turn the cache off and replace the index.php with the original.
- Louis
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
Another modification for index.php:
to
and
to
Does this work?
Is the server running PHP 4.2.x?
                  
                  
                Originally posted by LRACMS
No, it was the same with the cache turned on.
Another modification for index.php:
$cache = GetCache("news","mainnews");
to
$cache = GetCache("news","mainnews2");
and
WriteCache("news","mainnews",$mainnews,0);
to
WriteCache("news","mainnews2",$mainnews,0);
Does this work?
Originally posted by LRACMS
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 737280 bytes) in /usr/www/users/cmsorg/toq/news/cadmin/index.php on line 622
Is the server running PHP 4.2.x?
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
No, it was the same with the cache turned on. In fact I turned the cache back off again and got this
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 737280 bytes) in /usr/www/users/cmsorg/toq/news/cadmin/index.php on line 622
I replaced the index.php file with the original and it again works with the cache turned off, but not on.
- Louis
                  
                  
                No, it was the same with the cache turned on. In fact I turned the cache back off again and got this
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 737280 bytes) in /usr/www/users/cmsorg/toq/news/cadmin/index.php on line 622
I replaced the index.php file with the original and it again works with the cache turned off, but not on.
- Louis
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
The file work here without any problems.
Backup index.php and change the following in this file:
to
and
to
This will write the mainnews cache in the cache/story directory instead of cache/news.
Does this work?
                  
                  
                The file work here without any problems.
Backup index.php and change the following in this file:
$cache = GetCache("news","mainnews");
to
$cache = GetCache("story","mainnews");
and
WriteCache("news","mainnews",$mainnews,0);
to
WriteCache("story","mainnews",$mainnews,0);
This will write the mainnews cache in the cache/story directory instead of cache/news.
Does this work?
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
Please send me a copy of your mainnews.cah.php file to office @ esselbach .com
In the meantime, disable and clear the cache
                  
                  
                Please send me a copy of your mainnews.cah.php file to office @ esselbach .com
In the meantime, disable and clear the cache
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
An added note - you are certainly correct that the problem is somehow with the cacheing, as I can disable the cache and access is not a problem.
- Louis Andrews
                  
                  
                An added note - you are certainly correct that the problem is somehow with the cacheing, as I can disable the cache and access is not a problem.
- Louis Andrews
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
Deleted the directory and added it back. Changed permissions to 777 and readded the index.html file.
No change. I can access once but not a second time. If I again delete the mainnews.cah.php file then I can access it again once.
- Louis
                  
                  
                Deleted the directory and added it back. Changed permissions to 777 and readded the index.html file.
No change. I can access once but not a second time. If I again delete the mainnews.cah.php file then I can access it again once.
- Louis
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
Another idea. Remove the entire /cache/news directory, then create a new /cache/news directory
                  
                  
                Another idea. Remove the entire /cache/news directory, then create a new /cache/news directory
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
Yes and No. It makes the file 777, but I still can only access the index.php once.
- Louis
                  
                  
                Yes and No. It makes the file 777, but I still can only access the index.php once.
- Louis
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
It seems like your provider changed something in the server configuration.
Try the following:
Find in core.php:
and add between fclose ($cachefile); and } this line:
Upload the updated core.php and delete /cache/news/mainnews.cah.php again
Does it work?
                  
                  
                It seems like your provider changed something in the server configuration.
Try the following:
Find in core.php:
function WriteCache ($var, $var2, $var3, $var4) {
global $configs;
 if ($configs[8]) {
                $cachefile = @fopen("cache/$var/$var2.cah.php","w") or die ("Error: Can't write $var2 cache");
                      if (flock($cachefile, 2)) {
                               fputs ($cachefile, "<?php \$cache_expire = \"$var4\";\n\$cache_data = <<<CACHEDPAGEHTML\n$var3\nCACHEDPAGEHTML;\n?>");
                 }
                 flock($cachefile, 3);
             fclose ($cachefile);
      }
 echo $var3;
}
and add between fclose ($cachefile); and } this line:
@chmod ("cache/$var/$var2.cah.php", 0777);
Upload the updated core.php and delete /cache/news/mainnews.cah.php again
Does it work?
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
Alas, I spoke too soon. You can access it once, then it cannot be accessed again. The permission is again 644 and cannot be changed.
- Louis
                  
                  
                Alas, I spoke too soon. You can access it once, then it cannot be accessed again. The permission is again 644 and cannot be changed.
- Louis
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
Thanks, that did the job.
- Louis
                  
                  
                Thanks, that did the job.
- Louis
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
Yes, delete the file
                  
                  
                Yes, delete the file
1 Re: index.php problem
 
                        
                                                
                         LRACMS
                
                OP
   0
From: -
                         
                      
                  From: -
                    index.php problem
Changed /cashe/news directory, but cannot change /cashe/news/mainnews.cah.php. It reverts to 644 every time I try to change it. It is dated 11/7. Should I delete it or copy original over it?
- Louis Andrews
                  
                  
                Changed /cashe/news directory, but cannot change /cashe/news/mainnews.cah.php. It reverts to 644 every time I try to change it. It is dated 11/7. Should I delete it or copy original over it?
- Louis Andrews
1 Re: index.php problem
 
                        
                                                
                         Philipp 
                        
                        
From: Austria
                         
                      
                   Administrator
  1342From: Austria
                    index.php problem
That's odd
Please check the permissions of the /cache/news directory and the /cache/news/mainnews.cah.php file. Set both to chmod 777
                  
                  
                That's odd

Please check the permissions of the /cache/news directory and the /cache/news/mainnews.cah.php file. Set both to chmod 777
 
               
          
My site has not been accessible since Friday. The ISP says there is a problem with the index.php file. I have copied the one on my drive over it, but it is still not accessible (date on the file was 9/7/2003 - American style date). All other files and directories are accessible.
- Louis Andrews