EZImageManager issues - cannot create image alias

Author Message

Rob Gaus

Thursday 27 November 2008 9:26:17 am

Bare with me, this requires a little bit of background.

- upgraded from 3.6.2 to 4.0.1
- ability to create images on 3.6.2 seemed to work properly
- after upgrade when try to upload image get the following error entries:

[ Nov 27 2008 17:07:04 ] [209.217.81.65] eZContentClassAttribute::attribute:
Attribute 'EZ_DATATYPESTRING_MAX_IMAGE_FILESIZE_FIELD' does not exist
[ Nov 27 2008 17:07:08 ] [209.217.81.65] eZLocale:
Could not load country settings for
[ Nov 27 2008 17:07:08 ] [209.217.81.65] eZLocale:
Could not load language settings for array
[ Nov 27 2008 17:07:09 ] [209.217.81.65] eZImageManager::createImageAlias:
The reference alias original file does not exist
[ Nov 27 2008 17:07:09 ] [209.217.81.65] :
Original alias does not exists, cannot create other aliases without it
[ Nov 27 2008 17:07:09 ] [209.217.81.65] eZImageManager::createImageAlias:
Failed creating the referenced alias reference, cannot create alias small

- after playing around I realized that I could get the system to create the image by triggering an error by leaving out the 'name' field. This would create the folders and create the image aliases (to a point) see blow. But still with this error logged:

[ Nov 27 2008 17:08:50 ] [209.217.81.65] eZContentClassAttribute::attribute:
Attribute 'EZ_DATATYPESTRING_MAX_IMAGE_FILESIZE_FIELD' does not exist
[ Nov 27 2008 17:08:52 ] [209.217.81.65] eZLocale:
Could not load country settings for
[ Nov 27 2008 17:08:52 ] [209.217.81.65] eZLocale:
Could not load language settings for array

I would then enter the name field for the image and all seemed well but again with this error logged:

[ Nov 27 2008 17:09:37 ] [209.217.81.65] eZContentClassAttribute::attribute:
Attribute 'EZ_DATATYPESTRING_MAX_IMAGE_FILESIZE_FIELD' does not exist
[ Nov 27 2008 17:09:38 ] [209.217.81.65] eZLocale:
Could not load country settings for
[ Nov 27 2008 17:09:38 ] [209.217.81.65] eZLocale:
Could not load language settings for array
[ Nov 27 2008 17:09:38 ] [209.217.81.65] eZImageManager::createImageAlias:
The reference alias original file does not exist
[ Nov 27 2008 17:09:38 ] [209.217.81.65] :
Original alias does not exists, cannot create other aliases without it
[ Nov 27 2008 17:09:38 ] [209.217.81.65] eZImageManager::createImageAlias:
Failed creating the referenced alias reference, cannot create alias small

But then later realized that even with this it did not create all of the image alias' listed in the image.ini:
- reference
- small
- medium
- large
- levelone
- leveltwo
- levelthree

It only created:
- medium
- reference
- small

My question is simply why is it not creating all of the image aliases? Any suggestions where to look or settings to check?

I've wasted countless hours troubleshooting this issue only to end up right back at the beginning scratching my head.

Thanks in advance, Rob.

Rob Gaus

Friday 28 November 2008 8:00:10 am

Further info: I've managed to clear the error log to this issue:

[ Nov 28 2008 16:46:31 ] [209.217.81.98] eZContentClassAttribute::attribute:
Attribute 'EZ_DATATYPESTRING_MAX_IMAGE_FILESIZE_FIELD' does not exist

When I go through the EzPublish admin interface:

Setup > Classes > Image

I'm able to edit the Image [URLImage] attrbute specifically the Max file size but when I come back to it the field is back to its previous setting. There is no error log entry.

I am able to go to the database directly and change this value but it doesnt prevent the above error from occurring.

Thoughts?

Thanks again, Rob.

Ousmane KANTE

Monday 16 February 2009 5:28:23 am

Hello,
I've the same problème,

[ Feb 16 2009 13:05:25 ] [217.128.63.112] eZImageManager::createImageAlias:
Failed converting var/fr/storage/images/diaporama/test-le-bar/368-1-fre-FR/test-Le-bar.jpg to alias 'reference' in directory 'var/fr/storage/images/diaporama/test-le-bar/368-1-fre-FR'
[ Feb 16 2009 13:05:25 ] [217.128.63.112] eZImageManager::createImageAlias:
Failed creating the referenced alias reference, cannot create alias large
[ Feb 16 2009 13:06:59 ] [217.128.109.3] index:
Undefined module: stat
[ Feb 16 2009 13:06:59 ] [217.128.109.3] error/view.php:
Error ocurred using URI: /stat
[ Feb 16 2009 13:07:38 ] [217.128.109.3] eZImageManager::createImageAlias:
Failed converting var/fr/storage/images/diaporama/test-le-bar/368-1-fre-FR/test-Le-bar.jpg to alias 'diapo_photo' in directory 'var/fr/storage/images/diaporama/test-le-bar/368-1-fre-FR'

has anyone experiment that?

My Image.ini settings are :

[ImageMagick]
IsEnabled=true
ExecutableUnix=convert
ExecutablePath=/usr/bin/

[AliasSettings]
AliasList[]=logo
AliasList[]=photo_chef
AliasList[]=diapo_photo
AliasList[]=image_carte
AliasList[]=arrete_image


[logo]
Reference=reference
Filters[]=geometry/scaleexact=761;77

[photo_chef]
Reference=reference
Filters[]=geometry/scaleexact=513;118

[diapo_photo]
Filters[]=geometry/scaleexact=400;224

[image_carte]
Reference=reference
Filters[]=geometry/scaleexact=246;176

[arrete_image]
Reference=reference
Filters[]=geometry/scaleexact=241;89

No matter, convert exists in /usr/bin and apache has access to that directory.

Thanks..

Consultant Ez Publish- Sapiens Consulting

meriam santos

Tuesday 14 April 2009 8:52:57 pm

Hi there,

were you able to solve this error? anybody who knows the solution to this? please

please let me know as i'm having the same problem.

thanks..

Thomas ZILLIOX

Thursday 17 March 2011 9:32:36 am

Hi !

I found some answer on another topic : http://share.ez.no/forums/install-configuration/creation-of-image-variation-doesnt-work-someone-can-help#comment7405

See you,

Thomas.

--
Developer at Open Wide

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:32:56
Script start
Timing: Jan 30 2025 19:32:56
Module start 'layout'
Timing: Jan 30 2025 19:32:56
Module start 'content'
Timing: Jan 30 2025 19:32:56
Module end 'content'
Timing: Jan 30 2025 19:32:56
Script end

Main resources:

Total runtime0.0677 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.2656151.2266
Module start 'layout' 0.00700.0052 739.4922220.7188
Module start 'content' 0.01220.0537 960.21091,005.9609
Module end 'content' 0.06590.0018 1,966.171937.9922
Script end 0.0677  2,004.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00294.2623140.0002
Check MTime0.00121.7083140.0001
Mysql Total
Database connection0.00131.912510.0013
Mysqli_queries0.00395.791430.0013
Looping result0.00000.037010.0000
Template Total0.00121.810.0012
Template load0.00091.361510.0009
Template processing0.00030.419310.0003
Override
Cache load0.00060.924610.0006
General
dbfile0.033649.640280.0042
String conversion0.00000.023640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs