ERROR: "Your change cannot be completed due to a loss of session data."

light-blue

Joined: 2008-07-03
Posts: 7
Posted: Thu, 2008-07-03 01:51

When I use lightbox2 in Drupal 5.x via PGLightBox or the Tutorial (http://codex.gallery2.org/Gallery2:Lightbox_JS_Tutorial), I always get this error message when Editing or Submitting photos (see below). Interestingly, there are NO PROBLEMS doing the same operation in Firefox 2/3 or IE7 if I log in directly to the gallery2 pages (mysite.com/gallery2). Also, if I don't use lightbox (meaning just the default Matrix theme), there's no error (and no lightbox!) I managed to narrow the problem down to adding the javascript before the </head> when manually altering the Matrix theme (tutorial above). Every time I changed that file's head definition, the error would appear. Help!!!
=================================

Authentication Failure

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 242 (GalleryController::assertIsGenuineRequest)
* in main.php at line 103
* in modules/core/classes/GalleryEmbed.class at line 189
* in /var/www/drupal/sites/mysite.com/modules/gallery/gallery_base.inc at line 141 (GalleryEmbed::handleRequest)
* in /var/www/drupal/sites/mysite.com/modules/gallery/gallery.module at line 385
* in ??? at line 0
* in /var/www/drupal/includes/menu.inc at line 418
* in /var/www/drupal/index.php at line 15

System Information
Gallery version 2.3-svn
PHP version 5.2.0-8+etch10 apache2handler
Webserver Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c
Database mysqli 5.0.32-Debian_7etch5-log
Toolkits SquareThumb, ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux mysite 2.6.18-5-amd64 #1 SMP Sat Dec 22 20:43:59 UTC 2007 x86_64
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0

 
light-blue

Joined: 2008-07-03
Posts: 7
Posted: Thu, 2008-07-03 02:35

I forgot to include this troubleshooting info. Does that help?

Drupal Logs
============
Type page not found
Date Thursday, July 3, 2008 - 10:09
User seanw
Location http://mysite.com/%3Cscript%20type=%22text/javascript%22%20src=%22/sites/mysite.com/gallery2/themes/PGlightbox/theme.js%22%3E%3C/script%3E
Referrer http://mysite.com/en/index.php?q=gallery&g2_view=core.ItemAdmin&g2_subView=core.ItemEdit&g2_itemId=60&g2_return=%2
Message <script type="text/javascript" src="/sites/mysite.com/gallery2/themes/PGlightbox/theme.js"></script>
Severity warning

Firebug
========
optionsrc is not defined
(?)()gallery (line 435)
[Break on this error] document.onmousedown=optionsrc;

search_SearchBlock_init is not defined
(?)()gallery (line 7047)
[Break on this error] search_SearchBlock_init('Search the Gall... 'Searching in progress, please wait!');

ShowLayer is not defined
onmouseover()gallery (line 1)
gallery (line 1)

$(document).ready is not a function
uc_store.js?79492()()uc_store.js?79492 (line 19)
[Break on this error] function()

$.browser is undefined
[Break on this error] if ($.browser.msie) {
panels.js

With that PGLightbox turned off
================================
search_SearchBlock_init is not defined
(?)()gallery (line 532)
[Break on this error] search_SearchBlock_init('Search the Gall... 'Searching in progress, please wait!');