Forums / Setup & design / Frustrating Debug Issue

Frustrating Debug Issue

Author Message

Alex Jones

Tuesday 09 March 2004 9:16:35 am

I have run into a really odd problem when trying to debug a new site. Anytime I set <i>DebugOutput</i> to 'enabled' under <i>[DebugSettings]</i> in <i>site.ini</i> or a <i>site.ini.append</i> file, eZ publish won't allow any pages to be loaded. The current page is reloaded instead of the new page. The only page that I can see the debug output is the Cache admin page as that reloads properly after I clear the cache. Here are some PHP errors which may be causing the issue, though I am stumped as to the problem.

<b>Warning: PHP</b>
Array to string conversion in [PATH TO EZ]/kernel/classes/ezcache.php on line 261

<b>Warning: PHP</b>
Array to string conversion in [PATH TO EZ]/kernel/classes/ezcache.php on line 287

<b>Warning: PHP</b>
unlink(sortkey_ez_cuttingedge.php): No such file or directory in [PATH TO EZ]/kernel/classes/ezcache.php on line 288

The rest of the errors appear to be generated by the translation system, which I don't use.

In digging through the <i>error.log</i> in <i>var/log</i> I noticed a couple of occurances of this error as well:
array_merge(): Argument #2 is not an array in [PATH TO EZ]/kernel/classes/ezcontentcache.php on line 67

Could the problem be a caching issue?

I do not experience any problems if I have disabled debug output, though it makes it much harder to solve another problem.

My Setup:
eZ publish 3.3.3 (5019)
FreeBSD
PHP 4.3.4
No PHP Accelerator
Maximum size of post data (text and files) is 16M.
Script memory limit is 60M.
Maximum execution time is 120 seconds.

The permissions for the <i>var</i> directory and its children are set to 777 and they have the same owner as <i>index.php</i>.

Any help would be greatly appreciated at this point!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Tuesday 09 March 2004 10:21:33 am

The following error also shows up in our httpd error log.
FATAL: erealloc(): Unable to allocate 1768318443 bytes

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Georg Franz

Thursday 11 March 2004 3:57:50 am

Hi Alex,

the debug output has nothing to do with your problem but with two small bugs in "clear cache".
http://ez.no/community/bug_reports/kernel_classes_ezcache_php_fatal_error_missing_includes_more

It sounds like that you have an error in your pagelayout.tpl. Do you use cache-blocks? If yes, check if they are set right:

a) Turn off caching completely (in site.ini.append) -> Did it work?
b) If yes, check if you have
{cache-block ...}
....
{$module_result.content}
{/cache-block}

in your pagelayout.tpl.

-> that means that ez loads the same cache-block (the same page) on every page. Remove the cache-block.

I hope that helps.

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Alex Jones

Thursday 11 March 2004 7:31:28 am

Thanks Emil, I'll try that out and report back.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Thursday 11 March 2004 8:44:50 am

Well, turning off all caching and then turning on debug output worked which was nice. But the problem is not with cache-blocks around <i>{$module_result.content}</i>. I know enough about cache-blocks to not make that mistake. :) But, just in case, I double-checked to ensure that I didn't forget to close a cache-block further up the line.

I went ahead and made all of the changes you posted in your bug report, but it doesn't change anything when I try to debug with caching enabled.

But, in the grand scheme of things, this should get me by. I just have to turn off all caching when I am going to debug. That isn't too bad, though that means that I still can't test the speed of cached elements.

Thanks again Emil!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

eZ debug

Timing: Jan 19 2025 09:39:42
Script start
Timing: Jan 19 2025 09:39:42
Module start 'content'
Timing: Jan 19 2025 09:39:43
Module end 'content'
Timing: Jan 19 2025 09:39:43
Script end

Main resources:

Total runtime1.1093 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.9453180.8438
Module start 'content' 0.00800.8569 769.7891585.0313
Module end 'content' 0.86480.2444 1,354.8203341.3828
Script end 1.1092  1,696.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.4358210.0002
Check MTime0.00190.1686210.0001
Mysql Total
Database connection0.00120.112310.0012
Mysqli_queries1.017891.74932000.0051
Looping result0.00250.22501980.0000
Template Total1.076397.020.5381
Template load0.00210.187220.0010
Template processing1.074296.831320.5371
Template load and register function0.00010.008910.0001
states
state_id_array0.00080.071710.0008
state_identifier_array0.00140.127120.0007
Override
Cache load0.00180.1597600.0000
Sytem overhead
Fetch class attribute can translate value0.00140.129230.0005
Fetch class attribute name0.00130.117570.0002
XML
Image XML parsing0.00140.125030.0005
class_abstraction
Instantiating content class attribute0.00000.0022100.0000
General
dbfile0.00270.2435330.0001
String conversion0.00000.000730.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/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: 34
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs