cybernet Posted November 9, 2010 Share Posted November 9, 2010 what's wrong in this line $tpl->set('main_content',set_block($heading,'center',$err_tpl->fetch(load_template('error.tpl')))); Link to comment https://forums.phpfreaks.com/topic/218231-call-to-a-member-function-set-on-a-non-object/ Share on other sites More sharing options...
ManiacDan Posted November 9, 2010 Share Posted November 9, 2010 $tpl is not an object. There's nothing wrong with THAT line, but some EARLIER line failed to set $tpl properly. The error message pretty much says what I just said. -Dan Link to comment https://forums.phpfreaks.com/topic/218231-call-to-a-member-function-set-on-a-non-object/#findComment-1132367 Share on other sites More sharing options...
cybernet Posted November 9, 2010 Author Share Posted November 9, 2010 thanks i will try to find the line that sets $tpl have a great day, cybernet Link to comment https://forums.phpfreaks.com/topic/218231-call-to-a-member-function-set-on-a-non-object/#findComment-1132370 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.