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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

From 2.3.1 to 2.3.2 error on NewsLetter Module

Go to End

6 Posts   2252 Views


Forum Moderator, 435 Posts

24 June 2009 at 1:42am

In admin area, after upgrade, I've this error:

[Warning] file_get_contents(C:/xampp/htdocs/ss/cms/javascript/tinymce.template.js) [function.file-get-contents]: failed to open stream: No such file or directory
GET /ss/admin/newsletter/

Line 472 in C:\xampp\htdocs\ss\sapphire\core\Requirements.php

464 }
466 /**
467 * Load the given javascript template with the page.
468 * @param file The template file to load.
469 * @param vars The array of variables to load. These variables are loaded via string search & replace.
470 */
471 function javascriptTemplate($file, $vars, $uniquenessID = null) {
472 $script = file_get_contents(Director::getAbsFile($file));
473 foreach($vars as $k => $v) {
474 $search[] = '$' . $k;
475 $replace[] = str_replace("\\'","'", Convert::raw2js($v));
476 }
477 $script = str_replace($search, $replace, $script);
478 $this->customScript($script, $uniquenessID);


Forum Moderator, 435 Posts

24 June 2009 at 1:44am

In 2.3.2 version, file tinymce.template.js is missing.
I've copied from 2.3.1


Administrator, 690 Posts

24 June 2009 at 1:08pm

Edited: 24/06/2009 1:09pm

I believe that the trunk version of the newlsetter module will work without that modification, but your fix should be okay for your need.

FYI: The tinymce.template.js file wasn't forgotten, it was intentionally removed.


Forum Moderator, 435 Posts

24 June 2009 at 8:52pm

No...without that file, don't work. If I remove it, I have error again..


Forum Moderator, 1391 Posts

25 June 2009 at 11:25pm

Which version of the newsletter module are you using?

This error comes with the 'stable' version. The 'unstable' trunk version no longer has this problem - and should be stable enough for production, according to Sam in this post


Forum Moderator, 435 Posts

27 June 2009 at 1:07am

Oh... I'm using stabe branch... but I can not to use unstable version in production... If unstable > stable then you can promote unstable to stable version ... -:)))))