Author Topic: Warning Message that says plugins/clear_cache.php): failed to open stream Too M  (Read 8526 times)

0 Members and 1 Guest are viewing this topic.

Offline soyola

  • Newbie
  • *
  • Posts: 23
    • View Profile
What does the following warning mean and How do I fix this? I tried to fix it by using clear cache in my control panel but it's not going away..  My gallery was working fine until this morning and suddely the following Warning Message showed up on top of my Admin Control Panel


Quote
Warning: file(./plugins/clear_cache.php): failed to open stream: Too many open files in /home/content/s/o/y/soyola2/html/admin/index.php on line 157

Here is lie 157 looks like in my index php file

 
Quote
}
              $plugin_file = file("./plugins/".$file);
              $plugin_file[0] = trim($plugin_file[0]);
              if (preg_match("/PLUGIN_TITLE:([a-zäöüß0-9\-_ ]+)/i", $plugin_file[0], $regs)) {
                show_nav_option(trim($regs[1]), "./plugins/".$file);
              }
              else {
                show_nav_option($file, "./plugins/".$file);
              }


Also my users can't upload pictures because there is this warning message

Quote
Warning: move_uploaded_file(./data/media/1/Girl2.jpg): failed to open stream: Too many open files in /home/content/s/o/y/soyola2/html/includes/upload.php on line 113

Here is what my cache directory root is look like before hitting Submit button
Quote
Do you want to clear the cache directory (/home/content/s/o/y/soyola2/html/cache)?

 I coudn't find anything regarding this issue  on this board so it must be very rare problem. By the way I have the latest version which is 1.7.1

Thank you very much for your help and I really appreciate your support.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Warning Message ? Cache Issue Please help
« Reply #1 on: February 08, 2006, 12:38:56 AM »
Warning: file(./plugins/clear_cache.php): failed to open stream: Too many open files in /home/content/s/o/y/soyola2/html/admin/index.php on line 157
Contact your hoster.


Also my users can't upload pictures because there is this warning message

Quote
Warning: move_uploaded_file(./data/media/1/Girl2.jpg): failed to open stream: Too many open files in /home/content/s/o/y/soyola2/html/includes/upload.php on line 113

Here is what my cache directory root is look like before hitting Submit button
Quote
Do you want to clear the cache directory (/home/content/s/o/y/soyola2/html/cache)?


I really need your help because we've been receiving a lot of hits lately and now those people are really mad. Please respond because I coudn't find anything on this board regarding this issue. By the way I have the latest version which is 1.7.1
permissions, persmissions, persmissions....all information you needed is in docs/installation.txt or in our FAQ.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline soyola

  • Newbie
  • *
  • Posts: 23
    • View Profile
V@no -

Thank you very much for your reply and I was actually waiting for your respond. I appreciate your help. You told me to contact me my host. What should I ask them about?

Quote
Warning: file(./plugins/clear_cache.php): failed to open stream: Too many open files in /home/content/s/o/y/soyola2/html/admin/index.php on line 157

Quote
Also my users can't upload pictures because there is this warning message

Quote
Warning: move_uploaded_file(./data/media/1/Girl2.jpg): failed to open stream: Too many open files in /home/content/s/o/y/soyola2/html/includes/upload.php on line 113

You also said to set the permissions correctly but may I tell you that these were working correctly until this morning so I figured all permissions were set correctly. I even took your advice and changed all the permission but no avail. These problems suddenly occured out of nowhere after almost 7 week of smooth operation.

Spasibo Bolshoi !   Thank you very much.  By the way, I was also born in beatiful city of St.Petersburg but I am not Russian


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
First ask them what have they changed recently on the server. Maybe they turned on SAFE MODE, then:
http://www.4homepages.de/forum/index.php?topic=6838.0
Or they could upgraded other server modules and some settings are messed up.
Show them that warning message
here is a little more info about this error:
http://www.patoche.org/LTT/kernel/00000128.html

P.S. is your host "Godaddy" ?
http://forum.mamboserver.com/showthread.php?t=32157
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline soyola

  • Newbie
  • *
  • Posts: 23
    • View Profile
V@no-

Again thanks for your prompt reply. I just spoke with GoDaddy Tech Support and Here is what they said -

Quote
Their Linux Server limits only 50 concurrent connections to MYSQL database which means anything above 50 causes crash.  I really don't know what this means but Tech Support suggested to find the way to change 4image script to close it quickly after each user finished with their  session. Please tell me if there is some fix for this  because otherwise I am totally screwed.

I also asked them if they run PHP  in safe mode on their  Linux hosting servers but They said NO. 

Thank you very much...


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Change the hoster...how many problems, unique problems, have you had with this host so far? - change the host.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline soyola

  • Newbie
  • *
  • Posts: 23
    • View Profile
V@no-

Do you think it has to be with Java language being installed on the server?  It wasn't installed recently but it was add-on when I signed up about two weeks ago.  Do you see any solution to this problem other than chaning my host because I already paid one year of hosting already.


Thank you very much for your help


Offline soyola

  • Newbie
  • *
  • Posts: 23
    • View Profile
V@no and Everybody -

The problem pretty much went away on its own but I have consulted this with GoDaddy tech support and they removed Java language which was installed on my server. I really don't know if that was the root cause of everything but it seems to worked for the moment. However, I am afraid it might show up again if there are many people visit our web site at once. I really don't know...   Any thoughts ?


By the way, V@no thank you very much for your help and guiding me to right direction by telling me to talk to my host.


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
If you search for these error messages on google, most, if not all, of the sites mention godaddy hosting...it looks like that hosting has "unique" problem no other hosting have...and the errors are so uncommon that its hard to find "real" sollution :(
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)