php - Zend Framwork crashed when newrelic was enabled -


i created new zf1 application (1.12.0) zf tool this:

zf create project test

i enabled layout follow:

zf enable layout

and when enabled newrelic got error:

php error: uncaught exception 'zend_layout_exception' message 'invalid method 'getmodulename' called on layout action helper' /usr/local/zend/share/zendframework/library/zend/layout/controller/action/helper/layout.php : 184 

the way in new relic names zend transactions hook zend_controller_plugin_broker::routeshutdown() , @ various methods in single argument that function receives, request. parameter supposed class has several methods: getmodulename(), getcontrollername(), , getactionname(). php agent expects able call of functions on request.

if have highly customized zend framework installation, may need resort naming transaction manually. in case, in php ini file set newrelic.framework = "none" , @ appropriate place in router, call newrelic_name_transaction(). may able avoid determining why request object not have standard functions.

one possible reason may occur because have incomplete overloaded plugin router.

more information on api call others can found in new relic kb:

https://newrelic.com/docs/php/new-relic-for-php


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -