Thomas Varghese Thomas Varghese Thomas Varghese Thomas Varghese Thomas Maliackal

forex trading logo


 Support Forum :: ccBoard - Bugs/Security Issues
Welcome Guest   [Register]  [Login]
 Subject :PHP notice.. 2010-02-03 03:30:07 
sam
Fresher
Joined: 2010-02-03 10:26:42
Posts: 4
Location

 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

IP Logged
 Subject :Re:PHP notice.. 2010-02-03 07:33:44 
sam
Fresher
Joined: 2010-02-03 10:26:42
Posts: 4
Location
Just noticed it happens when "Show Captcha" is set to "Guest Only" ...
Adding $user = &JFactory::getUser(); at the top of the "display" method seems to correct the problem.
IP Logged
 Subject :Re:PHP notice.. 2010-02-17 23:24:57 
neeraj123
Fresher
Joined: 2010-02-18 05:25:01
Posts: 5
Location

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?

Thanks a lot.

 

IP Logged


Power Steering Rack
 Subject :Re:PHP notice.. 2010-03-04 04:16:03 
khennessy
Fresher
Joined: 2009-10-07 12:52:49
Posts: 2
Location: Ireland

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?

 

IP Logged
 Subject :Re:PHP notice.. 2010-03-11 06:47:27 
sam
Fresher
Joined: 2010-02-03 10:26:42
Posts: 4
Location

Hi,

maybe too late to answer but yes it is this file (where the notices come from) .

Regards

IP Logged
Page # 


Powered by ccBoard



Latest News

Latest Posts

More...


Popular Posts


Powered by Joomla!. Designed by: Joomla Template, url. Valid XHTML and CSS.

© 2008-2009 CODECLASSIC.ORG. All Rights Reserved.

) { echo