For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > October 2006 > Error in invoking a plugin - PHP4 vs PHP5









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error in invoking a plugin - PHP4 vs PHP5
William Langshaw

2006-10-30, 7:33 pm

Hello,

I have a plugin "dispCheckbox" which works just fine when run under
PHP5. When I take the exact same codebase and run it under a PHP4
engine, I get the Smarty function not found error:

Fatal error: Smarty error: [in
Navigation/Views/Default/Manager/NavItemForm.tpl line 37]: syntax
error: unrecognized tag 'dispCheckbox' (Smarty_Compiler.class.php,
line 580) in /usr/local/soft/httpd_php4/htdocs/chameleon/Core/Includes/Smarty-2.6.13/libs/Smarty.class.php
on line 1095

Attached is my PHP source. I am NOT doing anything PHP5 specific. This
plugin calls one other plugin ("dispLabel") which also is composed of
PHP4 friendly code.

Any one have any ideas?

Thanks
-William

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com