ezP 4.0 Can't upload image

Author Message

Jacobi Jacobi

Saturday 23 February 2008 5:36:31 am

I am using ezP 4.0.0 with ezFlow, all images can be displayed properly. But images can't be uploaded, I have checked ezP 4.0.0 and very sure that I have enabled the following:

1) php.ini file with: file_uploads = On
2) File permissions: var/storage/ and it's sub directories. rights enabled
3) Image conversion program: GD2 works fine as images can be displayed

Please what else I need to check. Please help.
With Thanks,

André R.

Saturday 23 February 2008 8:46:39 am

File size and file upload limit in php (upload size and post size) and ez publish limitation on image attributes..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jacobi Jacobi

Saturday 23 February 2008 6:48:36 pm

Hi André R.,

Thanks for your reply.

For PHP, I have already set up (php.ini):
post_max_size =10M
file_uploads = On
;upload_tmp_dir = ;(use system default)
upload_max_filesize =128M

Still not able to upload image after reboot.
Please help more!
With Thanks

Piotrek Karaś

Saturday 23 February 2008 11:19:31 pm

<i>3) Image conversion program: GD2 works fine as images can be displayed</i>

You mean images previously uploaded? It doesn't have to be necessarily so, I don't think you need GD for just displaying images that had already been generated.

Check image.ini:
HasGD2=false/true

Do you have your debug on? What does it say?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Jacobi Jacobi

Sunday 24 February 2008 1:14:51 am

3) Image conversion program: GD2 works fine as images can be displayed
You mean images previously uploaded? It doesn't have to be necessarily so, I don't think you need GD for just displaying images that had already been generated.

==> I am using the demo data which has images, all these images from demo data can be displayed, just can't upload any image.

Check image.ini:
HasGD2=false/true

==> I amusing GD2, so I set:
HasGD2=True (ImageMagick not used)

Do you have your debug on? What does it say?

==> I set on debud on. If I post new article without images, no problem. But if with image, a blank screen returned if I use FireFox (or if use IE: Internet Explorer cannot display the webpage ), that means I get no debug info.

Please help more!

With Thanks

Piotrek Karaś

Sunday 24 February 2008 4:44:17 am

<i>> I set on debud on. If I post new article without images, no problem.
> But if with image, a blank screen returned if I use FireFox
> (or if use IE: Internet Explorer cannot display the webpage ),
> that means I get no debug info.</i>

Which page cannot be displayed, the one containing images, or the result page directly after editing? If you are not able to read the HTML debug, there are still some log files that should contain the answers (please clear all cache before making another attempt that you expect to be logged). And making debug work should be your primary objective, otherwise this is little chance to confirm anything.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Jacobi Jacobi

Monday 25 February 2008 1:28:45 am

Two examples:

1) New User Registration:
If the new user chooses "New image file for upload" on "Register user" screen, and select an image to upload, the blank screen will be returned without anything (Firefox).

2) New Article Create:
If I create a new article and upload an image, the blank screen will be returened(Firefox)

I notice that these programs seem to calling the same code/function as the two programs ask the same things:

Image
Current image:
There is no image file.
New image file for upload: [BROWSE]

Please help more!
With Thanks,

russ smith

Tuesday 25 November 2008 12:24:47 pm

this is long since a dead thread but...

the fix is to change your upload directory in your php.ini to something apache can read/write to/from.

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 10:50:29
Script start
Timing: Jan 19 2025 10:50:29
Module start 'layout'
Timing: Jan 19 2025 10:50:29
Module start 'content'
Timing: Jan 19 2025 10:50:30
Module end 'content'
Timing: Jan 19 2025 10:50:30
Script end

Main resources:

Total runtime0.8835 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.2734152.6406
Module start 'layout' 0.00550.0048 741.914139.4609
Module start 'content' 0.01030.8717 781.3750682.8281
Module end 'content' 0.88200.0015 1,464.203120.1641
Script end 0.8835  1,484.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4019160.0002
Check MTime0.00130.1518160.0001
Mysql Total
Database connection0.00090.101010.0009
Mysqli_queries0.807791.4158760.0106
Looping result0.00090.1033740.0000
Template Total0.850696.320.4253
Template load0.00190.217820.0010
Template processing0.848796.054720.4243
Template load and register function0.00020.020910.0002
states
state_id_array0.00200.223810.0020
state_identifier_array0.00200.229020.0010
Override
Cache load0.00180.1999650.0000
Sytem overhead
Fetch class attribute can translate value0.00110.121640.0003
Fetch class attribute name0.00120.1316100.0001
XML
Image XML parsing0.00170.195540.0004
class_abstraction
Instantiating content class attribute0.00000.0032110.0000
General
dbfile0.00090.1062240.0000
String conversion0.00000.001540.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
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 45
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs