Error_platform_error after a massive import

prussia

Joined: 2003-03-12
Posts: 12
Posted: Mon, 2005-04-04 13:42

I installed this gallery 2 beta.. works fine.. then i imported my gallery from gallery 1.4 adn it went halfway and then croaked and gave me this error.. it also managed to kill my drupal install until i removed the gallery.module file..

any idea on how to fix this.. and how to avoid it in the future :)

I get these errors after importing from my old gallery (hope it didn't break anything)..

this also killed my drupal and i had to take out the gallery.module in order to get it running again..

any ideas how to fix it..and avoid it next time :)

thanks,

Warning: fread(): Length parameter must be greater than 0. in /home/prussia/web/gallery2beta/modules/core/classes/GalleryPlatform.class on line 908
Error
Error (ERROR_PLATFORM_FAILURE) :

* in modules/core/classes/GalleryPlatform.class at line 466 (gallerystatus::error)
* in modules/core/classes/GallerySession.class at line 292 (unixplatform::concurrentwrite)
* in modules/core/classes/GallerySession.class at line 201 (gallerysession::save)
* in modules/core/classes/Gallery.class at line 289 (gallerysession::init)
* in init.php at line 128 (gallery::initsession)
* in main.php at line 32

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-04-05 03:50

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).