server2go and gallery2 from cdrom

inka

Joined: 2006-02-15
Posts: 5
Posted: Sun, 2008-05-11 20:48

Hi, when using gallery2 with server2go from cdrom the following error comes up:

Error (ERROR_STORAGE_FAILURE) :
in modules\core\classes\GalleryStorage.class at line 690 (GalleryCoreApi::error)
in modules\core\classes\GalleryCoreApi.class at line 2773 (GalleryStorage::updateMapEntry)
in modules\core\classes\helpers\GalleryItemAttributesHelper_simple.class at line 89 (GalleryCoreApi::updateMapEntry)
in modules\core\classes\GalleryCoreApi.class at line 1220 (GalleryItemAttributesHelper_simple::incrementViewCount)
in modules\core\ShowItem.inc at line 93 (GalleryCoreApi::incrementItemViewCount)
in modules\core\classes\GalleryView.class at line 300 (ShowItemView::loadTemplate)
in main.php at line 445 (GalleryView::doLoadTemplate)
in main.php at line 94
in main.php at line 83

Is it at all possible to run gallery from a non writable medium? I don't get those errors when running from hard disk. I adjusted in config.php the following path as required:
$gallery->setConfig('data.gallery.base', 'D:\\server2go_a2_psm_JJC\\g2data\\cache\\');


Gallery version (not just "2"): 2.2.4 core 1.2.0.6
PHP version (e.g. 5.1.6): 5.2.3 apache2handler
PHPInfo Link (see FAQ): http://127.0.0.1:4001/phpinfo.php (safe_mode = Off)
Webserver (e.g. Apache 1.3.33): Apache/2.0.58 (Win32) PHP/5.2.3
Database (e.g. MySql 5.0.32): mysqli 5.0.41-community-nt, lock.system=database
Activated toolkits (e.g. NetPbm, GD): ArchiveUpload, Exif, LinkItemToolkit, Thumbnail, Gd
Operating system (e.g. Linux): Windows NT LAPTOP 5.1 build 2600
Browser (e.g. Firefox 2.0): Firefox and/or IE

Login or register to post comments
inka

Joined: 2006-02-15
Posts: 5
Posted: Mon, 2008-05-12 13:56

Hi, seems like I have to copy at least parts from "\\server2go_a2_psm_JJC\\g2data\\cache\\');" to the disk leaving me with he issue what to do if I don't want to copy all pictures. Would be great if possibly someone could provide hints about what might be the best way forward, i.e.:

1. Is it possibly possible to disable gallery2 requirements to write temporary stuff to g2data\\cache because everything required is already there?

2. Is there a way to split gallery2 configuration so it looks for pictures e.g. on the DVD and for session or other temporary data that require write access on the disk?

Login or register to post comments
inka

Joined: 2006-02-15
Posts: 5
Posted: Thu, 2008-08-14 12:13

Hi,

now I can answer myself. :)

The final solution I followed is using a windows Symlink to point back to the "albums" directory on the DVD. I am planning to publish most of the final solution details (start and installation scripts) during the next months probably via the Server2Go forum. So you may also want to look here http://www.server2go-web.de/forum/viewtopic.php?t=4110.

Regards,
Ingo

Login or register to post comments