Security Warning - ERROR_PERMISSION_DENIED

ch1291

Joined: 2005-04-27
Posts: 8
Posted: Wed, 2005-04-27 08:44

Hi.

Im using Gallery2 Beta2 in a Mambo 4.5.2 CMS. Now, when i try as a normal user, to add a comment or to enter my user album i receive the follwing error message:

Error (ERROR_PERMISSION_DENIED) :

* in modules/useralbum/UserAlbum.inc at line 55 (gallerystatus::error)
* in main.php at line 173 (useralbumcontroller::handlerequest)
* in main.php at line 79
* in embed.php at line 129
* in /home/cust/aprescc/public_html/modules/mod_galleryside.php at line 70 (galleryembed::handlerequest)
* in /home/cust/aprescc/public_html/includes/frontend.html.php at line 264
* in /home/cust/aprescc/public_html/includes/frontend.php at line 122 (modules_html::module2)
* in /home/cust/aprescc/public_html/templates/extralight/index.php at line 84
* in /home/cust/aprescc/public_html/index.php at line 204

I reseted all the permissions on the albums. I have no idea. Thanks for your help.

Pascal, Zurich
----

Gallery version: G2 Beta 2
PHP version (eg 4.2.1): PHP4 & PHP5 (safe_mode off, exec yes)
Operating system: win xp / win 2000
Web browser/version: firefox 1.0.3 ie 6

 
ch1291

Joined: 2005-04-27
Posts: 8
Posted: Wed, 2005-04-27 10:10

I reinstalled the comments and user gallery module. Then i tried to reset the permission for an album that allows "all users" to send comments. I got this message:

---
Fehlerdetails -
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1236 (gallerystatus::error)
in modules/core/classes/GalleryStorage.class at line 261 (mysqldatabasestorage::addmapentry)
in modules/core/classes/interfaces/GalleryAccessMap.inc at line 97 (gallerystorage::addmapentry)
in modules/core/classes/helpers/GalleryPermissionHelper_advanced.class at line 309 (galleryaccessmap::addmapentry)
in modules/core/classes/helpers/GalleryPermissionHelper_advanced.class at line 80 (gallerypermissionhelper_advanced::_changepermission)
in modules/core/classes/GalleryCoreApi.class at line 639 (gallerypermissionhelper_advanced::addgrouppermission)
in modules/core/ItemPermissions.inc at line 209 (gallerycoreapi::addgrouppermission)
in main.php at line 173 (itempermissionscontroller::handlerequest)
in main.php at line 79
in main.php at line 70
---
Systeminformationen
Gallery Version 2.0-beta-2
PHP Version 4.3.11 cgi-fcgi
Webserver Apache/2.0.54
Datenbank mysql 4.1.11
Werkzeuge SquareThumb, ImageMagick, NetPBM, Gd
Betriebssystem Linux arwen.meisterwerk.net 2.6.9-5.0.3.ELsmp #1 SMP Sat Feb 19 15:45:14 CST 2005 x86_64
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-04-30 22:56

Edit your config.php and turn on buffered debug mode like this:

$gallery->setDebug('buffered');

Then try again. This time, you'll get quite a lot of debug output
when you get the error. Look towards the bottom of the debug output
and scan backwards for anything that looks like an error, then report
that here. Usually that will give us enough information to work with.
If you can't understand what you're seeing, err on the side of posting
more info. If it's going to be more than 30-40 lines of output, you
should save it into a text file and publish it on your own website and
post a link to it here (so that the forum remains readable).