Share » Forums » Setup & design » Errors with Debug output from out of...

Errors with Debug output from out of the box solution

Errors with Debug output from out of the box solution

Wednesday 05 March 2008 7:56:40 am - 8 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu