Image Upload

Author Message

Darly Coupet

Tuesday 06 January 2004 11:46:32 am

ezpublish Ver 3-2-3

I am unable to upload images for display in articles. I have tried to upload pictures more than 20 times!

What is the recommended solution to bug?

Logo and header pictures work fine.

Greatly appreciate comments.

Darly Coupet

Marco Zinn

Tuesday 06 January 2004 12:52:59 pm

What happens, after you upload the images?
Do you get warnings/ errors? Did you try with different image types (gif, png, jpg)?
You can try to turn on debug output (look for "DebugOutput=disabled" in the *.ini files and turn it to "enabled"). This should give you (and us) some more info.
If you see the logos and sample pictures of the provided packages, your Image Conversion system configuration seems to be okay.
Please check, if if the image upload to the server harddisc worked: Check the directory /var/storage/image/original or /var/storage/<sitename>/image/original (or similar) for new files.
If they exist, look for a directory called ..."reference" (instead of "original"), there must be files then, too.

Marco
http://www.hyperroad-design.com

Darly Coupet

Tuesday 06 January 2004 4:33:57 pm

Listed are Warnings and Errors when page is refreshed:

eZ debug
Timing: Jan 06 2004 19:34:36
Module start 'content'
Warning: eZModuleOperationInfo::execute Jan 06 2004 19:34:36
Missing main operation memento for key: 777d9ef37861b7b6fc3b61635398c878
Warning: PHP Jan 06 2004 19:34:36
Undefined variable: to_file in /home/carib/travel/lib/ezimage/classes/ezimagemanager.php on line 431
Warning: PHP Jan 06 2004 19:34:36
Undefined offset: 1 in /home/carib/travel/lib/ezimage/classes/ezimagemanager.php on line 431
Warning: PHP Jan 06 2004 19:34:36
Undefined offset: 1 in /home/carib/travel/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 274
Warning: PHP Jan 06 2004 19:34:36
getimagesize(): Read error! in /home/carib/travel/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 276
Warning: PHP Jan 06 2004 19:34:36
Undefined offset: 1 in /home/carib/travel/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 281
Warning: PHP Jan 06 2004 19:34:36
Undefined offset: 1 in /home/carib/travel/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 288
Error: eZImageVariation Jan 06 2004 19:34:36
Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get
Debug: changing value of filename to default Jan 06 2004 19:34:36

Debug: changing value of width to default Jan 06 2004 19:34:36
0
Debug: changing value of height to default Jan 06 2004 19:34:36
0
Error: eZImageVariation Jan 06 2004 19:34:36
Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get
Timing: Jan 06 2004 19:34:36
Module end 'content'
Timing: Jan 06 2004 19:34:36
End

Please advise.

Darly Coupet

Tuesday 06 January 2004 4:40:17 pm

Directory contents are as follows:

The following directory contains about 10 files:
/var/carib/storage/original/image/

The following directory is empty:
/var/carib/storage/reference/image/

Please advise.

Marco Zinn

Wednesday 07 January 2004 12:09:03 pm

Hm, the problem is, that you do not have reference images.
References images are created from the original images, right after you upload the image.
When you enabled debug output in admin, you will probably see some error messages after uploading images. Try to create an image object, upload the image, but then press "Store draft", not "publish". This will give the the errors (please show us) and you will see, that you picture does not create a thumbnail.

Now, possible problems are:
- the "reference" directory is not writable by the server user. I don't think, that this is the problem
- your image conversion is not working. Do you use ImageMagick? Or GD?
Have a look at the error messages after the image upload, this should be very good.
If you use ImageMagick, check the pathname (directory) in the ini file(s), usually settings/override/image.ini.append

Marco
http://www.hyperroad-design.com

Darly Coupet

Wednesday 07 January 2004 3:38:13 pm

The following is debug output from admin after a store draft:

Debug: Jan 07 2004 18:07:04
/tmp/phpUE81Mh var/<sitename>/storage/original/image/phpUE81Mh.png

Warning: PHP Jan 07 2004 18:07:04
Undefined variable: to_file in /home/carib/travel/lib/ezimage/classes/ezimagemanager.php on line 431

Warning: PHP Jan 07 2004 18:07:04
Undefined offset: 1 in /home/carib/travel/lib/ezimage/classes/ezimagemanager.php on line 431

Warning: PHP Jan 07 2004 18:07:04
Undefined variable: to_file in /home/carib/travel/lib/ezimage/classes/ezimagemanager.php on line 431

Warning: PHP Jan 07 2004 18:07:04
Undefined offset: 1 in /home/carib/travel/lib/ezimage/classes/ezimagemanager.php on line 431

Warning: PHP Jan 07 2004 18:07:04
Undefined offset: 1 in /home/carib/travel/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 274

Warning: PHP Jan 07 2004 18:07:04
getimagesize(): Read error! in /home/carib/travel/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 276

Warning: PHP Jan 07 2004 18:07:04
Undefined offset: 1 in /home/carib/travel/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 281

Warning: PHP Jan 07 2004 18:07:04
Undefined offset: 1 in /home/carib/travel/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 288

Error: eZImageVariation Jan 07 2004 18:07:04
Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get

Debug: changing value of filename to default Jan 07 2004 18:07:04

Debug: changing value of width to default Jan 07 2004 18:07:04
0

Debug: changing value of height to default Jan 07 2004 18:07:04
0

Error: eZImageVariation Jan 07 2004 18:07:04
Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get

Warning: PHP Jan 07 2004 18:07:04
Undefined index: real_translation in /home/carib/travel/kernel/classes/ezcontentobjecttreenode.php on line 2331

Timing: Jan 07 2004 18:07:04
Module end 'content'

Error: Jan 07 2004 18:07:04
Could not open file 'var/<sitename>/cache/template-block/0/5/b/05b4a53b576089cd70b7c6a113ea642e.php' for writing, perhaps wrong permissions

Error: eZPHPCreator::store Jan 07 2004 18:07:04
Failed to open file 'var/<sitename>/cache/template-block/0/5/b/05b4a53b576089cd70b7c6a113ea642e.php'

Warning: PHP Jan 07 2004 18:07:04
Uninitialized string offset: 0 in /home/carib/travel/kernel/common/ezurloperator.php on line 189

Timing: Jan 07 2004 18:07:04
End

Darly Coupet

Wednesday 07 January 2004 3:46:46 pm

Contents of /travel/settings/override/image.ini.append.php

<?php /* #?ini charset="iso-8859-1"?

[ConverterSettings]
UseConvert=false
UseGD=true
*/ ?>

Please advise

imran x

Saturday 16 October 2004 7:52:43 am

I'm experiencing EXACTLY the same problem. I also tried to update image.ini.append.php to
the following:

[ConverterSettings]
UseConvert=true
UseGD=true

But this results in:
-----------------------------------------
.....

Warning: PHP Oct 16 2004 09:45:21

strstr(): Empty delimiter. in /home/harabe30/public_html/live/lib/ezimage/classes/ezimageshell.php on line 195

Debug: eZImageShell::run <lib-ezimage-shell> Oct 16 2004 09:45:21

Executing shell command 'convert -geometry "100x100>" var/federal/storage/reference/image//phpyCtbRd.jpg jpg:var/federal/storage/variations/image/p/h/p//phpyCtbRd_100x100_252.jpg'

Warning: eZImageShell::run Oct 16 2004 09:45:21

Failed executing: convert -geometry "100x100>" var/federal/storage/reference/image//phpyCtbRd.jpg jpg:var/federal/storage/variations/image/p/h/p//phpyCtbRd_100x100_252.jpg, Err: , Ret: 1

Warning: PHP Oct 16 2004 09:45:21

getimagesize(var/federal/storage/variations/image/p/h/p/phpyCtbRd_100x100_252.jpg): failed to open stream: No such file or directory in /home/harabe30/public_html/live/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 276

Warning: PHP Oct 16 2004 09:45:21

filesize(): Stat failed for var/federal/storage/variations/image/p/h/p/phpyCtbRd_100x100_252.jpg (errno=2 - No such file or directory) in /home/harabe30/public_html/live/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 291

Error: Oct 16 2004 09:45:21

Could not create variation for var/federal/storage/variations/image/p/h/p/phpyCtbRd_100x100_252.jpg

Please help. I've already spend a long time on this issue..

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 19 2025 04:21:52
Script start
Timing: Jan 19 2025 04:21:52
Module start 'layout'
Timing: Jan 19 2025 04:21:52
Module start 'content'
Timing: Jan 19 2025 04:21:53
Module end 'content'
Timing: Jan 19 2025 04:21:53
Script end

Main resources:

Total runtime0.5713 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 590.4531152.6094
Module start 'layout' 0.00590.0040 743.062539.3984
Module start 'content' 0.00990.5603 782.4609678.9609
Module end 'content' 0.57020.0011 1,461.421924.2031
Script end 0.5713  1,485.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6135160.0002
Check MTime0.00140.2518160.0001
Mysql Total
Database connection0.00100.175510.0010
Mysqli_queries0.475383.1955740.0064
Looping result0.00070.1298720.0000
Template Total0.540194.520.2700
Template load0.00190.336420.0010
Template processing0.538294.192620.2691
Template load and register function0.00020.042210.0002
states
state_id_array0.00190.340810.0019
state_identifier_array0.00080.133220.0004
Override
Cache load0.00190.33941410.0000
Sytem overhead
Fetch class attribute can translate value0.00090.150030.0003
Fetch class attribute name0.00140.251390.0002
XML
Image XML parsing0.00090.152330.0003
class_abstraction
Instantiating content class attribute0.00000.0032100.0000
General
dbfile0.00180.3101160.0001
String conversion0.00000.001340.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
34content/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
29content/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: 75
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs