10390 Posts in 2201 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1555 Views |
-
Poll Module + SS 2.3.3 problem - tinymce.template.js

25 November 2009 at 2:43pm
I've just installed the Poll module(latest trunk) and the genericdataadmin module(which is required for Polls) but I'm getting the following error when I fire up the Admin panel:
[Warning] file_get_contents(/var/www/dev00/cms/javascript/tinymce.template.js) [function.file-get-contents]: failed to open stream: No such file or directory
GET /admin/polls/Line 472 in /var/www/dev00/sapphire/core/Requirements.php
Source463
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(/var/www/dev00/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 101 of GenericDataAdmin.php
* GenericDataAdmin->init()
Line 32 of PollPage.php
* PollPage->init()
Line 113 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/admin/polls/)
Line 118 of main.phpFrom a bit of searching I realise that tinymce.template.js has been removed from 2.3.3 but I'm not sure what changes I need to make to the code to reflect this in the Polls module.
Any help appreciated
Tama
-
Re: Poll Module + SS 2.3.3 problem - tinymce.template.js

25 November 2009 at 3:03pm
Sussed it - just used the latest trunk of genericdataadmin: http://www.silverstripe.org/generic-data-admin-module/
| 1555 Views | ||
|
Page:
1
|
Go to Top |

