Installation: home page is blank

devenh

Joined: 2009-12-25
Posts: 25
Posted: Fri, 2009-12-25 23:43

I'm a new user trying out the latest 3.0 beta 3. I created a mySQL database which was recognized by ..\gallery3\installer (the tables were created), but then I got an error about short_open_tag needing to be on. I added a php.ini file to the gallery3 directory that set short_open_tag on and got past that error, but now all I get is a blank screen and a server 500 error code.

Apache version 2.2.11
PHP version 5.2.9
MySQL version 5.0.67

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-12-26 08:12
Quote:
I'm a new user trying out the latest 3.0 beta 3

Try an experimental version:
http://codex.gallery2.org/Gallery3:Upgrading

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Sat, 2009-12-26 19:46

Is there a download link to G3 I am missing on the Upgrading page?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-12-27 04:34

I see the link it says:
you can download an the latest development source.
Is it not clear?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
DavidFF

Joined: 2009-12-28
Posts: 2
Posted: Mon, 2009-12-28 20:32

I am having the same issue. I installed Gallery 3 (from the d/l link on the homepage) and got a Fatal Error. I then read this post and tried installed an experimental version (in the link floridave provided above) and I am getting a blank white page.

Any more suggestions?

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Mon, 2009-12-28 21:40

I installed the experimental version and still got a blank page (error code 500).

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-12-28 21:55

Blank white page?

Be sure to run the upgrader, go to www.example.com/gallery3/index.php/upgrader where www.example.com/gallery3 is the URL to your G3 install.

See this page for instructions:
http://codex.gallery2.org/Gallery3:Upgrading
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Mon, 2009-12-28 22:16

Blank white page, error code 500. Same result when running the upgrader.

I am doing a fresh install and NOT upgrading from v2. Do you still have to run the upgrader when doing a new install?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-12-28 22:23

Check your server's error logs. That's the only way to get more information about the 500 server error.

That upgrader is for upgrading from previous versions of G3. There is no upgrade path from G2, just the ability to import G2 into G3 (same as going from G1 to G2)

Post a link to phpinfo too if you can't get more information:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Mon, 2009-12-28 22:39

For phpinfo, try

http://www.tamaracka.com/gallery3/phpinfo.php

I'll look into the server log.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-12-28 22:46

Hmmm, I don't see anything obvious there. Are you able to disable or change from FastCGI mode for PHP?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Mon, 2009-12-28 23:04

I can try to disable it in my php.ini file, just tell me what to add. I currently have:

[PHP]
short_open_tag = On

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Sun, 2010-01-10 14:59

Any more suggestions? I would really like to give Gallery 3 a try ...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-01-10 17:34

See if the server's error logs have anything to say.

Disable FastCGI

Try seeing debugging info:
FAQ: How do I see debug information?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-01-10 17:35

The error logs on the server should say something because I do get a 500 server error when watching the HTTP headers.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Tue, 2010-01-12 20:35

There was no information in the error logs.

I enabled debug reporting by uploading a local.php file. Now these errors are reported:

Warning: require() [function.require]: Unable to access /home/tamarack/public_html/gallery3/application/Bootstrap.php in /home/tamarack/public_html/gallery3/index.php on line 90

Warning: require(/home/tamarack/public_html/gallery3/application/Bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/tamarack/public_html/gallery3/index.php on line 90

Fatal error: require() [function.require]: Failed opening required '/home/tamarack/public_html/gallery3/application/Bootstrap.php' (include_path='.:/usr/lib/php') in /home/tamarack/public_html/gallery3/index.php on line 90

I don't have the file ..gallery3/application/Bootstrap.php. I double checked the zip files I downloaded and did not see it.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-01-12 20:47

It's there (I just checked), you still have old code in your install and/or grabbing an old version.

Download the code from here:
http://github.com/gallery/gallery3/zipball/master

Delete everything except for your var directory

Follow the instructions on this page:
http://codex.gallery2.org/Gallery3:Upgrading
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Tue, 2010-01-12 21:20

Okay, now I get this error:

Fatal error: Call to undefined function t() in /home/tamarack/public_html/gallery3/modules/gallery/views/kohana/error.php on line 106

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-01-14 21:56

Can you try a completely fresh install? New database, everything just to see if that works? Get the latest code here:
http://github.com/gallery/gallery3/zipball/master
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Fri, 2010-01-15 04:11

Completely reinstalled and got the same error as before. I took the local.php file out of the gallery3 directory and got this:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator,

and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at tamaracka.com Port 80

I put the local.php file back in, so you can call http://tamaracka.com/gallery3/ and see for yourself.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-01-15 05:43

What's on line 29 of:
/modules/gallery/libraries/Gallery_I18n.php

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

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Fri, 2010-01-15 15:16

function t($message, $options=array()) {

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-01-15 17:11

I'm not sure when as I wasn't attached to IRC, but Bharat left me a note referring to this:
http://gallery.menalto.com/gallery_3.0_beta_3_released?page=3#comment-330921

Do you happen to have a file named local.php in the root of your Gallery? If so, delete it.

I know floridave is working on trying to get to the root of some issue that generates the same error message.

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

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Fri, 2010-01-15 17:20

Yes, I had local.php in the gallery3 directory, but I have the same problem with or without the file. Without it, I get as I mentioned earlier:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator,

and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-01-15 17:36

Can you check your server's error logs to see what the error message is that's getting logged there?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Fri, 2010-01-15 19:32

Unfortunately, there is no entry in the log file.

Logging is on as I could produce a 404 error and it was recorded.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-01-15 19:39

That's the access log. The error log is a separate log. You may need to contact your host to see if you even have access to it.

Here's some info about the error log:
FAQ: What is the webserver error log?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Fri, 2010-01-15 23:43

I asked my ISP to look into it, and here is what they wrote:

looks like /home/tamarack/public_html/gallery3/index.php files is incomplete.

Please try to re-upload this file.

# tail /home/tamarack/public_html/gallery3/index.php
define("VARPATH", realpath("var") . "/");
}
define("TMPPATH", VARPATH . "/tmp/");

if (file_exists("local.php")) {
include("local.php");
}

// Initialize.
require APPPATH . "Bootstrap" . EXT;

============

My index.php is 3249 bytes and ends with:

// Initialize.
require APPPATH . "Bootstrap" . EXT;

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-01-15 23:52
Quote:
My index.php is 3249 bytes and ends with:

// Initialize.
require APPPATH . "Bootstrap" . EXT;

That's correct. What do the error logs say?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Sat, 2010-01-16 02:49

The ISP seems to think the problem with with your script ;)

Here is what they said:

you can download web server error log related to your cpanel account via cpanel.

But any way please ask your to check this script. This script is inconsistent.

the last line of the script is following line and it lack closing php tags.

require APPPATH . "Bootstrap" . EXT;

Please try to re-upload this file.

------------------------

The error log in cpanel contains no information.

Attached is the log I downloaded.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2010-01-16 03:22

Can you post another link to phpinfo and I'll see if one of the devs can poke there head in here and give you (and your host) better information on php and that closing tags are not required in PHP.

The access log is useless for server side (500) errors. The only place those errors get logged is the error log.

The index.php file you have there is complete and correct.

Does this file exist?
/home/tamarack/public_html/gallery3/application/Bootstrap.php

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

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Sat, 2010-01-16 05:54

Yes, Bootstrap.php is in that directory.

http://tamaracka.com/phpinfo.php

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Mon, 2010-02-01 15:10

I downloaded the latest version from

http://github.com/gallery/gallery3/zipball/master

and am still getting the same problem.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-02-01 16:51

Ah, didn't see this before. Don't know why but short_open_tag is off for the local value for PHP, but on for the master value. That needs to be set to on for G3 to work. At some place on your site or your host is at some place.

G3 tries to set those setting correctly, but can't do that if PHP is running as CGI:

This is what G3 tries to set in it's .htaccess file:
<IfModule mod_php5.c>
php_flag short_open_tag On
php_flag magic_quotes_gpc Off
php_flag magic_quotes_sybase Off
php_flag magic_quotes_runtime Off
php_flag register_globals Off
php_flag session.auto_start Off
php_flag suhosin.session.encrypt Off
php_value upload_max_filesize 20M
php_value post_max_size 100M
</IfModule>

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

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Tue, 2010-02-02 14:54

How can you tell the short_open_tag is off for local? When I run http://www.tamaracka.com/gallery3/phpinfo.php, it shows the local and master value as on.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-02-02 16:37

I was looking at the phpinfo file you posted a link to above.

I see you're loading a custom php.ini file there. I also see that upload sizes are different between the 2 phpinfo files. Can you try removing any and all php.ini files you control?

Can you try disabling FastCGI and just using "normal" CGI? I've asked that twice before and you've not acknowledged it once.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Wed, 2010-02-03 16:34

I took the php.ini file out, but then I get this error:

Gallery requires short_open_tag to be on.

How do you disable FastCGI?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-02-03 17:06

O.k. now if you look at phpinfo at the root of your site, you'll see that short_open_tag is set to off for local, and on for master. But I don't see any overriding php.ini file.

http://tamaracka.com/phpinfo.php

Time to ask your host why that's so.

Now, we're at least getting an error message generated from Gallery (and PHP) versus just a server 500 error, which are apparently not logged on your server for some reason.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Thu, 2010-02-04 15:42

Okay, I fixed the short_open_tag problem (local off, global on):

http://tamaracka.com/phpinfo.php

but in gallery3 the values are still different:

http://tamaracka.com/gallery3/phpinfo.php

Do you still want me to try to disable FastCGI and, if so, how do I do that?

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Thu, 2010-02-04 15:55

Okay, I fixed the short_open_tag problem (local off, global on):

http://tamaracka.com/phpinfo.php

but in gallery3 the values are still different:

http://tamaracka.com/gallery3/phpinfo.php

Do you still want me to try to disable FastCGI and, if so, how do I do that?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-02-04 17:14

You'll have to contact your host about disabling FastCGI if you can.

As for the phpinfo, the one in Gallery3 is different. I see at least one typo/syntax error, for post_max_size

I don't have any idea why or how you have different settings if there isn't a php.ini file making changes as it's my understanding that .htaccess can't make changes to PHP settings if running in CGI mode, but maybe that's a difference between FastCGI and CGI.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
devenh

Joined: 2009-12-25
Posts: 25
Posted: Fri, 2010-02-05 16:27

Good news, it looks like I have it working.

The bad news is that the problem appears to be with gallery3/.htaccess. If I remove this file, it works, if I restore the file it does not.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-02-05 16:41

I think there might be something up with your server config.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here