Gallery 2.3.1 keep redirecting to the Upgrade page

AdrietB

Joined: 2011-03-07
Posts: 2
Posted: Mon, 2011-03-07 22:55

Hi I upgraded Gallery 2.1 to 2.3.1 and migrated to a new server. (like for like)
It worked fine but one way or the other I seemed to have it messed up during security enhancements of the web-server in general.
It keeps routing me to the Upgrade page while I am 100% sure that it worked before.
It must have something to do with access-rights / user permission or so, but can't find it. Looked on internet and forums and even tried to compare it with my old system (which had a slightly different setup).
No luck after more than 2 weeks.. :-(

What can cause this problem?
What will happen if I re-run the setup?

I hope someone can be of any help.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2011-03-07 23:22

That happens if Gallery can't read the versions.dat file located under your g2data directory. Make sure that Gallery can read AND write to ALL files and directories under and including your g2data directory.
____________________________________________
Like Gallery? Like the support? Donate now!

 
AdrietB

Joined: 2011-03-07
Posts: 2
Posted: Tue, 2011-03-08 20:09

Thx Nivekiam. I double checked the the file permisions on versions.dat. It was set to 644 with user/group set to the apache user 'www-data'.
I even changes it to 666 and gave the g2data dir 777 permission.
It all does not help.

However, what I haven't realized was the line above the Upgrade screen in the browser:
"Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/gallery2/modules/core/classes/GalleryStorage.class on line 290", which is also in the apache error log.
Google only gives a simular errors during the install/upgrade process.

Any more suggestions?
Thanks in advance.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2011-03-12 11:16
AdrietB wrote:
Any more suggestions?

Download G2.3.1 from this site and use this instead of one installed using a package manager.

The reason being that Line 290 of gallery2/modules/core/classes/GalleryStorage.class in G2.3.1 does not assign the return value of new by reference.

The implication therefore is that you have an outdated version of gallery2/modules/core/classes/GalleryStorage.class and heaven knows what else.

--
dakanji.com