Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] ppc_navigation_aid
Hey Kusor,
Under Gamma 1.18 this plugin gives me the following error:
8: Undefined variable: title in /tmp/pluginsi0zXxi at line 39
Backtrace:
<b>Fatal error</b>: Call to undefined function: debug_backtrace() in <b>/homepages/25/d89689749/htdocs/txp/textpattern/lib/txplib_misc.php</b> on line <b>94</b>
Any ideas? I’m going to look into it now.
Ram.
Last edited by ramanan (2004-04-11 16:59:21)
Offline
Re: [plugin] [ORPHAN] ppc_navigation_aid
Try commenting out the set_error_handler line at the top of /lib/txplib_misc.php
text*
Offline
Re: [plugin] [ORPHAN] ppc_navigation_aid
Dean, that was the problem. Thanks for the quick response.
Offline
Re: [plugin] [ORPHAN] ppc_navigation_aid
Since TXP works fine for PHP versions older than 4.3 – I’ve got it working properly on a PHP 4.2.2 production environment – seems logical to enclose that call to debug_backtrace in an if sentence, like
if(function_exists("debug_backtrace")){ ... }
I think that isn’t too complex to maintain compatibility with 4.2 versions, until a new TXP cool feature needs to break it.
Anyway, I’m going to check for defined, non empty variables for all plugins I develop from now. Hope a new revision of the plugin today.
Pedro Palazón
http://kusor.net http://kusor.com
Offline
Re: [plugin] [ORPHAN] ppc_navigation_aid
True enough: that call to debug_backtrace is just something I use for dev – it shouldn’t have made it to release.
text*
Offline
Re: [plugin] [ORPHAN] ppc_navigation_aid
Thank you for this plugin
man-d
Offline