Gallery not working at all after server migration

kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Wed, 2013-01-02 01:15

After migrating my site to a new new server I have been unable to get the site to respond at all. My other migrations went well and are up and running (vbulletin and etc). Database is active and account has been validated to have proper access and correct credentials in the config.php. I have also tried to turn on debug with no results. The only relevant error I can find is: malformed header from script. Bad header=<br />: main.php

Thanks in advance for any ideas.


Gallery version (not just "2"): 2 something, can not find exact version in any of the files (main, index, config...)
PHP version (e.g. 5.1.6):5.4
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): 2.2.23
Database (e.g. MySql 5.0.32): 5.5.28
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): CentOS 6.3
Browser (e.g. Firefox 2.0): any (IE, chrome ,firefox)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-01-02 02:20

look to your g2data/versions.dat for your version
head to yoursite.com/gallery2/upgrade/ and run the upgrader to step2(system checks) and see if there are any corrupted/modified file

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Wed, 2013-01-02 02:35

Version is 2.3 and the upgrade folder only produces a blank page. Similar to to the main page. I can get to a simple html file without issue.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-01-02 02:45

Server error logs will lend a clue.
All we can do is guess.

I will say that cpanel server's don't allow directories to be better that 0755 so you can try from cmd line within your G2 directory:

find . -type f -print0 | xargs -0 chmod 0644
find . -type d -print0 | xargs -0 chmod 0755

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2013-01-02 05:52

You most likely ran a PHP version <= 5.2 on your old server and your signature says you now have PHP 5.4.
If this is the case, and you have copied your Apache configuration across from your old server, check your Apache configuration files and make sure that Action application/x-httpd-php5 is pointing to a "php-cgi" binary and not to a "php" binary.

--
dakanji.com

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Thu, 2013-01-03 01:40

Only the site data and database were copied over. The HTTD configuration is current for the new install. I am also not seeing anything of any value logged.

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Thu, 2013-01-03 02:00

I at least can get a error message after adjusting the permissions of the files to 655:

Warning: require_once(/home/kylespho/public_html/modules/core/classes/Gallery.class): failed to open stream: Permission denied in /home/kylespho/public_html/bootstrap.inc on line 33

Fatal error: require_once(): Failed opening required '/home/kylespho/public_html/modules/core/classes/Gallery.class' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kylespho/public_html/bootstrap.inc on line 33

I did try the commands you posted but received the same blank page as originally stated. Also worth noting that the site was originally on a cpanel site.

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Sun, 2013-01-06 21:00

Any other ideas? I did end up reverting back to php 5.3.20, but still the site will not do anything. Even going diectly to main.php or index.php. phpinfo.php works fine. Apache logs are no showing any relevant errors. I even went as far as removing the entire cpanel account and recreating it, and restoring the DB and still no luck.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-01-06 22:23

does /home/kylespho/public_html/modules/core/classes/Gallery.class exist?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Sun, 2013-01-06 22:29

Yes it does.

Also in an attempt to get anything working I downloaded the latest version of 2 and have uploaded and I am unable to load the update/install.php.

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Sun, 2013-01-06 22:31

I did just find this error when trying to run the update: SoftException in Application.cpp:574: Could not execute script

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-01-06 22:33

try uploading/installing a fresh copy and see if it runs.
If not it is a server misconfiguration error.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Sun, 2013-01-06 22:35

I can eliminate the error by updating the permissions back to 755 but still nothing.

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Sun, 2013-01-06 23:41

huh?

 
kyle1745

Joined: 2002-09-06
Posts: 68
Posted: Mon, 2013-01-07 00:38

The installer does open and it passes the checks. I did not complete the install hoping I can salvage my original install.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-01-07 01:07

install a new gallery ++ new g2data and make sure the codebase is working properly.

Then import your old DB and edit gallery2/config.php w/ the path to your old g2data

-s
________________________________
All New jQuery Minislideshow for G2/G3