Protip suhosin

Sunday 10 July 2011 10:54:30 am

By : Steven E. Bailey

If you are using suhosin you WILL end up having a problem when trying to edit a class with more than 20 attributes if you don't first increase the suhosin.post.max_vars and suhosin.request.max_vars to more than the default 200.

The error message will look something like this in the apache log:

ALERT - configured POST variable limit exceeded - dropped variable 'ContentAttribute_description[]' (attacker '127.0.0.1', file '/var/www/<site>/index.php'), referer: http://<site>/admin/class/edit

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

Main resources:

Total runtime0.0915 sec
Peak memory usage6,144.0000 KB
Database Queries42

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.9297152.6094
Module start 'layout' 0.00520.0042 741.539139.4219
Module start 'content' 0.00940.0805 780.9609348.8750
Module end 'content' 0.08990.0016 1,129.835911.7031
Script end 0.0915  1,141.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00303.2530150.0002
Check MTime0.00121.3132150.0001
Mysql Total
Database connection0.00070.772510.0007
Mysqli_queries0.046750.9666420.0011
Looping result0.00040.4230400.0000
Template Total0.056862.120.0284
Template load0.00222.457820.0011
Template processing0.054659.614020.0273
Template load and register function0.00010.145310.0001
states
state_id_array0.00060.631310.0006
state_identifier_array0.00111.190820.0005
Override
Cache load0.00181.929990.0002
Sytem overhead
Fetch class attribute name0.00272.965730.0009
class_abstraction
Instantiating content class attribute0.00000.010930.0000
General
dbfile0.00070.7537100.0001
String conversion0.00000.011240.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.tplblog_entry/full.tplextension/community_design/design/suncana/override/templates/blog_entry/full.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezkeyword.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezkeyword.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs