Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
12 Posts 3502 Views
I'm getting the following message at the top of my forum page:
Notice: Controller::currentController() is deprecated. Use Controller::curr() instead. in /public_html/mysite.com/silverstripe/sapphire/core/control/Controller.php on line 367
Any suggestions on how to get rid of this???
Thank you for your time...
Do you have a script that's using Controller::currentController()? If so, change it to Controller::curr().
Otherwise, it's a low level error, so just turn down your error reporting and wait for SS to update their codebase. That method has been deprecated for only one release.
you just needed to change line 155 of Forum.php to 'Controller::curr()' instead of 'Controller::CurrentController().'
Well, aram's solution fixed part of the problem, but now when you click on an entry within a topic, the page is completely blank. The error log says that the file does not exist, but I've clearly saved and published it from the cms. Anyone have a solution?
Sounds like you are using 0.1 of the forum, this was designed with SilverStripe 2.1 support and is buggy in 2.2 and 2.3. I recommend you download the latest dailybuild from the forum download page
Forgive me for my ignorance, but are you talking about the link underneath the "Latest Build" header in the bottom right hand corner as opposed to using the "Download" link box at the top?
Correct. The next version of the forum (same as this forum) is just about to be released so using the 'Latest Build' is recommended - It should work perfectly with SilverStripe 2.3