"security violation" errors while trying to restore gallery2 backup

stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Wed, 2007-04-11 14:18

hi all,

i've recently rebuilt my webserver and i'm trying to restore my gallery2 gallery.

i had backed up the database, my albums, and my gallery2 folder.

i've now restored all of those; when i try and access my gallery, however, i get this error message:

Security Violation

The action you attempted is not permitted.

can anyone please shed some light on what might be going wrong?

thanks!
- lawrence


Gallery version (not just "2"): 2.1.2
PHP version (e.g. 4.3.11): 4.4.4-8
PHPInfo Link (see FAQ): desk.stinkpot.org:8080/test.php
Webserver (e.g. Apache 1.3.33): Apache2.2
Database (e.g. MySql 4.0.11): MySql 5.0
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Debian Etch
Browser (e.g. Firefox 1.0):

http://stinkpot.afraid.org:8080/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-04-11 14:20

please enable buffered debug mode to see more information.
FAQ: How to set/use Gallery in debug mode?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Wed, 2007-04-11 14:36

great, that was some progress. here's what was output:

Error (ERROR_BAD_PARAMETER)

* in modules/core/classes/GalleryStorage.class at line 592 (gallerycoreapi::error)
* in modules/core/classes/GalleryCoreApi.class at line 2792 (mysqlstorage::getmapentry)
* in modules/core/classes/GalleryDataCache.class at line 628 (gallerycoreapi::getmapentry)
* in modules/core/classes/GalleryTheme.class at line 1135 (gallerydatacache::getpagedata)
* in themes/matrix/theme.inc at line 65 (matrixtheme::loadcommontemplatedata)
* in modules/core/classes/GalleryTheme.class at line 926 (matrixtheme::showalbumpage)
* in modules/core/classes/GalleryView.class at line 308 (matrixtheme::loadtemplate)
* in main.php at line 441 (showitemview::doloadtemplate)
* in main.php at line 94
* in main.php at line 83

http://stinkpot.afraid.org:8080/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-04-11 14:49

probably, this means that your database is either somewhat corrupt or that something with the db import didn't work successfully.

let's first find out what version of g2 you're really running. it's not g2.1.2. g2.1.2 didn't have the getMapEntry function.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Wed, 2007-04-11 14:57

whoops, i got confused w/ all those 2's.

i believe i'm running g2.2 (official release).

http://stinkpot.afraid.org:8080/

 
stinkpot

Joined: 2005-12-26
Posts: 17
Posted: Wed, 2007-04-11 20:20

ah, i've at least solved a first problem - turns out i still had an old cache folder in my g2data folder; deleting it and reloading made these errors disappear. thanks again valiant!!

http://stinkpot.afraid.org:8080/