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.

Archive

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

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

contact form problem


Reply

8 Posts   3645 Views

Avatar
ckim

25 March 2007 at 3:45pm Community Member, 18 Posts

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.

Avatar
Ingo

25 March 2007 at 4:55pm Forum Moderator, 801 Posts

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

Avatar
ckim

26 March 2007 at 2:48am (Last edited: 26 March 2007 1:34pm), Community Member, 18 Posts

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

Avatar
Ingo

26 March 2007 at 2:16pm Forum Moderator, 801 Posts

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

Avatar
ckim

27 March 2007 at 2:32am Community Member, 18 Posts

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?

Avatar
ckim

8 April 2007 at 5:58am Community Member, 18 Posts

This is fixed.

Closed

Avatar
Sigurd

8 April 2007 at 9:29am Forum Moderator, 628 Posts

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

Avatar
muser

23 May 2008 at 10:28pm Community Member, 1 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.