Jump to:

1156 Posts in 2568 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » From 2.3.1 to 2.3.2 error on NewsLetter Module

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 1865 Views
  • biapar
    Avatar
    Forum Moderator
    435 Posts

    From 2.3.1 to 2.3.2 error on NewsLetter Module Link to this post

    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);

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: From 2.3.1 to 2.3.2 error on NewsLetter Module Link to this post

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

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: From 2.3.1 to 2.3.2 error on NewsLetter Module Link to this post

    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.

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: From 2.3.1 to 2.3.2 error on NewsLetter Module Link to this post

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

  • martimiz
    Avatar
    Forum Moderator
    1068 Posts

    Re: From 2.3.1 to 2.3.2 error on NewsLetter Module Link to this post

    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

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: From 2.3.1 to 2.3.2 error on NewsLetter Module Link to this post

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

    1865 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.