No such file ... GalleryPlatform.class on line 591

dual_mon

Joined: 2004-12-19
Posts: 5
Posted: Sun, 2004-12-19 06:34

I just did a clean install of G2 (alpha-4)

AWESOME Nice job folks :D

My host satisfies all the requirements, including mod_rewrite, NetPBM, and ImageMagick. I got no errors, and the install went smoothly, but the installer *did* report 8 files missing when it was done.

I installed almost everything as far as add-ons. I think I only left out the 1x migration module, and after looking at them, I turned off the ecommerce modules.

You can see it here
http://lab.smallsolutionsinc.com/gallery2/

There is a test album there. I made an admin level account that I can email back channel if any guru would like poke around.

Here is the problem. On my test album the icon image is missing, and when I select edit or delete from the dropdown menu under the broken album icon on the top level, I get the following error.

Quote:
Warning: getimagesize(/home/jsmallco/www/lab/images/cache/derivative/0/0/10.dat): failed to open stream: No such file or directory in /home/jsmallco/www/lab/gallery2/modules/core/classes/GalleryPlatform.class on line 591

Error (ERROR_TOOLKIT_FAILURE):

in file modules/gd/classes/GdToolkit.class at line 597 (gallerystatus::error)

in file modules/gd/classes/GdToolkit.class at line 573 (gdtoolkit::_getimagedimensionsforresource)

in file modules/gd/classes/GdToolkit.class at line 117 (gdtoolkit::_getimagedimensions)

in file modules/core/classes/GalleryDerivativeImage.class at line 199 (gdtoolkit::getproperty)

in file modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 683 (galleryderivativeimage::rebuildcache)

in file modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 661 (galleryderivativehelper_advanced::rebuildcache)

in file modules/core/classes/GalleryCoreApi.class at line 705 (galleryderivativehelper_advanced::rebuildcache)

in file modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 63 (gallerycoreapi::rebuildderivativecache)

in file modules/core/classes/GalleryCoreApi.class at line 692 (galleryderivativehelper_simple::rebuildcacheifnotcurrent)

in file modules/core/ItemDelete.inc at line 229 (gallerycoreapi::rebuildderivativecacheifnotcurrent)

in file modules/core/ItemAdmin.inc at line 150 (itemdeleteview::loadtemplate)

in file modules/core/classes/GalleryView.class at line 244 (itemadminview::loadtemplate)

in file main.php at line 312 (itemadminview::doloadtemplate)

in file main.php at line 47

in file main.php at line 40

GalleryPlatform.class line 591 says
return getimagesize($filename);

Anyone know how I can "force" delete the test album? It was created using Gallery Remote on a Mac that didn't have Imagemagic installed. I wonder if this caused the album to be corrupt.

 
dual_mon

Joined: 2004-12-19
Posts: 5
Posted: Sun, 2004-12-19 07:09

Okay, I just located the Gallery Test Harness. I cannot execute any of the following scripts

    ActivateModule
    CleanStore
    CreateAlbum
    CreatePhotoItem
    CreateRandomGroup
    CreateRandomTree
    CreateRandomUser
    DeactivateModule
    DeleteAllItems
    EmptyGallery
    FlushCache
    FlushTemplates
    InitializeGallery
    InstallModule
    PerformanceTestData
    ReInitializeGallery
    ResetGallery
Quote:
Error (ERROR_STORAGE_FAILURE)
• in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1466 (gallerystatus::error)
• in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 260 (mysqldatabasestorage::_identifyentities)
• in modules/core/classes/GalleryStorage.class at line 113 (mysqldatabasestorage::loadentities)
• in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 89 (gallerystorage::loadentities)
• in modules/core/classes/GalleryCoreApi.class at line 2018 (galleryentityhelper_simple::loadentitiesbyid)
• in init.php at line 147 (gallerycoreapi::loadentitiesbyid)
• in lib/tools/test/index.php at line 30
• in lib/tools/test/index.php at line 10

[/]

 
dual_mon

Joined: 2004-12-19
Posts: 5
Posted: Sun, 2004-12-19 07:19

:cry:

Okay, so I just realized that one of the Test Harness scripts must have bent the whole gallery. Hold that thought while I nuke and pave the whole thing.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2004-12-19 07:45

Yes sir, a LOT of the "tests" totally destroy data. One or two nuke the db, some nuke the d2data dir and some nuke both of em. Its a paved road to disaster if you are randomly clicking :)

 
dual_mon

Joined: 2004-12-19
Posts: 5
Posted: Sun, 2004-12-19 08:41

Okay, so after a second clean install, things seem to be working great. There were some minor differences in this second try, but I wasn't rigorous about trying to isolate the differences. For one, I didn't install all the same modules (I omitted more this time), but I didn't keep a detailed record of what I omitted.

Something that might be of interest is the fact that this time when I uploaded my first album after installation, I used Gallery Remote (as I did the first time), but this time ImageMagic was installed on the client Mac prior to upload. Another difference that may apply, I only installed ImageMagick module of Gallery, not NetPBM.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2004-12-19 08:43

ImageMagick / NetPBM don't need to be on the client, afaik. They only need to be on the server. But maybe your Mac client is also the server?

 
dual_mon

Joined: 2004-12-19
Posts: 5
Posted: Sun, 2004-12-19 10:08

Gallery Remote required ImageMagick to be installed on the Mac Client.

The server is Linux and has both Image Magick and NetPBM installed, but on my second try, I didn't install the NetPBM module in the Gallery app.