"Error" message when at G2 home page

jack376

Joined: 2008-09-01
Posts: 20
Posted: Mon, 2009-07-20 00:13

I am getting a simple "Error" message when trying to get to my G2 main page. There is no other error message on the page at all. Please go here:

http://savethelegs.com/gallery2/main.php

Can anyone help me with this? I initially thought it was a permissions issue but I've checked the folders and they seem fine (755 folders, 644 files). I've asked my webhost about it and they can't see an obvious error on their part and asked me to ask here.

A quick background: I had this error first. Then I decided to upgrade to see if that can solve the problem. I decided to use Fantastico and that screwed my upgrade by creating another g2data folder within the document root (as opposed to where it IS, outside of the public folders). After messing with it a bit, I decided to re-upload the old folders pre-upgrade. It then gave me the same "error" issue, the one I have described above. Now I need to solve this "error" message before I attempt to upgrade again.

Any advice would be appreciated. Thanks in advance.

PS. I have linked some images from my gallery install in my blog posts and those links are not broken. It seems like it's just the main page access.


Gallery version (not just "2"):2.2.5 or 2.2.6
PHP version (e.g. 5.1.6):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 5.0.32):
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 2.0):

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-07-20 00:38
 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Mon, 2009-07-20 00:52

Thanks for your suggestion. Attached is the error log generated. Thoughts?

Keep in mind, I have not purposely changed any settings. My webhost has been screwy and something they could have done might have messed this up. My g2 install includes no custom modifications and I'm using the default skin.

Thanks again.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-07-20 01:38

gallery cannot read/write your g2data directory.
chmod -R 0777 /path_to_your/g2data/

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Mon, 2009-07-20 02:47

I made sure the g2data dir was 777 but it still gives me an error page. go to:

http://savethelegs.com/gallery2/main.php

and take a look at the error page.

thoughts?

thanks in advance again.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-07-20 02:59

I already looked at your error page and rendered my solution.
The -R in chmod -R 0777 is recursive.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Mon, 2009-07-20 03:03

Hi,

I'm sorry. I must not understand what "-R in chmod -R 0777 is recursive". What does this mean? How do I solve it? I have made the dir 777 through ftp but not sure what else to do? I'm just a novice w/ this.

Thanks again.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-07-20 03:09
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-07-20 13:51

Or ask your host to make that change. :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Tue, 2009-07-21 00:51

my webhost said they did -R 0777 recursive but it still gives me errors. I went to the codex but can't delete the cache files because I can't even get to the directory thanks to this problem. i then tried to delete the smarty folder but my ftp is telling me access denied. I'm at a lost. Is this something my host is doing? Thanks in advance.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-07-21 01:53
Quote:
then tried to delete the smarty folder but my ftp is telling me access denied

Then I can guarantee that your host did not change permissions recursively. You can check that in your FTP program. Any FTP program I've seen allows you to see the permissions.

FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?

Are you able to clear you cache by going to gallery2/lib/support:
FAQ: How can I clear cached data?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Tue, 2009-07-21 02:37

I have asked my webhost to make sure that they've changed permissions recursively. I also made the g2data directory 777 and had it recurse to subfolders and files. I am still getting 550 could not change perms, operation not permitted on files within the smarty folder. I'm confused about that. Is this a webhost issue?

I tried to clear the cached data but after giving my password, it gives this error:

Warning: unlink(/home/jack376/g2data/cache/module/core/0/0/0.inc) [function.unlink]: Permission denied in /home/jack376/public_html/gallery2/modules/core/classes/GalleryPlatform.class on line 502

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/jack376/public_html/gallery2/modules/core/classes/GalleryPlatform.class:502) in /home/jack376/public_html/gallery2/lib/support/GallerySetupUtilities.class on line 76

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jack376/public_html/gallery2/modules/core/classes/GalleryPlatform.class:502) in /home/jack376/public_html/gallery2/lib/support/GallerySetupUtilities.class on line 76

Warning: Cannot modify header information - headers already sent by (output started at /home/jack376/public_html/gallery2/modules/core/classes/GalleryPlatform.class:502) in /home/jack376/public_html/gallery2/lib/support/GallerySetupUtilities.class on line 217

Thoughts?

Thank you again.

-------------------Update---------------------

my webhost just got back to me and said that my install is corrupt and asked me to re-install via fantastico. I would prefer not to do a fresh install because i already have storage.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-07-21 02:53

Check file integrity:

FAQ: How can I make sure that my installation files are all intact?

Explain to your host that g2data and ALL files and directories below g2data has to be owned and writable by the webserver.

Usually that means chmod -R 777 g2data that should do it. If they actually do that, that means that EVERYONE on the server can read, write, delete, execute those files if they can get to them.

Or chown -R webserverUser g2data to change ownership to the user the web server runs as.

The only thing I can possibly see being corrupt here is a filesystem or possibly Gallery files, but you'd be getting different errors.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Tue, 2009-07-21 03:21

I did the check in the FAQ by going to the upgrader. it gives me the ok instead of this:

- Inaccessible or missing files (1)
Error: Some files and or directories in your storage directory are not writeable by the webserver user. Run chown -R webserverUser /home/jack376/g2data/ OR run chmod -R 777 /home/jack376/g2data/.
/home/jack376/g2data/versions.dat

same chmod issue? my webhost is really making me angry over this. thanks for your help.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-07-21 03:49

does the versions.dat file exist in g2data?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Tue, 2009-07-21 17:53

yes, its there but for some reason its at 644 and not 777 even though my webhost said they'd 777 recursively. is this soundinf more and more like an issue w/ the hosts? thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-07-21 18:03

Those permissions on versions.dat should be fine for the webserver to read it. There's something screwy going on. For some reason the webserver can't read it even though permissions are set so that anyone on the server, with access to that directory, should be able to read it.

The owner can change it (6) group can read it (4) and everyone can read it (4) = 644

Point your host to this thread and my comment, and have them read the rest of this thread.
http://gallery.menalto.com/node/89191#comment-314529

I've made it pretty clear just what sort of access the webserver needs to g2data. They should be able to fix this.

Maybe there's some open_basedir restriction on. It appears your g2data is at least one level above your webroot, which is good, but maybe php is configured to only read files at or below your webroot.

Post a link to phpinfo, this link explains how:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Wed, 2009-07-22 01:05

I asked my host to take a look at the forum. This is their answer:

"The permission for the g2data folder and the files in it is set 777 . Also open_basedir is set OFF for your account"

Here is the link for phpinfo:

webhost actually created this file for me.

Thanks again.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2009-07-22 02:57

I hate asking for this much access, but if you PM me either ssh or ftp login details I'll take a closer look.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Thu, 2009-07-23 01:49

i pmed you.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-07-23 04:43

I got it, but wasn't able to login with the credentials you supplied. I pm'd you back :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Thu, 2009-07-23 13:45

sorry. forgot to give you some info. i just pmed you again. thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-07-23 14:03

Got your pm, new credentials still are not working.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Thu, 2009-07-23 16:06

just pmed your again.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-07-23 18:02

no workie

I don't know what's not right, the address, the username or the password, but the information you've given me doesn't work. Please try logging in with the information you've given me and see if you can get in or double check the password.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Fri, 2009-07-24 01:52

i'm stumped as to why it doesn't work for you. I tried the login information on 2 different computers on both filezilla and just windows explorer and it worked. i'll pm you again.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-07-24 03:43

I see the problem.

The main problem, the g2data you are specifying in your config.php has different ownership for some files, notably versions.dat

But this doesn't appear to be the case with the g2data directory that's stored under your gallery directory.

Quick and easy fix, I think, edit config.php to point to that g2data directory.

If you want to move your g2data directory outside of your webroot, which looks like what you tried to do, follow these instructions:
FAQ: How can I move my storage folder to another path?

Or the other fix, have your host make sure that the file ownership for all files and directories is correct in the g2data directory that's in your home directory.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Fri, 2009-07-24 13:14

the g2data the config.php is pointing to is supposed to have 777 for folders and 644 for files, right? at least thats what i tried to do myself and the webhost. So this is not the case now?

the g2data within the the gallery2 folder is somewhat of a mystery. i never noticed it before. i thought i had always used the g2data outside of the public folder as specified by the docs so i'm at a lost how that file came about.

i'd like to stick to having the g2data outside of the gallery folder so what specifically do i have to tell my webhost to do w/ that folder so that all of the ownership issues are solved because apparently, something gets lost in translation between what i ask them to do and what they actually do.

thank you again.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-07-24 14:00

Take a look inside the g2data directory that's in your home directory in FileZilla. You should see the names of the user and group who own those files. As you can see versions.dat and your install logs are not owned by the same user or group as the rest of the files. That has to change so that the server is able to edit that stuff and for some reason when they've applied 777 recursively it hasn't been updating those particular files in your g2data directory.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Sat, 2009-07-25 00:57

Ok. I see what you're saying under Owner/Group. So how do i make those changes so all are owned by the same group? Can I do this myself or do I have to ask my webhost? If I have to ask my host, what exactly am I suppose to ask?

Thank you again for your help.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-07-25 02:10

You need to ask your host to make those changes. Tell them you need the ownership. I don't know to what because they have some really funky, un-userfriendly, impossible to administer naming system by using random numbers for group and usernames apparently.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
jack376

Joined: 2008-09-01
Posts: 20
Posted: Sat, 2009-07-25 16:36

i asked my host to change the ownership and it worked, as far as i know. thank you very much for your help. i appreciate it! now hopefully i can upgrade it w/o trouble. thanks again.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-07-25 20:39

Great!
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here