Can't upload image or file

Author Message

Josh Rader

Friday 29 February 2008 5:50:24 am

Using the eZ admin console, when I try to upload an image or a file it appears to work, but when I go to the place where the image or file is supposed to be in, they don't appear. For example, I log into the admin console, then I go into a folder I created. In that folder, I choose 'image' from the dropdown box and then click 'create here'. Then in the 'Edit image - New Image' screen, I browse to the location of the image, put in a name and caption, then click 'send for publishing'. It appears to have worked, because I can see the object in the list and under 'type' it says 'image', but if I actually click on the object, in the next screen, there is no image displayed. This happens if I upload a file, as well.

Does anyone know why this is happening? Thanks.

Sysop1911

Stéphane Bullier

Saturday 01 March 2008 1:40:55 am

Hello,

You known which image system you are using ? Image Magick or GD ?

Also, you have to check the unix rights in your folder storage where are storing the images.

# chown -R user.usergroup var/
# chmod -R 770 var/

The "user.usergroup" notation must be changed to user and groupname that the webserver runs as.

Stéphane

Josh Rader

Friday 14 March 2008 10:08:37 am

We are using Image Magick.

How do I find what folder the images are being uploaded to?

Michael Hall

Saturday 15 March 2008 5:42:51 am

chmod -R 770 var/

This makes /var and all its sub folders writeable (-R = recursive), which is how ezp likes things. If you can't run this (and the preceding) command directly on the server, you could try changing permissions on /var and each subfolder manually with an FTP program.

Actually, shouldn't that be

chmod -R 770 /var

?

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 18 2025 19:10:38
Script start
Timing: Jan 18 2025 19:10:38
Module start 'layout'
Timing: Jan 18 2025 19:10:38
Module start 'content'
Timing: Jan 18 2025 19:10:39
Module end 'content'
Timing: Jan 18 2025 19:10:39
Script end

Main resources:

Total runtime1.5808 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.0058 589.0391152.6250
Module start 'layout' 0.00580.0021 741.664139.4453
Module start 'content' 0.00791.5708 781.1094573.8672
Module end 'content' 1.57870.0020 1,354.976612.1641
Script end 1.5807  1,367.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2138160.0002
Check MTime0.00170.1064160.0001
Mysql Total
Database connection0.00170.104810.0017
Mysqli_queries1.523396.3639620.0246
Looping result0.00070.0458600.0000
Template Total1.542997.620.7714
Template load0.00220.142120.0011
Template processing1.540697.460420.7703
Template load and register function0.00010.008010.0001
states
state_id_array0.00270.174010.0027
state_identifier_array0.00290.182620.0014
Override
Cache load0.00190.1222220.0001
Sytem overhead
Fetch class attribute can translate value0.00090.060030.0003
Fetch class attribute name0.00170.107450.0003
XML
Image XML parsing0.00140.086530.0005
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00230.1449160.0001
String conversion0.00000.000540.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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.0001 secs