Hello,
I get several PHP notices on this page : index.php?option=com_ccboard&view=postlist&forum=3&topic=7&Itemid=59
Notice: Undefined variable: user in /www/components/com_ccboard/views/postlist/view.html.php on line 92 Notice: Trying to get property of non-object in /www/components/com_ccboard/views/postlist/view.html.php on line 92
hiiiiiiiiiiiiiiiiiii
I moved my sites from php4 to php5 and now in error_log I get a lot of php notice errors of undefined constants.
1) How can I define a constant in php? 2) How can I set error_log not to log these errors?
Hi Sam
an you confim where you placed
Adding $user = &JFactory::getUser();
"at the top of the "display" method seems to correct the problem"
Was this in view.html.php?
Hi,
maybe too late to answer but yes it is this file (where the notices come from) .
Regards
More...
Powered by Joomla!. Designed by: Joomla Template, url. Valid XHTML and CSS.
© 2008-2009 CODECLASSIC.ORG. All Rights Reserved.