This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Alias exists, but image file gone -...

Alias exists, but image file gone - how to regenerate?

Alias exists, but image file gone - how to regenerate?

Friday 11 December 2009 11:44:29 am


I've got the following problem: an image alias has once been generated with attribute_view_gui template operator, but then the image alias file (jpg) has been removed for some reason from the file system. From that moment on, attribute_view_gui is unable to regenerate the file because the database tells it that the alias exists.

What would be the best/easiest way (in PHP) to force regeneration of the missing alias jpeg file?

I did some tests and is seems that it's enough to remove alias declaration that is stored in ezimage content object attributes in form of alias XML. However, the XML (eZImageAliasHandler I suppose) doesn't seem to provide any API for single alias removal (or even removeAllButNotOriginal blunk.gif Emoticon ). However, if I remove given alias XML node, the alias gets regenerated, as required.

Any ideas greatly appreciated!


No reply yet!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from