Uploading multilanguage captions and ERROR_STORAGE_FAILURE problem

jraczkow

Joined: 2005-10-26
Posts: 7
Posted: Wed, 2005-10-26 19:14

Hello,
I've just installed and configured (a bit) my gallery, but i'm having two problems:
- I would like to use multilanguage captions system, but is there a way of uploading a photo (RemoteGallery or other) with multilanguage captions? It's a heavy work to change a photo's caption in 3 languages via the gallery interface...

- Second... I'm getting (ERROR_STORAGE_FAILURE) errors quite often. It's not coreleted with the things I'm doing (uploading a photo, changing some parameters, viewing). Could you help me with this? I would try to give you as much information I can. Is it possible that I'm having problems with the database which is on www.freesql.org?
Thanks


So here we go:
Gallery 2 2.01
link to the gallery: http://http://homes.esat.kuleuven.be/~mmyslins/gallery2/
link to phpinfo: http://http://homes.esat.kuleuven.be/~mmyslins/gallery2/info.php
Webserver - Apache... 1.3.29 ?
Database - MySQL 4.0.13 ---- freesql.org!
Operating system - Linux
Browser - Firefox 1.0

Data from System information from within gallery:
Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.3.9 apache
Webserver = Apache/1.3.29 Ben-SSL/1.55 (Unix) PHP/4.3.9
Database = mysql 4.0.13-standard-log
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, Gd
Operating system = Linux orinoco 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921 Red Hat/1.0.7-1.4.1 Firefox/1.0.7

Thanks again..
P.S. How can I enable debug mode of gallery if the config.php is not writable for me? (owned by webdaemon).
Thanks!

 
jraczkow

Joined: 2005-10-26
Posts: 7
Posted: Wed, 2005-10-26 19:28

Forgot to add the error description

Error (ERROR_STORAGE_FAILURE) :

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1411 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 365 (mysqldatabasestorage::updatemapentry)
* in modules/core/classes/interfaces/GalleryItemAttributesMap.inc at line 159 (gallerystorage::updatemapentry)
* in modules/core/classes/helpers/GalleryItemAttributesHelper_simple.class at line 52 (galleryitemattributesmap::updatemapentry)
* in modules/core/classes/GalleryCoreApi.class at line 1119 (galleryitemattributeshelper_simple::incrementviewcount)
* in modules/core/ShowItem.inc at line 107 (gallerycoreapi::incrementitemviewcount)
* in modules/core/classes/GalleryTheme.class at line 688 (showitemview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 285 (pgthemetheme::loadtemplate)
* in main.php at line 287 (showitemview::doloadtemplate)
* in main.php at line 87
* in main.php at line 80

kuba

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-27 00:14

no, there's no efficient way to change / set multilanguage captions yet.
neither on upload.

@storage errors:
maybe your tables are corrupted.
use phpmyadmin to repair your db tables.

 
jraczkow

Joined: 2005-10-26
Posts: 7
Posted: Thu, 2005-10-27 08:15

hmm.. what do you mean? (i'm not a sql expert)

and about the captions.. where they actually are saved? in db? or photo's directory?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-27 10:40

captions are saved in the database. you can use the G2 API to change the captions. why not customize the modules/core/ItemEditCaptions.inc modules/core/templates/ItemEditCaptions.tpl page to also handle multi language captions?

@sql:
repair table tbl_name;
must be called for all tables. phpmyadmin is a tool to administer mysql databases and it would do that with a single click.
for starts, you could click "optimize tables" in
site admin -> maintenance