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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Newsletter Modules (install problem)


Go to End


2 Posts   1494 Views

Avatar
vivilanco

Community Member, 19 Posts

29 January 2010 at 11:37pm

Hi all.

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

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

Avatar
vivilanco

Community Member, 19 Posts

30 January 2010 at 12:34am

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.