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.

eZ debug

Timing: Jan 17 2025 21:59:18
Script start
Timing: Jan 17 2025 21:59:18
Module start 'layout'
Timing: Jan 17 2025 21:59:18
Module start 'content'
Timing: Jan 17 2025 21:59:19
Module end 'content'
Timing: Jan 17 2025 21:59:19
Script end

Main resources:

Total runtime1.1733 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0105 588.0703152.6406
Module start 'layout' 0.01050.0042 740.710939.4844
Module start 'content' 0.01471.1572 780.1953589.6172
Module end 'content' 1.17190.0014 1,369.812512.1250
Script end 1.1733  1,381.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3203160.0002
Check MTime0.00130.1130160.0001
Mysql Total
Database connection0.00200.171410.0020
Mysqli_queries1.100093.7521620.0177
Looping result0.00060.0537600.0000
Template Total1.124095.820.5620
Template load0.00360.303220.0018
Template processing1.120495.491020.5602
Template load and register function0.00030.021910.0003
states
state_id_array0.00180.152610.0018
state_identifier_array0.00170.148020.0009
Override
Cache load0.00240.2087500.0000
Sytem overhead
Fetch class attribute can translate value0.00050.042930.0002
Fetch class attribute name0.00100.087260.0002
XML
Image XML parsing0.00290.250030.0010
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00580.4925220.0003
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs