1 of 2
1
gallery images not showing post upgrade
Posted: 08 March 2005 12:01 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

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!

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 03:40 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

I’d ask your host about that…. Or you could try messing with the permissions for the cache directory… =)

 Signature 
Profile
MSG
 
 
Posted: 08 March 2005 03:54 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

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.

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 04:05 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

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.

 Signature 
Profile
 
 
Posted: 08 March 2005 04:07 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

Okaaay ... so why did it work before, but not work now, and how do I fix it?

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 04:18 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

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?

 Signature 
Profile
 
 
Posted: 08 March 2005 04:22 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

Only in image gallery, and it occurs for all of the images in the gallery (about 50 or 60 of them, divided into categories)

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 04:52 PM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Can you turn safe mode off in the php.ini file and see if that helps?

 Signature 
Profile
 
 
Posted: 08 March 2005 05:01 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

I think it’s already off, but will check and let you know.

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 05:13 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

I checked. Safe mode is off.

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 07:20 PM   [ Ignore ]   [ # 10 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Judging from the PHP error you’re seeing, there is still a “SAFE MODE restriction” in place regardless of what php.ini might seem to indicate.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 08 March 2005 07:28 PM   [ Ignore ]   [ # 11 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

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?

 Signature 
Profile
 
 
Posted: 08 March 2005 08:17 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

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!

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 08:20 PM   [ Ignore ]   [ # 13 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

I cannot view your site right now, the page will not load.

The file I mean is the file it says filemtime() is not allowed to access.  The file in the db_cache directory.

 Signature 
Profile
 
 
Posted: 08 March 2005 08:23 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

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.

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 10:16 PM   [ Ignore ]   [ # 15 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

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.

 Signature 
Profile
 
 
Posted: 08 March 2005 10:24 PM   [ Ignore ]   [ # 16 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

db_cache files are deleted. Took quite a while—there was a LOT of stuff in there.

If you need my login info, please let me know.

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
Posted: 08 March 2005 10:28 PM   [ Ignore ]   [ # 17 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

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.

 Signature 
Profile
 
 
Posted: 08 March 2005 10:33 PM   [ Ignore ]   [ # 18 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  05-14-2004

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!)

 Signature 

lee
http://www.infopulsellc.com

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 25
Total Topics: 82017 Total Anonymous Users: 17
Total Replies: 440817 Total Guests: 172
Total Posts: 522834    
Members ( View Memberlist )