I think the problem I posted bellow is cause by the debug javascript toolbar. because I was calling the action with frontent_dev.php/member/test
But this still does not explain why I am getting the same error when I turn on the caching for the production environment. Do you need any information from me to debug this. Sorry if I am not helpful enough :( Kupo Fabien POTENCIER wrote: > Where and how do you include the Javascript helper? > > Kiril Angov wrote: > >> I have enabled the cache on one of my frontends where I am testing only >> the caching and as I mentioned it works fine. I am cashing certain >> actions only. And the problem does not exist if I cache with the layout >> - only if I set the layout caching to false, this problem happens. >> >> Also if it helps, I get the same error message if I use return >> sfView::NONE in my controller. For example: >> >> public function execureTest() >> { >> echo "test"; >> return sfView::NONE; >> } >> >> Then I will get in the browser: >> >> test >> *Fatal error*: Call to undefined function content_tag() in >> */usr/local/pear/symfony/helper/JavascriptHelper.php* on line *700* >> >> Thanks for taking the time, >> Kupo >> >> Fabien POTENCIER wrote: >> >>> It looks like the TagHelper is not loaded in your case. This is weird >>> because this helper is loaded by default by symfony. Can you tell us a >>> bit more about your cache usage. >>> >>> Fabien >>> >>> Kiril Angov wrote: >>> >>> >>>> Hello list, >>>> >>>> my time came to ask for help :) >>>> >>>> I just enabled caching for the first time in my application and when >>>> testing the caching in a different controller (frontend_staging.php), >>>> everything is as expected. I turn on caching on the production >>>> controller and php dies with: >>>> >>>> [Sun Jun 03 06:28:12 2007] [error] [client 127.0.0.1] PHP Fatal error: >>>> Call to undefined function: content_tag() in >>>> /usr/local/pear/symfony/helper/JavascriptHelper.php on line 700, >>>> referer: http://www.mydomain.com/ >>>> >>>> The two controllers have the same settings in settings.yml apart from >>>> the staging controller has: >>>> >>>> web_debug: on >>>> error_reporting: 4095 >>>> >>>> Now, what do I do ;) >>>> >>>> Thanks, >>>> Kiril >>>> >>>> >>>> >>>> >>> >>> >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---