Smooth and perfect installation but some errors nevertheless

cs2_1979
cs2_1979's picture

Joined: 2005-09-12
Posts: 18
Posted: Fri, 2005-09-16 18:33

Fresh installed Gallery2 Full. All installation options were installed smooth and fast and gave green light on every aspect.
When opened and logged in as admin I try to activate the button text 'site Admin'in admin mode which results in the message 'Can't find Server/Can't find page'. Also on the same page in admin mode I cannot logout resulting in the same error message 'Can't find Server/etc.' And are only able to leave this admin mode by pushing the 'guest'button-text.

In README.html I tried to access 'SITE ADMIN'and received the following error message:
Error (ERROR_PERMISSION_DENIED) :
in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 209 (gallerystatus::error)
in modules/core/classes/GalleryCoreApi.class at line 518 (galleryuserhelper_medium::assertsiteadministrator)
in modules/core/SiteAdmin.inc at line 46 (gallerycoreapi::assertuserissiteadministrator)
in modules/core/classes/GalleryTheme.class at line 688 (siteadminview::loadtemplate)
in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate)
in main.php at line 287 (siteadminview::doloadtemplate)
in main.php at line 87
in main.php at line 80

Exactly the same error message is given in MODULES, ACTIVATE DIFFERENT THEMES, CREATE SOME NEW USERS, CREATE SOME NEW GROUPS, THUMBNAIL MANAGER and OTHER MODULES.

In ADD ITEMS and ADD ALBUMS I get this message:
Error (ERROR_PERMISSION_DENIED) :
in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 67 (gallerystatus::error)
in modules/core/classes/GalleryCoreApi.class at line 447 (galleryuserhelper_simple::asserthasitempermission)
in modules/core/ItemAdd.inc at line 330 (gallerycoreapi::asserthasitempermission)
in modules/core/ItemAdmin.inc at line 147 (itemaddview::loadtemplate)
in modules/core/classes/GalleryTheme.class at line 688 (itemadminview::loadtemplate)
in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate)
in main.php at line 287 (itemadminview::doloadtemplate)
in main.php at line 87
in main.php at line 80

The other clickable options on this README.html page just work fine.
I am grateful if you could advise me in this matter. Regards.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-16 19:05

i guess your server is misconfigured.
the 'Can't find Server/etc.' failures come from your browser, who tried to contact the server. they don't come from g2.

and the error permission denied error tells us just that you either are not logged in or that there are futher / or the same server issue.

could you reinstall g2 and this time, do not select the url rewrite module in the install other modules step. maybe that's your problem.

if the problem persists, please read:
FAQ: What information is required when I ask for help in the forums?

 
llundgren

Joined: 2003-05-19
Posts: 59
Posted: Fri, 2005-09-16 19:38

Fresh installed Gallery2 Full. All installation options were installed smooth and fast and gave green light on every aspect.
When opened and logged in as admin I try to activate the button text 'site Admin' "error" replies
Error (ERROR_PERMISSION_DENIED) :
in D:\JL\Galery\modules\core\classes\helpers\GalleryUserHelper_medium.class at line 209 (GalleryStatus::error)
in D:\JL\Galery\modules\core\classes\GalleryCoreApi.class at line 518 (GalleryUserHelper_medium::assertSiteAdministrator)
in D:\JL\Galery\modules\core\SiteAdmin.inc at line 46 (GalleryCoreApi::assertUserIsSiteAdministrator)
in D:\JL\Galery\modules\core\classes\GalleryTheme.class at line 688 (SiteAdminView::loadTemplate)
in D:\JL\Galery\modules\core\classes\GalleryView.class at line 285 (GalleryTheme::loadTemplate)
in D:\JL\Galery\main.php at line 287 (GalleryView::doLoadTemplate)
in D:\JL\Galery\main.php at line 87
in D:\JL\Galery\main.php at line 80
all commands except logoff give the same error
From home page Registration and login appear to work.

Can't get anything from site admin since it does not work

http://thelundgrens.us/galery
PHp 5.04
Gallery 2 just downloaded
Win2k server
Apache 2
1.6 gighz pentium 4, 500meg

I think that is most of the requested data

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-16 20:02

you probably have cookie issues. else i can't explain this issue.
well, it's windows :)

could you try other browsers? could you delete you GALLERYSID cookie in the browser cache?

 
llundgren

Joined: 2003-05-19
Posts: 59
Posted: Fri, 2005-09-16 20:42

No file named or containing GALLERYSID is on machine, But it loaded using netscape

Thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-16 21:02

what browser did you try before?
and i was talking about browser cookie cache which is accessed through the browser menus and not through the filesystem.

 
cs2_1979
cs2_1979's picture

Joined: 2005-09-12
Posts: 18
Posted: Sat, 2005-09-17 08:59
Quote:
what browser did you try before?
and i was talking about browser cookie cache which is accessed through the browser menus and not through the filesystem.

I used Internet Explorer 6 during these procedures. I cleaned up cookies and cache as you suggested via the browser IE. But problem remains. Tried it on another computer elsewhere, but problem with IE remains.

As suggested here I installed meanwhile also Mozilla Firefox and.....to my astonishment ALL OPTIONS worked like a treat !!
I can reach options now I have never seen before.
But of course it is impossible to ask from every visitor to my gallery to install Firefox first.............

What could I do the solve this problem.
If it is a server problem, could you please inform me what I should ask exactly my hosting service to do or to change at my server?

More details here:
Gallery version = 2.0 core 1.0.0
PHP version = 4.3.10 apache2filter
Webserver = Apache/2.0.40 (Red Hat Linux)
Database = mysql 3.23.58-log
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Operating system = Linux hoboken.protagonist.nl 2.4.20-31.9.progeny.8smp #1 SMP Thu Jun 9 22:35:30 EDT 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

Thanks for your advice and help. Regards.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 13:45

yay for cookie problems.
i've spent a considerable time, too much time, fixing cookie issues we had during the development of G2.
and it's a huge suprise that it doesn't work for you, since our final solution worked for all kinds of webservers and all kinds of browsers on different client operating systems.

did you change the cookie settings in your g2 site admin page? i don't think so, since you couldn't access it before. you shouldn't change it anyway.

can you create an account for me in your G2 installation? i'd like to see if i too have problems with IE on your G2. just PM me the url and account information please.
we may have to debug your installation.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 16:12

thanks for the login information.

what i found out:
- it works with FF
- it doesn't work with IE
- after disabling the rewrite module, it works in IE and FF
- i've also seen a few 404, but only in IE when redirect is activated. e.g. http://www.globallistics.com/gallery2/v/ doesn't work in IE which is definitely weird

i escalate this to pelle, who is our mod_rewrite guru :)

but it's definitely not a session / cookie problem. well it is, but it's only a consequence of issues with URLs in IE.
for now, I recommend deactivating the rewrite module.

and G2 is really fast on your server, cool :)

 
cs2_1979
cs2_1979's picture

Joined: 2005-09-12
Posts: 18
Posted: Sat, 2005-09-17 16:36

Valiant,
Many thanks again for your great help in trying to solve this weird problem.
I am leaving the admin password open any time to enable you and your team to have a look at the problem again later. I am really grateful for your attention and good care. Best regards.

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Sat, 2005-09-17 16:57

yay for rewrite problems

cs2_1979, can you please pm me the password? I'd like to take a look at this wierd behiaviour.

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Sat, 2005-09-17 17:57

It looks like you havn't configured apache properly. You want to change the ServerName from correcthost.com to www.globallistics.com

If this is a vhost and you've got root, just add
ServerName www.globallistics.com
for this vhost - or change the default value.

Quote:
could you please inform me what I should ask exactly my hosting service to do or to change at my server?

Or, if you have people who can do this for you tell them to update the Apache setting "ServerName" to your domain.

 
cs2_1979
cs2_1979's picture

Joined: 2005-09-12
Posts: 18
Posted: Sat, 2005-09-17 18:15

Thanks Pelle for your speedy help !

pelle wrote:
It looks like you havn't configured apache properly.

Obviously this only effects IE ? Isn't that strange?

Anyhow I will follow your good advice. Hope this will settle the problem. Thanks again Valiant and Pelle, and best regards.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 18:55

cs2_1979, nope, "correcthost.com" is nowhere, that was a misunderstanding between me and pelle.

but your mod_rewrite / server is either misconfigured or behaves strange.
it shouldn't send a 302 redirect, it should redirect internally. and the redirect shouldn't be from http://www.globallistics.com/gallery2/v/ to http://www.globallistics.com/gallery2/v/ , which looks like an infifite redirect loop.
something's wrong with your configuration...

 
cs2_1979
cs2_1979's picture

Joined: 2005-09-12
Posts: 18
Posted: Sat, 2005-09-17 21:20

Seems to become a continuing story........
Any suggestion how to solve this weird thing? If you need more time or other team members to look at, I'm not in a hurry.....good things mostly last longer !

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-09-18 01:04

pelle:
i was wrong, there's no location header.
there is a location header in the first 302, but the weird thing with this server is that we get a second 302, which doesn't have a location header.

cs2_1979:
nope. we can't solve it since it seems to be a bugged / misconfigued server / mod_rewrite.
why? because it sends 1 redirect too much to the browser and this second redirect is not standard conform.
i guess firefox just handles such incorrect HTTP responses differently, i.e. it ignores it. thus it works in firefox.

what you should do: no idea, never seen such a problem. maybe some mod_rewrite gurus from apache know more, maybe this is a known bug. please get in touch with them (apache / mod_rewrite website -> usenet / irc).

 
cs2_1979
cs2_1979's picture

Joined: 2005-09-12
Posts: 18
Posted: Sun, 2005-09-18 01:59

I'll inform my hosting service about the problem hoping they are able to solve this matter.

valiant wrote:
for now, I recommend deactivating the rewrite module.

What are the consequences of deactivating this mod as Valiant suggested?
Can I run G2 in a more or less normal way then? If that is the case I have to live with it.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-09-18 02:11

it runs 100% normal without url rewrite. url rewrite is just used to make you URLs a little nicer.
without url rewrite, your URLs look like
http://www.globallistics.com/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=754
with url rewrite it would look like
http://www.globallistics.com/gallery2/v/Trips+and+Tours/Picname.jpg

same for image src URLs.

 
cs2_1979
cs2_1979's picture

Joined: 2005-09-12
Posts: 18
Posted: Sun, 2005-09-18 06:34

Valiant,
In other words: I can put up with it.
As said: I will discuss this problem with my hosting service and when something positiv will come out, I will ring the bell about this matter here again.

Your help just was fantastic. I'll write your boss an orchid letter and tell him to raise your pay (kiddin') !