[SOLVED] G2 Beta2 upgrade, some problems :)

Spritfire

Joined: 2004-05-12
Posts: 67
Posted: Sun, 2005-04-17 16:24

Hi and hello

I just upgraded from G2 Beta1 to Beta2, that went without any pain.
I entered my gallery, everything looked fine and shiny.
but when I tried to edit something I got "Fatal error: Call to undefined function: usedefaultstyle() in /home/spritfire/public_html/gallery2/modules/core/classes/GalleryView.class on line 234"

Anyone have a clue ? :)
----

Gallery URL (optional):
Gallery version: G2 Beta2
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s): netpmb, imagemagic
Operating system: Gentoo 1.4.16
Web browser/version:
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-04-17 18:24

please go to the yourgalleryurl/upgrade/ and go to the system check step.
are there any missing/modified files?
thanks.

 
Spritfire

Joined: 2004-05-12
Posts: 67
Posted: Sun, 2005-04-17 22:00

Old files (3)
These files are no longer part of Gallery. They probably won't cause any problems but it is a good idea to remove them to keep your install clean.
...tabaseStorage/schema/platform/mysql/GalleryPermissionMap.sql
...abaseStorage/schema/platform/oracle/GalleryPermissionMap.sql
...aseStorage/schema/platform/postgres/GalleryPermissionMap.sql

That is all....
Rest say "success"

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-04-17 22:09

strange. could you reupload /home/spritfire/public_html/gallery2/modules/core/classes/GalleryView.class

the referenced function is defined in this very file where the function is also called. so the error message is pretty strange.

 
Spritfire

Joined: 2004-05-12
Posts: 67
Posted: Sun, 2005-04-17 23:22

Reuploaded, still the same error.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-04-17 23:33

Spritfire, that is very strange. not G2s fault for sure :)
are there any php accelerators/caches involved in your system setup? something like zend, PHPA, turk mmcache or eaccelerator?
could you restart the php threads if there are some and the apache server?

 
Spritfire

Joined: 2004-05-12
Posts: 67
Posted: Mon, 2005-04-18 01:33

running : The ionCube PHP Accelerator , wich have been installed the last two months ( before I installed G2 Beta1 that is )
Apache is restarted, still getting same error.

I doubt it is the server tho, since it didn't give any errors before I installed beta2
or could I be wrong ?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-04-18 02:53

It's possible that ionCube could have cached an old version of the class. I've had problems with it in the past and have found that flushing the cache using phpaca (or whatever their management interface is called these days) will generally fix it.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-04-18 10:34

yeah, i too had a caching issue with PHPA. i even used their command line tool to empty the cache to no avail. i had to empty id manually with rm * in their cache directory and filed a bug. don't know what the conclusion was, something like they said "hmm, that should not have happened, the disk cache should be emptied, ...".

 
Spritfire

Joined: 2004-05-12
Posts: 67
Posted: Mon, 2005-04-18 14:48

Problem solved, it fixed itself over the night.
I dont have a clue why :P
tnx for all the help anyways :)