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.

All other Modules /

Discuss all other Modules here.

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

Getting the newsletter to display right


Go to End


974 Views

Avatar
Graphicator

Community Member, 62 Posts

12 June 2010 at 9:42pm

Hello. I've commented on the main support page for Newsletter, stating that in order to get to change the backend area of Newsletter, I had to change some conditional statements from the code.

On a testing installation of Silverstripe.... I switched wherever I saw Database::USE... to DB::USE.... and then the newsletter worked fine with no javascript parse error anywhere.

On second thought, I am wondering if DB:: is originally included in the Silverstripe API, or I could've placed any letters XX:: where Database:: was.

using 2.4 Silverstripe with Newsletter .4

The newsletter works fine until someone fills the subscription page out.
Then they see the following error, and the page still displays:

This page contains the following errors:
--------------------------------------------------
error on line 170 at column 7: Opening and ending tag mismatch: br line 0 and div
Below is a rendering of the page up to the first error.
-------------------------------------------------

Attached Files