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 :)

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 15:08:47
Script start
Timing: Jan 18 2025 15:08:47
Module start 'layout'
Timing: Jan 18 2025 15:08:47
Module start 'content'
Timing: Jan 18 2025 15:08:47
Module end 'content'
Timing: Jan 18 2025 15:08:47
Script end

Main resources:

Total runtime0.0122 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 587.9141152.6250
Module start 'layout' 0.00400.0020 740.539139.4609
Module start 'content' 0.00590.0048 780.000093.4453
Module end 'content' 0.01070.0015 873.445334.3047
Script end 0.0122  907.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001915.6318140.0001
Check MTime0.00086.9353140.0001
Mysql Total
Database connection0.00064.529810.0006
Mysqli_queries0.001714.095230.0006
Looping result0.00000.066410.0000
Template Total0.001210.010.0012
Template load0.00064.879310.0006
Template processing0.00065.076510.0006
Override
Cache load0.00043.456010.0004
General
dbfile0.001310.344480.0002
String conversion0.00000.050840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs