Gallery not loading or returning error

pakMan2010

Joined: 2013-08-21
Posts: 5
Posted: Wed, 2013-08-21 12:47

Gallery version (not just "2"): 2.3.1
PHP version (e.g. 5.1.6): 5.1.6
PHPInfo Link (see FAQ): broken
Webserver (e.g. Apache 1.3.33): Apache 2
Database (e.g. MySql 5.0.32): Mysql
Activated toolkits (e.g. NetPbm, GD): Can't recall
Operating system (e.g. Linux): CentOs 5
Browser (e.g. Firefox 2.0): Firefox 23 & chrome
i get this wall of code:

* @version $Revision: 17580 $ */ /* Include bootstrap.inc in case config.php overrides GALLERY_MAIN_PHP */ require_once(dirname(__FILE__) . '/bootstrap.inc'); require_once(dirname(__FILE__) . '/modules/core/classes/GalleryUrlGenerator.class'); require_once(dirname(__FILE__) . '/modules/core/classes/GalleryCoreApi.class'); /* The REQUEST_URI can either be /path/index.php or just /path/. Get rid of index.php.* */ $path = GalleryUrlGenerator::getCurrentRequestUri(); if (preg_match('|^(/(?:[^?#/]+/)*)(.*)|', $path, $matches)) { $path = $matches[1] . GALLERY_MAIN_PHP; if (!empty($matches[2]) && ($pos = strpos($matches[2], '?')) !== false) { $path .= substr($matches[2], $pos); } } $configBaseUri = @$gallery->getConfig('baseUri'); $urlGenerator = new GalleryUrlGenerator(); $urlGenerator->init(!empty($configBaseUri) ? $configBaseUri : null); $phpVm = $gallery->getPhpVm(); $phpVm->header('Location: ' . $urlGenerator->makeUrl($path)); ?>

I think my PHP is broken, updated it recently.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-08-21 17:36
 
pakMan2010

Joined: 2013-08-21
Posts: 5
Posted: Wed, 2013-08-21 17:49

doh, forgot to mention, it is in DEbug mode already.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-08-21 18:02

And what? you want us to start guessing?

Check your server's error_log or ask your host

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
pakMan2010

Joined: 2013-08-21
Posts: 5
Posted: Wed, 2013-08-21 18:26

*been checking my error_log since i noticed something was broken*(and the error logs aren't telling me anything about PHP not working) i am just trying to make sure its not something with Gallery, and that it was either APACHE or PHP, I am fairly certain it's PHP. I was hoping it was a message that indicates what went wrong with my PHP. I updated PHP to 5.4.17 last week, and last i knew everything was working after rebooting, and now at least a week or 2 later, its like i described. I am going to go research PHP, and probably revert my packages.

 
pakMan2010

Joined: 2013-08-21
Posts: 5
Posted: Wed, 2013-08-21 21:09

I was able to fix my php error logging, I have 2 entries about PHP not liking the time entry.

 
pakMan2010

Joined: 2013-08-21
Posts: 5
Posted: Mon, 2013-08-26 12:50

I finally got some advice to check a PHP/Apache config file that inserted the interpreter twice, thus killing PHP.
Maybe its the version of Gallery I am running, but the PHP geeks where confused by the fact that my gallery installations where not displaying just a blank white page, hiding the code.