Forums / Setup & design / Errors with Debug output from out of the box solution

Errors with Debug output from out of the box solution

Author Message

John Smith

Wednesday 05 March 2008 7:56:40 am

Hi there,

I installed ezpublish 4.0 with simple plain site style. Created a new class "Article Events" and linked to the calender in the Toolbar management -> right

Got the following debug output.

Non-static method eZContentObjectTreeNode::calendar() should not be called statically, assuming $this from incompatible context in

\kernel\content\ezcontentfunctioncollection.php on line 317

Strict: PHP

Non-static method eZContentObjectTreeNode::subTreeGroupByDateField() should not be called statically in

\kernel\classes\ezcontentobjecttreenode.php on line 1426

André R.

Wednesday 05 March 2008 12:56:12 pm

Non-static method eZContentObjectTreeNode::calendar() should not be called statically, assuming $this from incompatible context in

This is fixed in 4.0.1 (upcoming version):
http://issues.ez.no/IssueView.php?Id=12074&activeItem=1

As for:

Non-static method eZContentObjectTreeNode::subTreeGroupByDateField() should not be called statically in

\kernel\classes\ezcontentobjecttreenode.php on line 1426

I have created a issue for it here:
http://issues.ez.no/IssueView.php?Id=12654

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

John Smith

Thursday 06 March 2008 4:54:12 am

Is it possible to see the changes for the issue 12074 please which has been fixed?

Another entry in logs:

mktime() [<a href='function.mktime'>function.mktime</a>]: You should be using the time() function instead in var\plain_site\cache\template\compiled\folder_full_events-0411fccf18ca4a33d0b99d11e31d8e68.php on line 288.

I checked the complied folder and the line 288 is:

$var = mktime(  );

Hope you can help me on this one as well.

André R.

Thursday 06 March 2008 5:11:55 am

> Is it possible to see the changes for the issue 12074?

yes you can check out a specific svn revision (21240) and compare it to the previous revision.
Or you can use the viewCVS interface:
http://pubsvn.ez.no/viewcvs/stable/4.0/kernel/classes/ezcontentobjecttreenode.php?rev=21433&root=nextgen&sortby=date&view=log

about the mktime issue, you should report this in the issue tracker.
But you need to write a bit more information, like what template this comes from and if possible what template operator ( / function ) generates this code. (you can find the template used in the top of that compiled template ).

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

John Smith

Thursday 06 March 2008 6:02:52 am

Cheers,

I will look at the template first, if critical then report it as a issue.

Another thing, would it be possible for you to send me a link where I can see all the changes or bug fixes from 4.0.0 to 4.0.1.

When is the version 4.0.1 releasing please???

John Smith

Thursday 06 March 2008 6:42:39 am

Acutally in the template the code was:

timestamp=maketime()
current=gettime($timestamp)

I changed to :

current=gettime($currentdate())

It is working fine now. No errors in the logs file except:

Non-static method eZContentObjectTreeNode::subTreeGroupByDateField() should not be called statically in \kernel\classes\ezcontentobjecttreenode.php on line 1426

André R.

Thursday 06 March 2008 9:47:28 am

If you want to remove the notice badly, you can safely add a 'static' in front of that function, it does not use '$this' so can be declared static.

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

Kristof Coomans

Thursday 06 March 2008 10:59:50 am

I reported the strict warning with maketime here: http://issues.ez.no/12664

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

John Smith

Friday 07 March 2008 10:22:39 am

Cheers, André R for the quick fix.

Is there any quick fix for:

Non-static method eZContentObjectTreeNode::subTreeGroupByDateField() should not be called statically in

\kernel\classes\ezcontentobjecttreenode.php on line 1426

eZ debug

Timing: Jan 19 2025 14:01:31
Script start
Timing: Jan 19 2025 14:01:31
Module start 'content'
Timing: Jan 19 2025 14:01:32
Module end 'content'
Timing: Jan 19 2025 14:01:32
Script end

Main resources:

Total runtime0.7216 sec
Peak memory usage4,096.0000 KB
Database Queries214

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.1953180.8125
Module start 'content' 0.00690.6111 770.0078661.6250
Module end 'content' 0.61800.1036 1,431.6328344.4141
Script end 0.7216  1,776.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5215210.0002
Check MTime0.00140.2000210.0001
Mysql Total
Database connection0.00130.176710.0013
Mysqli_queries0.644289.26782140.0030
Looping result0.00170.23972120.0000
Template Total0.699096.920.3495
Template load0.00180.247920.0009
Template processing0.697296.618620.3486
Template load and register function0.00020.026210.0002
states
state_id_array0.00070.096210.0007
state_identifier_array0.00050.070720.0003
Override
Cache load0.00160.2236580.0000
Sytem overhead
Fetch class attribute can translate value0.00170.237040.0004
Fetch class attribute name0.00090.1181110.0001
XML
Image XML parsing0.00140.197340.0004
class_abstraction
Instantiating content class attribute0.00000.0069130.0000
General
dbfile0.00500.6970340.0001
String conversion0.00000.001030.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/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
15content/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
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs