Images download and directories creation problems

Author Message

Aymeric Palsky

Tuesday 26 July 2011 7:29:15 am

Hi, 

I have a stange problem of images download : when I try to download an image, ezpublish can't find it.

Ezpublish doesn't created the directories where it is looking for the image.

To make it work I must create myself the directories that wants Ezpublish, and put myself the picture in.

I must have made a bad configuration somewhere, and I wonder where.

I use PHP 5.1.6

Apache 2.2.3

ezpublishcommunity 4.4.0 with ezc gpl

Thanks a lot for any help or advice you can give me.

Aymeric

 

Philippe VINCENT-ROYOL

Tuesday 26 July 2011 11:13:17 pm

Hi Aymeric,

check if you have correct rights on folder and subfolders var/

If its correct verify your gd or imagemagick config files too

Philippe

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Nicolas Martinez

Wednesday 27 July 2011 4:13:02 am

Hi, when you're uploading?

Nothing in apache / ezpublish logs?

Also, check that you can upload in php configuration, and the size (?!)

In php.ini

; Whether to allow HTTP file uploads.

file_uploads = On

; Maximum allowed size for uploaded files.

upload_max_filesize = 2M

NMartinez

Aymeric Palsky

Wednesday 27 July 2011 6:13:55 am

I did as Philippe says and I made a : "chmod -R 777 var/" in the shell and now it work fine, but I am not sure that this is the right way to do. 

 

I am also looking for the imagemagick config files, but I don't know in which folder I am supposed to looking for.

For the file error.log of the "var" folder it gave me :

 

[ Jul 27 2011 09:24:28 ] [127.0.0.1] eZImageManager::createImageAlias:
The reference alias original file var/ezwebin_site/storage/images/media/images/entreprise/433-2-fre-FR/entreprise.png does not exist
[ Jul 27 2011 09:24:28 ] [127.0.0.1] :
Original alias does not exist, cannot create other aliases without it
[ Jul 27 2011 09:24:38 ] [10.1.3.37] eZImageManager::createImageAlias:
The reference alias original file var/ezwebin_site/storage/images/media/images/entreprise/433-2-fre-FR/entreprise.png does not exist
[ Jul 27 2011 09:24:38 ] [10.1.3.37] :
Original alias does not exist, cannot create other aliases without it

 

and after the "chmod -R 777 var/" it gave me :

[ Jul 27 2011 09:50:55 ] [127.0.0.1] eZTSTranslator::handleMessageNode:
No source name found, skipping message

But from now, it work without problem.

Aymeric

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