Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Subsites Modules - Problems + Bugs ... and how i overcame them (so far)

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 4351 Views
  • ulysses
    Avatar
    Community Member
    57 Posts

    Re: Subsites Modules - Problems + Bugs ... and how i overcame them (so far) Link to this post

    Hi Silverseba,

    Ran this again. Now the first time I run the db/build I got the website error but the second time the db/build went successfully. The subsites tab is now visible but when I click on i t, it reports another error.

    [Warning] file_get_contents(/home/kidsmc/domains/kidsmusiccompany.com/public_html/cms/javascript/tinymce.template.js) [function.file-get-contents]: failed to open stream: No such file or directory
    GET /admin/subsites/

    Line 472 in /home/kidsmc/domains/kidsmusiccompany.com/public_html/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(/home/kidsmc/domains/kidsmusiccompany.com/public_html/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 113 of Controller.php
    * Controller->handleRequest(HTTPRequest)
    Line 277 of Director.php
    * Director::handleRequest(HTTPRequest,Session)
    Line 121 of Director.php
    * Director::direct(/admin/subsites/)
    Line 118 of main.php

    Turned the DEV mode off and the error is not displayed.

  • silverseba
    Avatar
    Community Member
    26 Posts

    Re: Subsites Modules - Problems + Bugs ... and how i overcame them (so far) Link to this post

    As the installation seems to work (the Subsites tables are installed obviously) this error may result from your cache.
    Logout from the admin area, clear your browser-cache, restart your browser and call the admin area again. In previous versions of silverstripe that helped me a lot.

  • ulysses
    Avatar
    Community Member
    57 Posts

    Re: Subsites Modules - Problems + Bugs ... and how i overcame them (so far) Link to this post

    Thanks for the support. I have now defined 2 subsites and trying to get it configured.

    The Subsite virtual page does not work. The drop down to choose a page to link to comes up with a fatal error as follows:

    Fatal error: Call to undefined method TreeDropdownField::tree() in /home/kidmusiccompany.com/public_html/subsites/code/SubsitesTreeDropdownField.php on line 34

    Any suggestions? Has anyone got this fatal error fixed?

    Has anyone got a copy of a working Subsite v0.1?

  • Iain_vdw
    Avatar
    Community Member
    22 Posts

    Re: Subsites Modules - Problems + Bugs ... and how i overcame them (so far) Link to this post

    Hi there,

    I've got a semi working copy of the subsites module.

    I managed to install SS 2.3.6 with genericdataadmin and subsites, the subsites tab is visible in the CMS and i can add subdomains. However, once I want to publish a newly added page in a subdomain, the CMS hangs on "publishing". After refreshing the page isn't published and/or saved.

    Can anyone help me with this issue?

  • honeybunny
    Avatar
    Community Member
    79 Posts

    Re: Subsites Modules - Problems + Bugs ... and how i overcame them (so far) Link to this post

    @Iain-vdw - I'm still using 2.3.5 but am having the same problem with subsites just hanging when I try to save or publish a new page. Did you ever find the answer?

    HB

  • christian.b
    Avatar
    Community Member
    8 Posts

    Re: Subsites Modules - Problems + Bugs ... and how i overcame them (so far) Link to this post

    Since your SilverStripe version is in between and I had the same problem at first, maybe this forum entry helps: Successful installation of Subsites module on SS 2.3.0 (2.3.7 seems feasible)

    4351 Views
Page: 1 2
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.