PHP Fatal error: Cannot unset string offsets in GalleryUtilities.class
algurgazan
Joined: 2007-02-22
Posts: 5 |
![]() |
For some reason my gallery isn't working like it should in my embedded environment... It's embedded in a CMS called subdreamer through a lousy plugin I had to tinker with to get it started, and it worked just fine.. I got some (unrelated) problems with permissions and had to reinstall, and now I've run into another problem: when I'm logged in in the CMS (which goes through SMF btw, but i don't think that matters to gallery 'cause it has nothing to do with it, goes through the CMS first) gallery gets PHP to throw the error in the subject: PHP Fatal error: Cannot unset string offsets in ///public_html/gallery2/modules/core/classes/GalleryUtilities.class on line 387 Strange thing is that it doens't happen all the time, and that it happens the most (but not always) when a user is logged in, and doesn't seem to happen when not logged in.. It also doesn't happen when the gallery is accessed directly.. Site url: http://solagratiazeist.nl |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
the code in question: googling for the error yields: doesn't help much. the question is why / where is GalleryUtilities::removeRequestVariable() called with a wrong $key. quick fix: personally, i'd also add an else case to log the call stack which led to that invalid call. then you can go to g2's site admin -> event log, to see if there are any entries for that issue from time to time. -------------- |
|
algurgazan
Joined: 2007-02-22
Posts: 5 |
![]() |
thanks for the reply! i've made the changes you suggested, and i'm getting a really filled event log now.. this is the error: Error (ERROR_LOG_LEVEL, ERROR_BAD_PARAMETER) : Array path: Array ( [0] => g2_GALLERYSID ) in modules/core/classes/GalleryUtilities.class at line 392 (GalleryCoreApi::error) in modules/core/classes/GalleryUtilities.class at line 364 (GalleryUtilities::_internalRemoveRequestVariable) in modules/core/classes/GallerySession.class at line 471 (GalleryUtilities::removeRequestVariable) in modules/core/classes/GallerySession.class at line 502 (GallerySession::reset) in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 362 (GallerySession::regenerate) in modules/core/classes/helpers/GalleryEventHelper_simple.class at line 59 (GalleryUserHelper_medium::handleEvent) in modules/core/classes/GalleryCoreApi.class at line 2238 (GalleryEventHelper_simple::postEvent) in modules/core/classes/GalleryEmbed.class at line 310 (GalleryCoreApi::postEvent) in modules/core/classes/GalleryEmbed.class at line 270 (GalleryEmbed::login) in modules/core/classes/GalleryEmbed.class at line 120 (GalleryEmbed::checkActiveUser) in ///public_html/plugins/p39_gallery/g2embed.php at line 108 (GalleryEmbed::init) in ///public_html/skins/clearly/clearly_2.php at line 165 in ///public_html/index.php at line 917 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
weird, it says that $_POST is not an array. -------------- |
|