Jump to:

10842 Posts in 2513 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Newsletter Modules (install problem)

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 991 Views
  • vivilanco
    Avatar
    Community Member
    19 Posts

    Newsletter Modules (install problem) Link to this post

    Hi all.

    First of all, thanks to SS and i love it to bits

    I am having some "issues" with the Newsletter install.

    I copy the folder to the root directory:

    C:\wamp\www\silverstripe-HCA

    i rename the folder to "newsletter"

    i visit http://localhost/silverstripe-HCA/dev/build

    it all installs ok, but when im in the admin menu and click on the "newsletter" tab it loads but i get:

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

    Line 472 in C:\wamp\www\silverstripe-HCA\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);

    Trace

    * file_get_contents(C:/wamp/www/silverstripe-HCA/cms/javascript/tinymce.template.js)
    Line 472 of Requirements.php
    * Requirements_Backend->javascriptTemplate(cms/javascript/tinymce.template.js,Array,)
    Line 133 of Requirements.php
    * Requirements::javascriptTemplate(cms/javascript/tinymce.template.js,Array)
    Line 73 of NewsletterAdmin.php
    * NewsletterAdmin->init()
    Line 110 of Controller.php
    * Controller->handleRequest(HTTPRequest)
    Line 277 of Director.php
    * Director::handleRequest(HTTPRequest,Session)
    Line 121 of Director.php
    * Director::direct(/admin/newsletter/)
    Line 118 of main.php

    any one got any idea / help if pos?

    thanks

  • vivilanco
    Avatar
    Community Member
    19 Posts

    Re: Newsletter Modules (install problem) Link to this post

    update - have copied the trunk (modules_newsletter_trunk-r97797.zip) files over the stable (newsletter0.1) and it appears to work. dont know if it will as its still a localhost but the admin page now works.

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