Error Step 3 in the Installer

deathsol

Joined: 2005-04-15
Posts: 22
Posted: Fri, 2005-04-15 01:28

When I click continue to step 3 in the installer i get this error.

Fatal error Call to a member function on a non-object in /home/***/public_html/gallery/install/steps/AdminUserSetupStep.class on line 35

I tried useing the latest cvs and got this error at this spot. so i went and got the released beta 2 and i recieved this error as well. The cvs i got like 3-4 days before beta 2 was released installed no problem on my testing subdomain. Also all test run in step 2 were successful.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-04-15 09:14

please fill out the support template, give us more information about your system (php version, platform, webserver, ...). thanks.
this seems to be a very odd error related to a buggy server setup.

 
deathsol

Joined: 2005-04-15
Posts: 22
Posted: Fri, 2005-04-15 15:48

PHP version 4.3.10
MySQL version 4.0.22-standard
Apache version 1.3.33 (Unix)
Machine Type i686
Operating system Linux
Kernel version 2.6.10-1.771_FC2smp

is that enough? I am still running my cvs version i got about 4 or 5 days ago now. I was thinking it might have been a recent change that is causing the problem.

 
deathsol

Joined: 2005-04-15
Posts: 22
Posted: Sat, 2005-04-16 17:09

anything? I am still getting this error at this part with the latest cvs build

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-04-18 04:42

Hrm. I made a change pretty recently that could have caused this. I'm not sure how though. Can you do me a favor and add the following line to AdminUserSetupStep.class on line 35:

printf("<pre>%s</pre>", print_r($galleryStub, 1));

Then when you get to that point, it'll dump out some text that you can cut/paste here. That'll give me an idea of what's going wrong.

Also, can you reproduce it if you click the "start over" button in the upgrader?

 
deathsol

Joined: 2005-04-15
Posts: 22
Posted: Mon, 2005-04-18 21:10

I get the following if i add that line right before 35.

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/thedark/public_html/testgallery/gallery2/install/steps/AdminUserSetupStep.class:72) in /home/thedark/public_html/testgallery/gallery2/install/index.php on line 74


Fatal error: Call to a member function on a non-object in /home/thedark/public_html/testgallery/gallery2/install/steps/AdminUserSetupStep.class on line 36

but if i replace the line with that i just get the following at the top of the page but the rest of it shows correctly.
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/thedark/public_html/testgallery/gallery2/install/steps/AdminUserSetupStep.class:72) in /home/thedark/public_html/testgallery/gallery2/install/index.php on line 74
im pretty sure i get the same effect if i just remove that line. however when i type in a admin password and continue on the next page i get another error

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/thedark/public_html/testgallery/gallery2/install/steps/AdminUserSetupStep.class:72) in /home/thedark/public_html/testgallery/gallery2/install/index.php on line 74

Fatal error: Call to a member function on a non-object in /home/thedark/public_html/testgallery/gallery2/install/steps/AdminUserSetupStep.class on line 58

If you could contact me i could give u temporary access to the gallery/ftp to take a look at it.

 
deathsol

Joined: 2005-04-15
Posts: 22
Posted: Tue, 2005-04-19 23:07

If it is a configuration issue im sure my hosting provider would gladly fix it. What would i tell them? well that is if it is a configuration issue.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-04-21 05:21

I'm not sure that it is a configuration issue. Did you try clicking the "start over" button? Did you get the same error? (comment out the line I asked you to add when you click "start over"). If that doesn't fix it, I'll ftp in and take a look when I get a chance.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-04-21 05:38

See more info about this problem in this topic.
deathsol, it would have been more appropriate to post your new information about this problem here in this topic.

 
deathsol

Joined: 2005-04-15
Posts: 22
Posted: Thu, 2005-04-21 20:12

sorry about that i forgot the name of the post and i didnt think of doing a search for my own topics.

i get this error when i click start over. when i have the code
printf("<pre>%s</pre>", print_r($galleryStub, 1));
i also get it when i dont have the code in there.

Fatal error: Call to a member function on a non-object in /home/thedark/public_html/gallery2/install/steps/WelcomeStep.class on line 50

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-04-22 01:03

so here's something odd.. some other topic mentioned php's register_globals setting so I was playing around with it turned on. With register_globals on when I click "start over" I get the error you mention above...
deathsol, try putting this in a .htaccess file in your gallery2 dir:
php_flag register_globals off
and see if it makes any difference..

 
deathsol

Joined: 2005-04-15
Posts: 22
Posted: Fri, 2005-04-22 03:11

I tried that and it seemed to work just fine. Start over now works and i can also get past the parts where i was recieving the errors. Tommrow I will go through it and see if i notice anything else. I dont have the time to go through it all at this moment.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2005-04-22 03:49

I checked in a fix for this. Get the next nightly and you can turn register globals back on, if you want.