Blogs / Steven E. Bailey

You need to be logged in to get access to the forums. You can do so here

Turning off debug for xml output

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Friday 19 August 2011 12:52

by Steven E. Bailey  | 4 comments

So I'm trying to debug a site which has ajax calls to a module that serves xml.  Of course the debug output appended to the xml breaks it.  I've had this problem before but I never bothered looking closer at it until now.

Finding the objects of a class with non-null values

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Thursday 18 August 2011 09:22

by Steven E. Bailey  | 0 comments

For a customer i had to find the objects (out of hundreds) that had an attribute filled out, I figured an attribute filter would be the easiest:

Protip suhosin

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Sunday 10 July 2011 10:54

by Steven E. Bailey  | 2 comments

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.

Using php to pass database values to a bash shell

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Friday 01 July 2011 02:55

by Steven E. Bailey  | 0 comments

Here's code that I've used in a bunch of places - especially for automated syncing scripts:

Dumping classes

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Thursday 30 June 2011 04:18

by Steven E. Bailey  | 3 comments

Here's a little script I use when I have get the info from a class or classes:

Finding double-published items

  • Currently 4 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Wednesday 29 June 2011 02:47

by Steven E. Bailey  | 7 comments

I had to find objects that had multiple locations for a client.  This is what I came up with:

Wherefore art thou Data?

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Thursday 26 May 2011 03:13

by Steven E. Bailey  | 7 comments

As a novice eZPublish programmer 6 year ago my biggest problem was always trying to find my data.  Of course attribute(show) was invaluable... and at first I wrote a shell script to parse that data to make it readable and years later I wrote ezfire to make that data more accessible...  But, for much of the time I was cursing and thinking - to paraphrase Mojo Nixon - "Where the hell's my data."

Tags

Archive

Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

eZ debug

Timing: Jan 17 2025 17:57:14
Script start
Timing: Jan 17 2025 17:57:14
Module start 'content'
Timing: Jan 17 2025 17:57:14
Module end 'content'
Timing: Jan 17 2025 17:57:14
Script end

Main resources:

Total runtime0.3591 sec
Peak memory usage4,096.0000 KB
Database Queries336

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 595.7891180.8906
Module start 'content' 0.00460.2132 776.6797696.5781
Module end 'content' 0.21780.1412 1,473.2578346.9922
Script end 0.3590  1,820.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00421.1722220.0002
Check MTime0.00150.4231220.0001
Mysql Total
Database connection0.00050.134510.0005
Mysqli_queries0.258271.92013360.0008
Looping result0.00260.72243300.0000
Template Total0.154243.030.0514
Template load0.00190.538630.0006
Template processing0.153842.838930.0513
Template load and register function0.00010.021210.0001
states
state_id_array0.00481.334380.0006
state_identifier_array0.00320.903490.0004
Override
Cache load0.00150.4158260.0001
Sytem overhead
Fetch class attribute name0.00210.5752150.0001
Fetch class attribute can translate value0.00170.484820.0009
class_abstraction
Instantiating content class attribute0.00000.0062150.0000
XML
Image XML parsing0.00200.559320.0010
General
dbfile0.00671.8574320.0002
String conversion0.00000.002030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/blog.tplextension/sevenx/design/simple/override/templates/full/blog.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezkeyword.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezkeyword.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1tagcloud/tagcloud.tpl<No override>extension/community_design/design/suncana/templates/tagcloud/tagcloud.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs