Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » forum error

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1322 Views
  • introvert
    Avatar
    Community Member
    2 Posts

    forum error Link to this post

    Hello.

    I downloaded and install the module forum. After I added it to my website and publish the default General Discussion topic I get the following error when I go to my website and click on this topic:

    XML Parsing Error: junk after document element
    Location: http://silverstripe/general-discussion/
    Line Number 2, Column 1:<b>Notice</b>: Controller::currentController() is deprecated. Use Controller::curr() instead. in <b>C:\www\vhosts\silverstripe\sapphire\core\control\Controller.php</b>; on line <b>367</b><br />

    Any idea what is going on?

  • marcin
    Avatar
    Community Member
    5 Posts

    Re: forum error Link to this post

    Hi,

    Open /forum/code/Forum.php and replace line 155 with:

    $controller = Controller::curr();

    instead of:

    $controller = Controller::currentController();

    and it works fine.

    Marcin

  • bebabeba
    Avatar
    Community Member
    192 Posts

    Re: forum error Link to this post

    I have your same problem and I found solution to download latest version here:
    http://dailybuilds.silverstripe.com/modules-tarballs/

    1322 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.