Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » contact form problem

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: 3625 Views
  • ckim
    Avatar
    Community Member
    18 Posts

    contact form problem Link to this post

    I am evaluating SilverStripe as a part of OSCOM case study.

    After changing a page into contact form, I can't add fields on the form. It just does not budge. It sayz "Error: There has been an error".

    How do you find more meaningful error message? I looked at log/error on apache

    2.0/Deb/PHP5.0/Mysql5/Apache2 - Everything works OK.

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: contact form problem Link to this post

    You're probably in "test"/"live"-mode - try to set the following in <yourproject>/_config.php:
    Director::set_environment_type("dev");

    Errors in test-mode are normally piped to you by email, please set
    Debug::sendLiveErrorsTo("your@email.com");

    I've just written up some more info on this: http://doc.silverstripe.com/doku.php?id=debug

  • ckim
    Avatar
    Community Member
    18 Posts

    Re: contact form problem Link to this post

    wee

    ERROR:Error 512: No form ({Session::get('CMSMain.currentPage')}) returned by CMSMain->EditForm At l90 in /var/www/silver/sapphire/core/control/Controller.php user_error(No form ({Session::get('CMSMain.currentPage')}) returned by CMSMain->EditForm,512) user_error at line 90 of Controller.php Controller->run(Array) run at line 48 of Director.php Director->direct(admin/) direct at line 90 of main.php

    Ajax problem? How do you read this?

    Director to editform but there is a session problem? Lost

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: contact form problem Link to this post

    hm looks like the db-relations are fried - can you reproduce the problem with a clean new database?

  • ckim
    Avatar
    Community Member
    18 Posts

    Re: contact form problem Link to this post

    No, it did the same thing with fresh and new database. There seems to be $form missing somewhere?

    Following form tutorial does not work at the moment with 2.0 tar.gz version!

    Hmm, next?

  • ckim
    Avatar
    Community Member
    18 Posts

    Re: contact form problem Link to this post

    This is fixed.

    Closed

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: contact form problem Link to this post

    What did you do to fix? Something at your end, or upgrade to more recent version SilverStripe?

  • muser
    Avatar
    Community Member
    1 Post

    Re: contact form problem Link to this post

    I get the same error on the CMS Newsletter section... When I want to add a recipient prompts a javascript alert message with the text "Error: There has been an error"

    2.1.1 Version.

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