[SOLVED] g2 rc1 problem - blank pages after redirect

Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Sun, 2005-08-07 01:46

any time i change something i am getting a blank page, even when i login the page is going blank, refreshing it still gives a blank page. only way to see it again is to retype in the url

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-08-07 03:57

Please fill out the support template and post a link to a phpinfo.php file:

http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Sun, 2005-08-07 04:37

well i would give you the system info, but when i hit run now i get a blank page. and only way to see anything in gallery again is to start from the main url. every thing was working fine till i updated to RC1

PHP INFO

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-08-07 07:03

I'm able to browse around your Gallery and access your login page just fine. I guess wait for one of the devs.

Maybe try clearing your local cache, your GALLERYSID cookies. Also try going to http://yellow-rose.mine.nu/gallery2/lib/support/ Go to Cache Maintenance and clear it.

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Sun, 2005-08-07 07:06

i can browse fine also, it when i hit login i get a blank page, of it i try to make a change in the admin section i get a blank page

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-08-07 07:14

Try clearing the cache. If that doesn't work I'd try reuploading from either CVS or by the second method listed here, http://codex.gallery2.org/index.php/Gallery2:faq#How_can_I_get_Gallery2_on_my_webserver.3F

There have been quite a few people that have had problems with their FTP client corrupting a file or two when uploading the 1000s of files G2 has.

If that doesn't work, well, then a developer is going to need to help cause I don't know where to go from there ;)

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Sun, 2005-08-07 07:42

i tryed clearning cache and i have used cvs and a night buld from Jesse Mullan website

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-08-07 11:12

make sure you get "success" for alls system checks in upgrade/index.php system checks step. and double check the file integrity message.

(next step: activate immediate debug mode and then try to login)

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Sun, 2005-08-07 17:22

i did have success for them all, and i tryed debug mode, i type in my user name then password hit login and get a blank page

 
arnal75

Joined: 2004-12-09
Posts: 14
Posted: Sun, 2005-08-07 19:05

Hi, I get exactly the same problem as you, Stolnvw ! After a clean install of RC1 after having kept my g2data folder and the MySQL dB, a lot of links bring me to a blank page on which nothing seems to be loading.

I also tried to update via CVS 15 minutes ago, but pb remains.

When I log in, I only get a blank page. I tried to re-enter the URL of the main page, and then I get the correct page. But the problem come back when I try to disconnect an connect again: blank page.
I flushed the cache, the template cache, I had my server restarted, but nothing helps.

Did you find a solution?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-08-07 20:50

works for me.

please edit config.php and change the debug mode to 'immediate' debug mode. in immediate debug mode, you should get some output.

if not, take a look at your apache error log, you should see something like a segfault.

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Sun, 2005-08-07 21:43

Error (ERROR_PERMISSION_DENIED) :

* in modules/useralbum/UserAlbum.inc at line 55 (gallerystatus::error)
* in main.php at line 176 (useralbumcontroller::handlerequest)
* in main.php at line 90
* in main.php at line 82

that the error its saying when i try to login

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-08-07 21:54

doesn't make too much sense. you login, you selected the site admin -> useralbums option to redirect to the user album when logged in, so it wants to redirect you to the user album. but the userId is the one of the anonymous user.

please post some information:

http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Sun, 2005-08-07 23:05

Gallery version = 2.0-rc-1 core 0.9.34
PHP version = 4.3.1 apache2filter
Webserver = Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/1.9.91mdk)
Database = mysql 4.0.11a-gamma
Toolkits = NetPBM, ArchiveUpload, Gd, Thumbnail, ImageMagick, Exif
Operating system = Linux 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

link to the php info page is above

 
maverickpl

Joined: 2005-08-06
Posts: 2
Posted: Mon, 2005-08-08 00:19

I am having the same problem described above. My phpinfo file is here (http://www.da3.net/include/phpinfo.php) and gallery installation is here (http://www.da3.net/gallery2)

Blank page when I login and blank when I change settings in admin.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-08-08 00:29

maverickpl, please activate immediate debug mode and then post the debug output (when you click on the redirect) you get when saving something in admin / login.

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Mon, 2005-08-08 01:57

also if you go to my gallery and click on album Stolenvw then album My car, then click on a pic (witch works fine) then click on the My Car link up top or any link uptop i get a blank page.

This happens without being logged in also

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2005-08-08 02:41

Stolnvw, please activate immediate debug mode in config.php, then let us know when we can try your site again to see if it outputs any debug info.

Also, just to cover this base, can you check your Apache error logs to see if there are any errors generated?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2005-08-08 02:46

Actually, now that I look at your URLs a bit closer I see that it's tagging this on the end: &g2_highlightId=### (where ### equals the item ID of the item you are currently viewing.

So when I'm here, http://yellow-rose.mine.nu/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=129

And click on "Stolenvw" at the top the URL is this:
http://yellow-rose.mine.nu/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=10&g2_highlightId=129

Instead of this:
http://yellow-rose.mine.nu/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=10

maverickpl's gallery is doing the same thing. Hope that info is useful to you valiant.

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Mon, 2005-08-08 03:19

'immediate' debug is on now

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-08-08 07:05

nivekiam, what do you mean? it's normal that G2 _redirects_ to the page with the highlighted item. in your example, you have 2 different itemIds. so the first page you'll see in your request is just a redirect = only debug information in debug mode.

Stolnvw, maverickpl, i need you to trigger the problem when you're in immediate debug mode and then post the complete output of the second page on http://gallery.pastebin.com

 
arnal75

Joined: 2004-12-09
Posts: 14
Posted: Mon, 2005-08-08 09:23

Hi valiant, nivekiam,

I obtain strictly the same symtoms as Stolnvw and maverickpl: blank page after logged in.

My system infos are the following (my gallery URL: http://galerie.brucy.org, currently in buffered debug mode):
-------
Gallery version = 2.0-rc-1 core 0.9.34
PHP version = 4.3.3 apache2handler
Webserver = Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6.12.92mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2
Database = mysqlt 4.0.15
Toolkits = ArchiveUpload, Thumbnail, NetPBM, ImageMagick, Ffmpeg, Exif, Gd
Operating system = Linux cameleon.brucy.org 2.4.22-10mdk #1 Thu Sep 18 12:30:58 CEST 2003 i686
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
-------

My phpinfo() is viewable on http://cameleon.brucy.org/phpinfo

I turned my gallery2 in immediate debug mode and have posted the output w/ some more details you'll find on http://cameleon.brucy.org/download/blank_page_issue_G2RC1_arnal75.doc

Just note:
- in buffered mode: everything's working fine, but w/ click on 'continue' each time it's asked.
- in other debug modes (or in 'false'): problem remains, only the debug output is displayed.
- in immediate debug mode: impossible to log in: the 'connect' form is displayed again after entering login/password and clicking on the 'validate' button.

Hope it can help...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-08-08 10:10

arnal75, thanks for debug information.

it seems you have another problem (additionally to the blank page thing), right?
from your debug log, it seems that if you try to login with debug mode enabled, you're not logged in after the redirects. correct?

what's strange is rename(/home/webmaster/gallery2_data/sessions/fa003472010479333e0a93e8434dc5a2xOF0il, /home/webmaster/gallery2_data/sessions/fa003472010479333e0a93e8434dc5a2) i don't know where in the code it instructs that. it doesn't make sense.

have you checked the apache error logs? when debug mode is false and you get empty / blank pages, do you see a segfault or something like that in the error log?

 
arnal75

Joined: 2004-12-09
Posts: 14
Posted: Mon, 2005-08-08 19:02

Thx for quick answer.
I didn't apply any modification to the code... So I don't know from where this rename come... Looks strange, u're right...

I deleted the content of the sessions directory, but the same is happening!

My apache error_log doesn't display any segfault or anything else when I log in and get a blank page w/ debug=false

I didn't try yet to re-install the entire G2RC1 package... But I don't think it will help!

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Mon, 2005-08-08 22:43
 
allanh1

Joined: 2005-08-09
Posts: 6
Posted: Tue, 2005-08-09 04:58

I'm having the same problem.

http://photos.allanh.org/main.php

http://photos.allanh.org/phpinfo.php

I am aware that I should probably upgrade PHP, but I meet min. system requirements (using netpbm).

I'll turn on debug mode and all that later if need be, but I can't just now.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2005-08-09 05:07

valiant, I see what you mean about the redirects. But it doesn't appear that for these people having the problems that apache or G2 or PHP or something is not doing the final redirect.

I noticed on one person's gallery when they put it into debug mode it worked, but on the others when it's not in debug mode it doesn't perform the redirect.

I'll butt out if I'm off base here, just noting my observations. ;)

 
arnal75

Joined: 2004-12-09
Posts: 14
Posted: Tue, 2005-08-09 08:16

I re-installed the whole G2RC1 package from the latest nightly snapshot on J.Mullan's site, but it didn't change anything: still the blank page issue in 'normal' mode, and various behaviours depending on the debug mode:
- in buffered mode: everything's working fine, but w/ click on 'continue' each time it's asked.
- in other debug modes (or in 'false'): problem remains, I get a blank page, or only the debug output is displayed.
- in immediate debug mode: impossible to log in: the 'connect' form is displayed again after entering login/password and clicking on the 'validate' button.

Pb of redirection that's not working well?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-08-09 13:27

arnal75, and others, when you install beta 4 in parallel or instead of rc1, do you have the same redirect problems?

i've changed something in rc1 that affects recirects only marginally... maybe it's this. but it's really something that shouldn't do anything on apache servers.

 
steju
steju's picture

Joined: 2005-08-09
Posts: 2
Posted: Tue, 2005-08-09 14:26

hi everyone,

i have watched this tread silently since i have the exact same problem and there wasn't much i could add about it. the symptomps were exactly the same that of arnal75, including the debug behavior and my system environment was somehow similar. i even tried cvs last night and the results were the same.

to answer your question, beta4 doesn't have the same problem. i have been using beta3 and beta4 up until trying to upgrade to rc1 and they worked just fine. i reverted to beta4 from rc1 (i.e. restored the db and edited versions.dat and ran upgrade wizard from beta4) and everything started to work just fine again.

did you incorporate the modification you're talking about into cvs? if so, i could give it a try again.

 
arnal75

Joined: 2004-12-09
Posts: 14
Posted: Tue, 2005-08-09 14:56

I didnt't try to downgrade to beta4 yet or to install a parallel beta4.
I'll try it soon.

I was running beta1, then beta2, beta3 and beta4 without any problem and I upgraded from beta4 to RC1 without any change to my system between beta and RC1...
So I think it'll work again in beta4.

Maybe the redirect modifications?

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Tue, 2005-08-09 19:37
valiant wrote:
arnal75, and others, when you install beta 4 in parallel or instead of rc1, do you have the same redirect problems?

i've changed something in rc1 that affects recirects only marginally... maybe it's this. but it's really something that shouldn't do anything on apache servers.

All my upgrades from beta 3 through all the nightly shots of beta4 all worked fine. as sone as i did the rc1 nightly is when i started getting the blank pages

I still have a beta 4 instal running on my comp that the RC1 is on, and the beta4 works fine.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-08-09 22:25

can you all please try the following:
- deactivate debug mode (false)
- deactivate url rewrite, if it was active
- add error_reporting(E_ALL); right after the
<?php
line in main.php

does this change anything? do you get a warning or so?

 
arnal75

Joined: 2004-12-09
Posts: 14
Posted: Tue, 2005-08-09 22:43

Valiant,
I applied the 3 modifications you propose (debug OFF, URL rewrite module deactivated, 'error_reporting(E_ALL);' added), I refreshed the page, but nothing changes: blank page without any warning, message, or nothing.
Apache error_log remains empty... :(

 
arnal75

Joined: 2004-12-09
Posts: 14
Posted: Tue, 2005-08-09 22:55

I just had a look to the system infos given by the persons meeting the pb.
The only common thing is the WebServer: Apache-AdvancedExtranetServer/2.0.47 (which comes by default with MDK9.2).

I don't know if it's a good track, but it's a fact (needs to be confirmed with more cases)!

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Tue, 2005-08-09 22:56

i have also done

- deactivate debug mode (false)
- deactivate url rewrite, if it was active
- add error_reporting(E_ALL); right after the
<?php
line in main.php

and still get just a blank page

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-08-09 23:38

you might want to track http://codex.gallery2.org/index.php/Gallery2:KnownIssues .
but i don't have an idea yet what the issue is.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-08-10 03:10

Can one of you edit your main.php to try something?
search for GalleryMain(); and remove the flush(); call just below it. Does that help?

 
klondike

Joined: 2003-11-18
Posts: 45
Posted: Wed, 2005-08-10 03:55

I removed the flush call and the problem is gone.

 
arnal75

Joined: 2004-12-09
Posts: 14
Posted: Wed, 2005-08-10 09:53

The same for me.

I removed the flush(); call in main.php and it's perfectly working now for me!
Thx mindless...

 
steju
steju's picture

Joined: 2005-08-09
Posts: 2
Posted: Wed, 2005-08-10 14:59

works like a charm. the upgrader complains about the modified main.php but otherwise works perfectly now.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-08-10 18:42

now fixed in cvs.

 
Stolnvw

Joined: 2005-06-14
Posts: 33
Posted: Wed, 2005-08-10 20:13

That worked for me also

 
krisvt

Joined: 2005-08-10
Posts: 2
Posted: Wed, 2005-08-10 21:19

that did'nt work for me.... what else could be the problem?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-08-10 21:23

krisvt, please open a new topic and add as much information about your problem and about your php/g2/webserver as possible.
see
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F