Announcement

#46 2010-09-22 09:09:34

mol
Piwigo Team Germany
germany
2010-05-26
108

Re: [plugin] Advanced Metadata

i have big troubles with the Advanced Metadata plugin
I can install it, i can scan the pictures  and fill the database. i can see the tables with the exif datas in mysqladmin.
but if i go in the gallery and look at the first picture:
Fatal error: Allowed memory size of 68157440 bytes exhausted (tried to allocate 35 bytes) in /www/htdocs/snafu/galerie/plugins/AMetaData/JpegMetaData/Readers/IfdEntryReader.class.php on line 346

than i try to delete the plugin in the admin menue:
Fatal error: Allowed memory size of 68157440 bytes exhausted (tried to allocate 23 bytes) in /www/htdocs/snafu/galerie/plugins/AMetaData/JpegMetaData/Readers/IfdEntryReader.class.php on line 346

i must delete it with ftp

* nécessite PHP 5.2 pour fonctionner avec le module "mbstring" installé

in my php.ini i fpund this values
php 5.2.10; '--enable-mbstring';
Multibyte Support     enabled
Multibyte string engine     libmbfl
Multibyte (japanese) regex support     enabled
Multibyte regex (oniguruma) version     4.4.4
Multibyte regex (oniguruma) backtrack check

and Grum Plugin Classes 3.1.1

Offline

 

#47 2010-09-22 09:37:17

grum
Piwigo Team
Nantes
2007-09-10
1371

Re: [plugin] Advanced Metadata

When you scan the pictures to fill the database, you're in a client-server mode : your browser send a list of 10 pictures to be analyzed, wait for server response, and send 10 next pictures. The process is repeated until all pictures are analyzed.

A packet of 10 pictures is sent :
- pictures 1, 2, 3, 4 are analyzed and fill the database
- pictures 5 can't be analyzed => script is stopped : plugin display no alert (displaying an error message will probably be a good feature to implement...)
- pictures 6, 7, 8, 9, 10 are not analyzed

The next 10 pictures are sent, even if something was wrong on the previous packet.

This is why you think everything was Ok during database filling, and why you can see exif in the mysql tables.



The error message displayed when you look a picture is displayed probably because the script try to read metadata outside the dedicated metadata block, or loops inside a block.
I see 2 reason :
- metadata are corrupted (not correctly formatted, don't respect the specification, ...)
- metadata are correct, but in a format not yet implemented in the plugin


Can you give me a link on a picture with the error message ?

There was a similary bug already referenced ([Bugtracker, ticket 1686, fixed] Picture analysis finish with an Error 500 or with a problem of memory limit) and it's fixed for the next plugin release : I want to see if your pictures are correctly managed or not with plugin 0.5.1 (not yet published)


My pictures with Piwigo, of course !
[ www.grum.fr ] [ photos.grum.fr ]

Offline

 

#48 2010-09-23 12:43:42

mol
Piwigo Team Germany
germany
2010-05-26
108

Re: [plugin] Advanced Metadata

Can you give me a link on a picture with the error message ?

no
because the fatal error kills my piwigo if i open a category, also it kills my admin menue, i must deinstall it with ftp

for the moment i use the "smalll" solution, the exif viewer.

i will try advanced metadata on a clean/fresh installation on my testsubdomain

Offline

 

#49 2010-09-23 20:30:20

grum
Piwigo Team
Nantes
2007-09-10
1371

Re: [plugin] Advanced Metadata

mol wrote:

Can you give me a link on a picture with the error message ?

no
because the fatal error kills my piwigo if i open a category, also it kills my admin menue, i must deinstall it with ftp

for the moment i use the "smalll" solution, the exif viewer.

i will try advanced metadata on a clean/fresh installation on my testsubdomain

ok.
but to understand why some of your pictures can't be readed, I need a sample ^_^;


every time you access a page, the plugin try to analyze an unanalyzed picture... so, if picture can't be analyzed, the problem is repeated and repeated again...
this kind of problem is solved with the next release of the plugin (unanalyzed pictures are analyzed through an ajax call rather than inside the page generation)


My pictures with Piwigo, of course !
[ www.grum.fr ] [ photos.grum.fr ]

Offline

 

#50 2010-09-28 23:09:11

grum
Piwigo Team
Nantes
2007-09-10
1371

Re: [plugin] Advanced Metadata

Version 0.5.1 is available in extensions.

Before, it's necessary to make an update to version 3.2.0 for the GrumPluginClasses plugin (also available in extensions).

I did a lot of tests, normally migrating from version 0.4.0 to 0.5.1 should work without problems ... normally ^_^;


This version includes the following features:
- Two management modes (basic & advanced)
- Integrating a search engine
- Converter metadata => tags
- Ability to develop its own metadata
- A lighter repository management
- Fixed various bugs

For the managemetn mode, the choice is made when the plugin is installed only.
To those who make an update to the 0.4.0 => 0.5.1, the default advanced mode is enabled: those who wish to enjoy the basic mode should conduct an uninstall/install of the plugin.


My pictures with Piwigo, of course !
[ www.grum.fr ] [ photos.grum.fr ]

Offline

 

#51 2010-09-28 23:34:10

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [plugin] Advanced Metadata

I'm testing the new version, no problem on the admin side, but on the gallery side:

Fatal error: Class 'CommonPlugin' not found in /home/pierrick/public_html/piwigo/dev/branches/2.1/plugins/AMetaData/main.inc.php on line 190

(would you like me to create another topic or is it fine to discuss here?)


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#52 2010-09-28 23:42:26

grum
Piwigo Team
Nantes
2007-09-10
1371

Re: [plugin] Advanced Metadata

strange..
the CommonPlugin class is used everywhere in the plugin (this the parent class of all other classes...)

Can you check you that you have the file plugins/GrumPluginClasses/classes/CommonPlugin.class.inc.php ?


My pictures with Piwigo, of course !
[ www.grum.fr ] [ photos.grum.fr ]

Offline

 

#53 2010-09-28 23:43:27

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [plugin] Advanced Metadata

-rw-r--r-- 1 pierrick pierrick 7821 2010-07-29 14:59 GrumPluginClasses/classes/CommonPlugin.class.inc.php


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#54 2010-09-28 23:47:39

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [plugin] Advanced Metadata

On the "Search" tab (advanced mode):

Warning: Smarty error: unable to read resource: "/home/pierrick/public_html/piwigo/dev/branches/2.1/plugins/AMetaData/templates/amd_dialog_metadata_choose.tpl" in /home/pierrick/public_html/piwigo/dev/branches/2.1/include/smarty/libs/Smarty.class.php on line 1093


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#55 2010-09-28 23:52:21

grum
Piwigo Team
Nantes
2007-09-10
1371

Re: [plugin] Advanced Metadata

add the line :

Code:

include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');

on the 174 of the AMD main.inc.php : I think there is other plugin at home loading the classe before the plugin runs... :-/

If it's Ok, I commit a new release.


My pictures with Piwigo, of course !
[ www.grum.fr ] [ photos.grum.fr ]

Offline

 

#56 2010-09-28 23:55:11

mol
Piwigo Team Germany
germany
2010-05-26
108

Re: [plugin] Advanced Metadata

same error on the "Search" tab like plg

Offline

 

#57 2010-09-28 23:55:31

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [plugin] Advanced Metadata

grum wrote:

add the line [...]

Yes, it fixes my first problem. Now metadata display correctly on gallery side!


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#58 2010-09-28 23:58:07

grum
Piwigo Team
Nantes
2007-09-10
1371

Re: [plugin] Advanced Metadata

plg wrote:

On the "Search" tab (advanced mode):

Warning: Smarty error: unable to read resource: "/home/pierrick/public_html/piwigo/dev/branches/2.1/plugins/AMetaData/templates/amd_dialog_metadata_choose.tpl" in /home/pierrick/public_html/piwigo/dev/branches/2.1/include/smarty/libs/Smarty.class.php on line 1093

ok..
this is because I forgotten to commit this file on the repository !! ^_^;


My pictures with Piwigo, of course !
[ www.grum.fr ] [ photos.grum.fr ]

Offline

 

#59 2010-09-29 00:06:55

grum
Piwigo Team
Nantes
2007-09-10
1371

Re: [plugin] Advanced Metadata

the release 0.5.2 is online....
^_^;


My pictures with Piwigo, of course !
[ www.grum.fr ] [ photos.grum.fr ]

Offline

 

#60 2010-11-01 22:29:44

grum
Piwigo Team
Nantes
2007-09-10
1371

Re: [plugin] Advanced Metadata

the release 0.5.3 is online

This release fix bugs and implements new features :
* [Bugtracker, ticket 1894, fixed] Error when filling the metadata repository - Error when filling the metadata repository
* [Bugtracker, ticket 1898, fixed] Warning "division by zero" on Canon images - Warning "division by zero" on Canon images
* [Bugtracker, ticket 1911, fixed] Unable to read Jpeg file if there is extradata after the EOI marker - Unable to read Jpeg file if there is extradata after the EOI marker
* [Bugtracker, ticket 1955, fixed] Incorrect mapping for IPTC File format - Incorrect mapping for IPTC File format
* [Bugtracker, ticket 1925, fixed] default selected tags works only for the french user - default selected tags works only for the french user
* [Bugtracker, ticket 1968, fixed] Keyword to tag conversion generate duplicated tags... - Keyword-to-tag conversion generate duplicated tags
* [Bugtracker, ticket 1923, fixed] with google chrome, the mtadata list is not displayed - with google chrome, the metadata list is not displayed
* [Bugtracker, ticket 1978, fixed] Some meta names are not translated in french - Some meta names are not translated in french
* [Bugtracker, ticket 1863, fixed] Except "keywords" meta, all IPTC meta declared as "repeatable" are not managed - Except "keywords" meta, all IPTC meta declared as "repeatable" are not managed
* feature - implement lightroom keywords metadata
* [Bugtracker, ticket 1956, fixed] IPTC "Subject Reference" is not implemented - IPTC "Subject Reference" is not implemented
* [Bugtracker, ticket 1912, fixed] Reading digiKam hierarchical keywords as 'flat' keywords - Reading digiKam&lightroom hierarchical keywords as 'flat' keywords
* [Bugtracker, ticket 1294, fixed] Allow to open the licence page on a new page/tab when user click on the licence hyperlink - add a new method allowing to fill the repository with a given number of random pictures
* [Bugtracker, ticket 1975, fixed] Implement COM segment as a tag - Implement COM segment as a tag
* [Bugtracker, ticket 1976, fixed] Implement keywords as magic tag - Implement keywords as magic tag

Now, deactivate/activate the plugin don't reset the repository automatically anymore (need a user action)

Needs GrumPluginClasses 3.3.2


My pictures with Piwigo, of course !
[ www.grum.fr ] [ photos.grum.fr ]

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact