Image gallery problem after server migration

Author Message

Michael Hall

Thursday 15 May 2008 6:11:29 pm

After moving an EZ4 installation from development to production server (not in service yet), we are experiencing a problem with our image galleries. Everything else seems OK including other images (logos etc) on the new server.

Basically, the gallery pages all function fine except that the images (thumbnails and full size) do not display. I have tracked the problem down to this template:

extension/ezwebin/design/ezwebin/override/templates/galleryline/image.tpl

which has the following content:

{* Image - Gallery line view *}
<div class="content-view-galleryline">
    <div class="class-image">

    <div class="attribute-image"{if is_set($#image_style)} style="{$#image_style}"{/if}>
        <p>{attribute_view_gui attribute=$node.data_map.image image_class=gallerythumbnail
                               href=$node.url_alias|ezurl}</p>
    </div>

    <div class="attribute-name"{if is_set($#image_style)} style="{$#image_style|explode(';').0}"{/if}>
        <p>{$node.name|shorten(14)|wash}</p>
    </div>

    </div>
</div>

The code between the first <p> tags is producing no output:

{attribute_view_gui attribute=$node.data_map.image image_class=gallerythumbnail
                               href=$node.url_alias|ezurl}

while the code between the second <p> tags does produce the correct output:

{$node.name|shorten(14)|wash}

Any suggestions as to what might be going on here or how to fix it?
Thanks.

Felix Laate

Thursday 15 May 2008 11:06:52 pm

Hi Michael,

did you"move" the database, but not the image files in /var/ezwebin/storage ?

That would result in this sort of problems.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Michael Hall

Thursday 15 May 2008 11:34:19 pm

No, I haven't forgotten the images :-)

The images are all where they're supposed to be and I can access them with a direct URL.
Permissions all look OK.

It seems that the problem must be with either

node.data_map.image

or

node.url_alias|ezurl

which may be empty or have an incorrect value?

Felix Laate

Friday 16 May 2008 12:53:04 am

Hi again,

check out {$node.data_map.image.content[original]|attribute('show',2)} to see if the image reference is in the database.

also, what does the debug-output say?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Michael Hall

Sunday 18 May 2008 6:54:45 pm

Solved: ImageMagick wasn't installed. Because I copied the dev site over to the new server without running an install process, I didn't pick this problem up. I installed an absolute minimum OS on the new machine and went a little too far.

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