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.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

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

From 2.3.1 to 2.3.2 error on NewsLetter Module


Reply

6 Posts   1885 Views

Avatar
biapar

24 June 2009 at 1:42am Forum Moderator, 435 Posts

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
Source

463       
464    }
465    
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);

Avatar
biapar

24 June 2009 at 1:44am Forum Moderator, 435 Posts

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

Avatar
Sam

24 June 2009 at 1:08pm (Last edited: 24 June 2009 1:09pm), Administrator, 679 Posts

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.

Avatar
biapar

24 June 2009 at 8:52pm Forum Moderator, 435 Posts

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

Avatar
martimiz

25 June 2009 at 11:25pm Forum Moderator, 1091 Posts

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 [url=http://www.silverstripe.org/all-other-modules/show/263172]in this post[/url]

Avatar
biapar

27 June 2009 at 1:07am Forum Moderator, 435 Posts

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 ... -:)))))