Just upgraded to 1.2.1 from 1.2. Gallery used to work just fine but now, though the page loads, no images load and I get this error message for every single entry:
Warning: filemtime(): SAFE MODE Restriction in effect. The script whose uid is 530 is not
allowed to access ../ee/ginger/cache/db_cache/0c6c19798c641c759088ef3e6ab19de9 owned by
uid 48 in /home/virtual/site6/fst/var/www/html/ee/ginger/core/core.functions.php on line 1032
I tried to figure this out by looking at the code referenced, but I can’t. Help!
I am the host. The gallery was fine until I upgraded yesterday. Nothing changed on the server. Cache directory permission is set to 777, per instructions.
I just want to know what the error message means and how I can fix it.
filemtime() is a function we are using to determine when a file was created. This allows us to figure out if we should clear something like a cache file and create a page or query anew.
It seems the user running the server daemon (apache?) is not allowed to access the cache directory and use this function because Safe Mode is turned on for PHP. I was not aware that Safe Mode prevents filemtime() from being used.
Well, I was just letting you know what the error message meant.
Not entirely sure why it is occurring now though. We were using filemtime() in EE 1.2 as well for that exact same function. Is it only occurring for the Image Gallery? No where else? Is it always the same file?
Is that a banned function possibly? I am not sure why a function that has existed in the previous version would cause an error in an unchanged server only on the gallery.
You did not answer my other question, is it always the same file?
Don’t know what you mean by same file—it happens, as far as I can tell, only with the index file for the gallery—will send you the link when the server is working normally again (it has slowed to a crawl for some reason). If it happens in the other files in the gallery, I wouldn’t know. The error messages only showed up when I clicked “view rendered template” from the template module—it does not appear publicly. If you need my login info, let me know where to send the info.
All the other pages are working fine as far as I can tell, and I checked quite a few of them. When I click on the gallery link (http://www.leefleming.com/neurotwitch/index.php—it will be working properly sooner or later), the page loads the title and the expression engine link, but nothing else.
Nothing has changed on the server—this I know absolutely. It worked just fine until I installed the upgrade, which seemed to go without a hitch!
There is a long list of the same error repeated over and over—will check it when the server is back up and let you know if it’s all the same file or different files.
I see that your site is backup and I can see the errors. It does not seem to be one cache file though. Can you go onto your server and delete all of the files in the db_cache folder? This is one of the errors that really makes no sense to me, so I am going to Google the message and see if that gives any information.
Well, the errors are gone but no content is showing up still. Reading up on this it sees there is another configuration option called safe_mode_gid that if on will do a compare to make sure whichever user wrote the file is the only one who can modify it (delete it too).
So, I wonder if that would cause this if somehow these files were modified to belong to a different user than the one running Apache.
Don’t know how—I’m the only one who works on that site. Worked fine pre-upgrade, so maybe something got broken while uploading, dropped packet or something?? (I am not techie at all, so I don’t know!)