Jump to:

10854 Posts in 2518 Topics by 1794 members

All other Modules

SilverStripe Forums » All other Modules » Poll Module + SS 2.3.3 problem - tinymce.template.js

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1675 Views
  • Tama
    Avatar
    Community Member
    119 Posts

    Poll Module + SS 2.3.3 problem - tinymce.template.js Link to this post

    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
    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(/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.php

    From 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

  • Tama
    Avatar
    Community Member
    119 Posts

    Re: Poll Module + SS 2.3.3 problem - tinymce.template.js Link to this post

    Sussed it - just used the latest trunk of genericdataadmin: http://www.silverstripe.org/generic-data-admin-module/

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