Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Warning/error email for unpublished pages

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: 1964 Views
  • Decisive Flow
    Avatar
    Community Member
    73 Posts

    Warning/error email for unpublished pages Link to this post

    I'm getting a bunch of warning and error messages from pages that are unpublished. The emails says:

    Warning: No form ({Session::get('CMSMain.currentPage')}) returned by ErrorPage_Controller->PageComments.PostCommentForm
    At line 90 in /sites/planhq/www/sapphire/core/control/Controller.php

    and

    Error: Object::__call() Method 'postcomment' not found in class 'ErrorPage_Controller'
    At line 104 in /sites/planhq/www/sapphire/core/Object.php

    Obviously it's something to do with commenting, but I have no idea why it is happening - we're getting hundreds of emails

    Help!

  • Andy
    Avatar
    230 Posts

    Re: Warning/error email for unpublished pages Link to this post

    We had the same problem on our site a while back, it's due to spam bots trying to post comments on pages without page comments. This has been fixed for 2.0.2, upgrading to the rc (or waiting for a few days till 2.0.2 is out) should fix the problem.

  • Decisive Flow
    Avatar
    Community Member
    73 Posts

    Re: Warning/error email for unpublished pages Link to this post

    awesome! thanks!

  • Decisive Flow
    Avatar
    Community Member
    73 Posts

    Re: Warning/error email for unpublished pages Link to this post

    I have just deleted all these items and they are still getting warnings. Is there any way to stop this? Shouldn't they be gone?

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Warning/error email for unpublished pages Link to this post

    Have you removed the page from both draft and live site?

  • Andy
    Avatar
    230 Posts

    Re: Warning/error email for unpublished pages Link to this post

    Removing the pages probably won't help, as the error is caused by bots posting comments on nonexistant pages. The only way to solve the problem is to update.

  • Decisive Flow
    Avatar
    Community Member
    73 Posts

    Re: Warning/error email for unpublished pages Link to this post

    i just updated the dev site but i cant seem to upload these folders to the live site. It days 'ignored'.

    I think we're almost there... I just had 1000 messages in my inbox this morning.... ;)

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Warning/error email for unpublished pages Link to this post

    This is a warning only applicable to you as you're using our development server without using version control.

    Just press enter when you see that...

    1964 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.