No access to gallery after upgrade from 2.2.1 to 2.3

timoe

Joined: 2009-03-08
Posts: 11
Posted: Sun, 2009-03-08 21:58


Gallery version : 2.2.1 befor upgrading
PHP version : 5.2.9
PHPInfo Link : http://www.septillion.nl/phpinfo.php
Webserver : Apache/2
Database : 5.0.51a
Activated toolkits : netpbm
Operating system : Linux (Fedora)
Browser : Opera 9.64

I did a upgrade for 2.2.1 to 2.3. I replaced all the old files by the new ones. After that I runned the upgrade tool. It never gave a error and it said everything was fine. It gave a succesfull upgrade. But now, when I try to access my gallery it just displays a blank page. The website is http://www.foto.septillion.nl Does anyone knows how to fix it?

Thanx in advance,

Timo

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-03-09 03:26

http://foto.septillion.nl/main.php
your server has some redirect loop if I go to http://foto.septillion.nl/
so try:
http://foto.septillion.nl/main.php

also, you don't have any css files loading
it says:
<link rel="stylesheet" type="text/css" href="/main.php/themes/matrix/theme.css"/>
It does not need the main.php in the href. Is it a customized theme?

See if editing config.php the last couple of lines:

$gallery->setConfig('baseUri', '');
define('GALLERY_MAIN_PHP', '')

did you have the url rewrite module activated before your upgrade?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
timoe

Joined: 2009-03-08
Posts: 11
Posted: Tue, 2009-03-10 14:31

Thnx for your reaction. It's not a custom theme. Before the update there only was a custom CSS running. But i replaced the hole theme with the one from gallery 2.3. I edited the lines in de config.php. I removed index.php in the define rule but no change at all. I was indeed running URL rewrite when I updated my gallery.

As extra information, I first just ciopied the new files over the old ones and tried to upgrade which say everything was succesfull only there were some old files still on the sever that gallery no longer used. Because after that gallery didn't work i made a clean folder with only new gallery 2.3 files. (Renamed the "old"folder and uploaded al the gallery 2.3 files into the orginal folder) and added the module files from the old install into the clean instal folder. That's what's running atm. But it's compleetly the same, still not working :(

Timo

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2009-03-10 15:09
Quote:
and added the module files from the old install into the clean instal folder.

Er... but doesn't that mean you just overwrote the upgraded modules with the old code?

 
timoe

Joined: 2009-03-08
Posts: 11
Posted: Tue, 2009-03-10 15:32

No, i only added the modules that are not in the typical installation. So nothing is overwritten.

Timo

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2009-03-10 15:33

Which modules did you add? Try removing them, and running with the stock 2.3 installation. Also for blank page problems see FAQ: I get only a blank screen when trying to view my Gallery, what's wrong?

 
timoe

Joined: 2009-03-08
Posts: 11
Posted: Tue, 2009-03-10 15:58

I did add the following modulkes:
Module: remote
Module: sizelimit
Module: imageblock
Module: imageframe
Module: mp3audio
Module: dynamicalbum
Module: sitemap
Module: bulkmanage
Module: mime
Module: getid3
Module: statistics
Module: uploadapplet
Module: itemadd
Module: bulkupload
Module: watermark

After replacing the "mixed" module folder with the module folder from the typical install i still get a enless loop. /main.php results in

Quote:
Error
An error has occurred.

Back to the Gallery

After that I tried to run de upgrader. This resulted in the error, Can't upgrade Core module.

I enabled the debug mode ($gallery->setDebug('buffered');) the direct url still does not show a page. /main.php gives

Quote:
Error Detail -
Error (ERROR_BAD_PATH) : Invalid path: modules/imageframe/classes/ImageFrameImpl.class
in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 171 (GalleryCoreApi::error)
in modules/core/classes/GalleryCoreApi.class at line 161 (GalleryFactoryHelper_simple::newInstance)
in modules/core/classes/GalleryTheme.class at line 949 (GalleryCoreApi::newFactoryInstance)
in modules/core/classes/GalleryView.class at line 301 (GalleryTheme::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in main.php at line 88

Timo

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2009-03-10 16:04
Quote:
I did add the following modulkes:

Half of those are included with the distribution, and may well have been upgraded, so you either overwrote the new code or used module code that's incompatible with 2.3 and should have been upgraded.

 
timoe

Joined: 2009-03-08
Posts: 11
Posted: Tue, 2009-03-10 16:24

Non of those modules are in the typical set so nothing is overwritten. But this time I added al those modules from the full installer set (gallery 2.3). But the modules statistics, bulkmanage and bulkupload are not in there. After that i runned the upgrader and it upgraded all the modules this time but it still gave the same error on the core module.

[url]www.foto.septillion.nl/main.php[/url] now displays a gallery (with css) but without the pictures. Also i can't enter a album.

I hope i'm on the right track.

Timo

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-03-11 19:41

Your images are being delivered like:
http://www.foto.septillion.nl/?g2_view=core.DownloadItem&g2_itemId=220238&g2_serialNumber=3
note the missing main.php before the ?g2_view
I don't know why.
Also of note is that this url:
http://www.foto.septillion.nl/ is a redirect loop
Do you have a .htaccess file?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
timoe

Joined: 2009-03-08
Posts: 11
Posted: Wed, 2009-03-11 20:14

I noticed that the main.php was missing. In the version that's online at the moment (the clean set of files right from the zip) there's no .htaccess. In the original there was one. So after the replace attemp of getting 2.3 there was a .htaccess as well.

The .htaccess

Quote:
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} /admin/(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?g2_view=core.SiteAdmin [QSA,L]
RewriteCond %{THE_REQUEST} /([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?g2_path=%1 [QSA,L]
</IfModule>

# END Url Rewrite section

Timo

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-03-11 20:23
Quote:
I noticed that the main.php was missing.

FAQ: How can I make sure that my installation files are all intact?

Deactivate the url rewite module if active and delete the .htaccess file.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
timoe

Joined: 2009-03-08
Posts: 11
Posted: Wed, 2009-03-11 20:54

The main.php wasn't really missing, only in the url. I fixed it aswell as i fixed the redirect loop by setting up
define('GALLERY_MAIN_PHP', 'main.php')
instead of
define('GALLERY_MAIN_PHP', '')
like floridave said in his first post. I also checked if rewrite was active but it wasn't and there is no .htaccess.

Now the gallery seems to start to show some life. It's showing some pictures but some only the top. I also can't login to go to the backend.

Timo

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-03-12 01:41
Quote:
It's showing some pictures but some only the top.

I would just re-highlight the image you want as the highlight image.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
triggerman

Joined: 2006-06-27
Posts: 10
Posted: Mon, 2009-03-16 13:33

i am having the same issues for http://www.nickhartcher.com/gallery/main.php
any ideas?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-03-16 13:51

triggerman,
plase start a new thread. the url provided gives a blank page.
FAQ: What information is required when I ask for help in the forums?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team