Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

457 Posts in 123 Topics by 165 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.

Page: 1
Go to End
Author Topic: From 2.3.1 to 2.3.2 error on NewsLetter Module 842 Views
  • biapar
    avatar
    Community Member
    138 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
    Community Member
    138 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
    649 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
    Community Member
    138 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
    Community Member
    184 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
    Community Member
    138 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 ... - ))))

    842 Views
Page: 1
Go to Top

Currently Online: cardinale

Welcome to our latest member: g6

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

Comments on this website? Please give feedback.