I get the following error from a joomla install that I have.
Warning: Creating default object from empty value in /modules/mod_continuous_rss_scrolling/helper.php on line 54
How do I fix this error?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As it turns out, the author missed a very simple fix and general good practice that you should always initialize your object before you try to set a property. The very simple fix for this is simply to add a
new StdClass;call right before the error with the variable it is trying to access.That first line will fix the warning from showing up.
This would also fix the problem in
/components/com_community/models/activities.php on line 387with the following fix.