Admin account cannot Add Album - nothing on sidebar menu

funkandlittle

Joined: 2008-04-19
Posts: 6
Posted: Mon, 2012-08-20 21:37

I created a gallery2 site for a friend's website a few years ago (gallery.funkandlittle.com) and haven't had to touch it really since then. Now we want to add an album. I logged in with the admin account (not named "admin" - does that matter? There is no account named "admin" anymore - not sure if I renamed it or deleted it years ago, or what.)

Anyway, I CAN log in. I CAN click Site Admin and see all the options in there. I AM a member of "Site Admins" group. However, the sidebar menu has no options on it beyond Advanced Search. So I cannot find the "Add Album" link anywhere. What did I screw up? :) Thanks so much!! Here's my system info:


Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.3.11 cgi-fcgi
Webserver = Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.6b mod_fastcgi/2.4.2
Database = mysqlt 4.1.14, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = FreeBSD hostingprod.com 7.4-YAHOO-20110719 FreeBSD 7.4-YAHOO-20110719 #0: amd64
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20100101 Firefox/14.0.1
Rows in GalleryAccessMap table = 111
Rows in GalleryAccessSubscriberMap table = 182
Rows in GalleryUser table = 4
Rows in GalleryItem table = 180
Rows in GalleryAlbumItem table = 13
Rows in GalleryCacheMap table = 0

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2012-08-21 00:03

Difficult to say as it can be any of a host of reasons.

You should be able to set the theme to matrix (After you log in as a SiteAdmin) using this url (amend for your site)
example.com/gallery2/main.php?g2_controller=core.AdminThemes&g2_form[action][saveDefaults]=1&g2_form[default][theme]=matrix.

You should be able to fix things from there.

You should also upgrade the installation to v2.3.2.

Note that while G2 explicitly includes code to allow updating to new versions directly from any previously released version, you would probably be safer to first go to v2.2.6 before jumping to v2.3.2. If you want to try going from v2.2.4 directly, please let us know if it works.

Obviously back everything up first. That means G2 folder, g2data folder and database.

--
dakanji.com

 
funkandlittle

Joined: 2008-04-19
Posts: 6
Posted: Tue, 2012-08-21 01:21

Thanks. I tried the theme switch using your URL and it did not work. Here's what it said:

Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Back to the Gallery

Error Detail -
Error (ERROR_REQUEST_FORGED)
in modules/core/classes/GalleryController.class at line 239 (gallerycoreapi::error)
in main.php at line 224 (gallerycontroller::assertisgenuinerequest)
in main.php at line 94
in main.php at line 83

System Information
Gallery version 2.2.4
PHP version 4.3.11 cgi-fcgi
Webserver Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.6b mod_fastcgi/2.4.2
Database mysqlt 4.1.14
Toolkits Thumbnail, SquareThumb, NetPBM, Gd
Operating system FreeBSD hostingprod.com 7.4-YAHOO-20110719 FreeBSD 7.4-YAHOO-20110719 #0: amd64
Browser Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2012-08-21 10:11

Try the following:

1. Delete the GALLERYSID cookie from your browser (you can simply clear all cookies)
2. Comment out the main.php assertisgenuinerequest block
3. Log in again and try the url.

Note that you must restore the assertIsGenuineRequest block as soon as you are done as it is an important security check.

--
dakanji.com