Forums / Setup & design / Powercontent extension and eZP4

Powercontent extension and eZP4

Author Message

Christian Johansen

Thursday 25 September 2008 3:24:35 am

I'm updating by blog, and also upgrading to eZP 4. I'm having some trouble with the powercontent extension. The wiki page says that it should work with 4.0, BUT:

Posting a comment stops at /powercontent/action with the following in debug output:

Strict: PHP  	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 4

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 26

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 42

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 49

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 52

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 53

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 56

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 59

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 62

Strict: PHP 	Sep 25 2008 12:17:38

mktime() [<a href='function.mktime'>function.mktime</a>]: You should be using the time() function instead in /my/site/extension/powercontent/modules/powercontent/action.php on line 67

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 74

Strict: PHP 	Sep 25 2008 12:17:38

Only variables should be assigned by reference in /my/site/extension/powercontent/modules/powercontent/action.php on line 82

Has anyone seen this? Also, no comment is actually posted. I'm using PHP 5.2.0-8+etch11

André R.

Thursday 25 September 2008 5:32:53 am

And your using the 4.0 version?

ref (trunk):
http://projects.ez.no/powercontent

Anyway strict errors, are not the end of the world..

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 25 September 2008 6:11:40 am

Anyway strict errors, are not the end of the world.. 

In most cases it's better to fix them though, it's a clear sign that your code is doing something which is bad practice.

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

Christian Johansen

Thursday 25 September 2008 8:01:11 am

Great, thanks! I was using the wrong subversion repository (pubsvn) that was linked from http://ezpedia.org/wiki/en/ez/powercontent

Update: I updated the ezpedia page so new users won't make the same mistake :)

eZ debug

Timing: Jan 18 2025 10:29:11
Script start
Timing: Jan 18 2025 10:29:11
Module start 'content'
Timing: Jan 18 2025 10:29:12
Module end 'content'
Timing: Jan 18 2025 10:29:13
Script end

Main resources:

Total runtime1.5442 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 587.7266180.8359
Module start 'content' 0.00921.3394 768.5625599.4297
Module end 'content' 1.34850.1956 1,367.9922337.7188
Script end 1.5441  1,705.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00510.3295210.0002
Check MTime0.00170.1128210.0001
Mysql Total
Database connection0.00110.070810.0011
Mysqli_queries1.444793.55601990.0073
Looping result0.00340.21751970.0000
Template Total1.506297.520.7531
Template load0.00220.143120.0011
Template processing1.503997.395220.7520
Template load and register function0.00020.015410.0002
states
state_id_array0.00090.060910.0009
state_identifier_array0.00190.125420.0010
Override
Cache load0.00190.1220200.0001
Sytem overhead
Fetch class attribute can translate value0.00170.112140.0004
Fetch class attribute name0.00180.114060.0003
XML
Image XML parsing0.00150.097840.0004
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.01120.7224340.0003
String conversion0.00000.000430.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs