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>