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

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


Reply

14 Posts   6599 Views

Avatar
roterl

24 June 2008 at 12:13am Community Member, 44 Posts

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

24 June 2008 at 10:40am Forum Moderator, 5511 Posts

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

24 June 2008 at 5:33pm Community Member, 44 Posts

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

25 June 2008 at 12:06pm Community Member, 1 Post

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

Avatar
roterl

27 June 2008 at 7:21pm Community Member, 44 Posts

any idea ?

thanks,
Rotem.

Avatar
streetdaddy

4 July 2008 at 6:08pm 32 Posts

+1 looking for a solution here...