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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

How to add a "Subscribe Form" into the another page


Go to End


14 Posts   7898 Views

Avatar
roterl

Community Member, 44 Posts

24 June 2008 at 12:13am

Adding this function does not work. It throw an debug error:

Warning: Cannot modify header information - headers already sent by (output started at /home/atax/www/www/mysite/code/HomePage.php:22) in /home/atax/www/www/sapphire/core/Debug.php on line 151
Error

The website server has not been able to respond to your request.

Also, doesn't moving subscribe form code to Page.php is problematic as it depends on UserDefinedForm with extends page.php ??

thanks for your response,
Rotem.

Avatar
Willr

Forum Moderator, 5523 Posts

24 June 2008 at 10:40am

Error
The website server has not been able to respond to your request.

Is the generic error message. Put the site into Dev mode so you can see the actual error by adding

Director::set_environment_type("dev");
to your mysite/_config file.

Sorry I didnt know you were trying to use a UserDefinedForm for the subscribe form, I figured it would have been hard coded.

Avatar
roterl

Community Member, 44 Posts

24 June 2008 at 5:33pm

attached the error log.

If i understand it right, it seem there is no SubscribeForm() method, I also tried call Form() with same results.
I looked at the "SubscribeForm.php" and there is a function Form() definition there.

thanks,
Rotem.

Avatar
salviadepot

Community Member, 1 Post

25 June 2008 at 12:06pm

interested in this myself, as i'm running into a similar issue

Avatar
roterl

Community Member, 44 Posts

27 June 2008 at 7:21pm

any idea ?

thanks,
Rotem.

Avatar
streetdaddy

32 Posts

4 July 2008 at 6:08pm

+1 looking for a solution here...

Go to Top