Forums / Developer / EZImageManager issues - cannot create image alias

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

eZ debug

Timing: Jan 18 2025 03:12:22
Script start
Timing: Jan 18 2025 03:12:22
Module start 'content'
Timing: Jan 18 2025 03:12:24
Module end 'content'
Timing: Jan 18 2025 03:12:24
Script end

Main resources:

Total runtime1.5405 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0097 588.9609180.8125
Module start 'content' 0.00971.3951 769.7734653.6641
Module end 'content' 1.40490.1356 1,423.4375341.0547
Script end 1.5405  1,764.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2707210.0002
Check MTime0.00170.1083210.0001
Mysql Total
Database connection0.00090.057210.0009
Mysqli_queries1.450694.16092040.0071
Looping result0.00200.13152020.0000
Template Total1.475995.820.7380
Template load0.00200.127920.0010
Template processing1.474095.678520.7370
Template load and register function0.00010.009210.0001
states
state_id_array0.00270.174710.0027
state_identifier_array0.00240.158020.0012
Override
Cache load0.00180.1142840.0000
Sytem overhead
Fetch class attribute can translate value0.00170.110150.0003
Fetch class attribute name0.00110.071460.0002
XML
Image XML parsing0.00250.159750.0005
class_abstraction
Instantiating content class attribute0.00000.000660.0000
General
dbfile0.01200.7792260.0005
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs