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   3662 Views

Avatar
ckim

Community Member, 18 Posts

25 March 2007 at 3:45pm

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

Forum Moderator, 801 Posts

25 March 2007 at 4:55pm

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

Community Member, 18 Posts

26 March 2007 at 2:48am

Edited: 26/03/2007 1:34pm

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

Forum Moderator, 801 Posts

26 March 2007 at 2:16pm

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

Avatar
ckim

Community Member, 18 Posts

27 March 2007 at 2:32am

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

Community Member, 18 Posts

8 April 2007 at 5:58am

This is fixed.

Closed

Avatar
Sigurd

Forum Moderator, 628 Posts

8 April 2007 at 9:29am

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

Avatar
muser

Community Member, 1 Post

23 May 2008 at 10:28pm

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.