AlexandrosD / Ask

Joomla component to integrate functionality like Y!Answers or Quora
http://alexd.mplofa.com/index.php/ask-questions/
9 stars 1 forks source link

PHP Error Message #26

Closed Marco494 closed 12 years ago

Marco494 commented 12 years ago

Fatal error: Access level to AskModelQuestion::$item must be protected (as in class JModelItem) or weaker in /home/a7403145/public_html/components/com_ask/models/question.php on line 17

Currently using Joomla 2.5

AlexandrosD commented 12 years ago

the component requires some minor changes in order to be compatible with joomla 2.5

mfriedrichs commented 12 years ago

For now, it seems to work if you disable the two private declarations. //private $id; //private $item; I am not sure but i guess it declares it than "on the run" if it doesnt happens there. For a reason i dont know, Joomla dont like this declaration without a specified type. Maybe a solution until a makeover ? Btw, thanks for this free stuff. Nice work ;)

AlexandrosD commented 12 years ago

actually the best solution is to change the scope from 'private' to 'protected'. I am aware of this issue and the fix, however I've not included this modification yet