Quote:
Originally Posted by Lynne
Try this for preregistering:
Code:
vB_Template::preRegister('header', array('templatevalues' => $templatevalues));
And did you already define $templatevalues as an array somewhere?
|
I added that line but it didn't fix the problem. And I haven't definre $templatevalues as an array anywhere.
Quote:
Originally Posted by Lynne
Also, is it *any* template you render via a plugin on that site that causes issues, or just this one? If it is any template, then I would suspect something like mod_security or suhosin to be the problem. Have you run diagnostics > problematic webserver modules?
|
Nope... just this plugin. And our host said that mod_security was blocking it but they whitelist it for us.
Problematic Webserver pops up with No to "Module Loaded" and "AJAX Unicode Issue".
--------------- Added [DATE]1311209342[/DATE] at [TIME]1311209342[/TIME] ---------------
Just a minor update. When I add your code:
Code:
vB_Template::preRegister('header', array('templatevalues' => $templatevalues));
This is the error I get:
Fatal error: Call to a member function render() on a non-object in /home/fpaul46/public_html/forum/includes/class_core.php(4257) : eval()'d code on line 2