Smartcode Posted April 13, 2008 Share Posted April 13, 2008 Hello phpfreaks users please help me to fix this problem PHP Fatal error: Call to a member function on a non-object in /home/user/public_html/folder/easytemplate.php(1) : eval()'d code on line 92 theis the error line function _vars_callback($matches){ $var = $this->_var_callback($matches); return('<?= '.$var.'?>'); } you can dowload class at this link http://daif.net/easy/down/easytemplate.zip Link to comment https://forums.phpfreaks.com/topic/100898-call-to-a-member-function-on-a-non-object/ Share on other sites More sharing options...
Jenk Posted April 16, 2008 Share Posted April 16, 2008 Too vague a problem to fully assist, but you are calling a function on something that is not an object. Link to comment https://forums.phpfreaks.com/topic/100898-call-to-a-member-function-on-a-non-object/#findComment-518365 Share on other sites More sharing options...
Cobby Posted April 19, 2008 Share Posted April 19, 2008 I think you might be creating a non-terminating loop because you call the function inside the function. <?php function foo($string){ foo($string); die('Will this execute?'); } ?> Link to comment https://forums.phpfreaks.com/topic/100898-call-to-a-member-function-on-a-non-object/#findComment-521051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.