PDA

View Full Version : ERROR include PHP in template


justoverclock
11-04-2010, 10:40 AM
hi all, i have some problem, i need to include an external php file in my template (called Justwhite)

i've create this plugin

ob_start();
include('inclusion/inclusion.php');
$includedphp = ob_get_contents();
ob_end_clean();
vB_Template: preRegister('ad_global_below_navbar',array('includ e dphp ' => $includedphp));


but i get an error??

Fatal error: Call to a member function query_first_slave() on a non-object in /forum/includes/class_bootstrap.php on line 894


why?

--------------- Added 1288872351 at 1288872351 ---------------

there's no way to include a simple php in my template?

i get always the same error, i've try many plugin, it's impossible……….simple inclusion…………..

Lynne
11-04-2010, 01:45 PM
Do a search on something like "ob_start();" because this has been covered numerous times.

justoverclock
11-04-2010, 03:58 PM
not understand, i'm not english....

there is any way to fix this error and make a simple include?

Retal
11-07-2010, 01:11 PM
Start here
https://vborg.vbsupport.ru/showthread.php?t=171149