Cannot upload related object

Author Message

Laurent B

Monday 23 November 2009 7:17:12 am

Hi all !

i'm trying to upload an attachment in a article. When i'm trying to add a new related object to this article, i'm browsing my file, then i submit the uploading form, and i get an error "The file cannot be uploaded".

I'm using eZ Publish 4.0.0. Can you help me ?

Thanks for your answers. Laurent

Gaetano Giunta

Monday 23 November 2009 10:39:11 am

Might be you do not have rights to create objects in the "media" section, and that's where eZP is set up to create related objects (such as images) in your case.

Either augment editor user rights or set uploaded images to be created as children of edited node.

Principal Consultant International Business
Member of the Community Project Board

Laurent B

Tuesday 24 November 2009 2:56:36 am

Hi Gaetano
Thanks for your quick answer.
However, I am the site administrator, so I do not know how I can further increase users' rights (as I have already obtained all rights).
Where can I configure the uploaded items to be a child of the edited node?

Thx

Gaetano Giunta

Tuesday 24 November 2009 4:40:09 am

If your are connected as admin user in eZP, then the problem is different.

Can you check in the eZP error log if there is anything streange?

Principal Consultant International Business
Member of the Community Project Board

Laurent B

Wednesday 25 November 2009 1:33:13 am

It says :

[ Nov 25 2009 10:27:01 ] [91.163.198.32] index:Undefined module: design

[ Nov 25 2009 10:27:01 ] [91.163.198.32] error/view.php:Error ocurred using URI: /ezlab/design/standard/images/favicon.ico

I really don't know what to do ? Is this due to OE ?

Gaetano Giunta

Wednesday 25 November 2009 6:50:19 am

The error you are seeing is from a missing line in your apache .htaccess file.

In short: in your pagelayout you have a link to the favicon.ico file in /ezlab/design/standard/images/favicon.ico, but this url is not interoretd by Apache as 'serve from filesystem' and sento to eZP instead. eZP thinks its a bad url and logs the error.

The fix is simple - look up the comments in your .htaccess_root file for examples.

Otoh it is weird that you do not have any message about your error.

You should:

- raise the logging level of eZP to include warning, notice, debug levels (change the Alwayslog setting in site.ini)

- check the php error log, too. Maybe the file you're trying to upload is too big wrt. the max allowed size in php.ini

Principal Consultant International Business
Member of the Community Project Board

Laurent B

Thursday 26 November 2009 2:59:26 am

I can't access the php.ini file, because i don't have the whole control of the server. I can't see the php.ini file in my FTP client.

So how do i can raise the logging level of eZP ?

Thx

Gaetano Giunta

Thursday 26 November 2009 3:20:40 am

The contents of php.ini you can see in the admin interface of ezp, in the "setup/system information" page, clicking on the link "details" next to php version. In there you can search for log_errors (it should be on) and error_log. Then you can see if by ftp you have access to the error log; if error_log is empty php will tunnell his errors in the apache error log.

If you cannot read that file, you should imho ask the server admin to be able to access it, read-only. It is often needed for debugging problems.

While looking at the php config, check the values for upload_max_filesize and file_uploads.

To raise the ezp error logging, set in site.ini.append.php:

[DebugSettings]

AlwaysLog[]=warning
AlwaysLog[]=debug
AlwaysLog[]=notice
AlwaysLog[]=strict

Principal Consultant International Business
Member of the Community Project Board

Laurent B

Thursday 26 November 2009 5:54:53 am

I've set the settings, in site.ini.append.php. However, it didn't help.

When i'm trying to access to the "setup/system information" page, there's no link next to php version. The maximum uploaded file size is 8M.

When i'm trying to read the content of .log files, there's no relation between the upload and the .log file's content.

thx

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

Main resources:

Total runtime0.8882 sec
Peak memory usage4,096.0000 KB
Database Queries75

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.5625152.6250
Module start 'layout' 0.00680.0035 742.187539.4453
Module start 'content' 0.01030.8762 781.6328600.1172
Module end 'content' 0.88650.0017 1,381.750020.1641
Script end 0.8882  1,401.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4208160.0002
Check MTime0.00160.1768160.0001
Mysql Total
Database connection0.00190.209010.0019
Mysqli_queries0.810891.2869750.0108
Looping result0.00080.0851730.0000
Template Total0.853896.120.4269
Template load0.00220.246920.0011
Template processing0.851695.874220.4258
Template load and register function0.00030.035810.0003
states
state_id_array0.00120.137410.0012
state_identifier_array0.00110.118920.0005
Override
Cache load0.00200.2203550.0000
Sytem overhead
Fetch class attribute can translate value0.00070.081620.0004
Fetch class attribute name0.00130.1415100.0001
XML
Image XML parsing0.00100.107620.0005
class_abstraction
Instantiating content class attribute0.00000.0035130.0000
General
dbfile0.00080.0921160.0001
String conversion0.00000.001040.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs