Fork me on GitHub

Upgrading to 1.1.0 > modulestylesheet plugin > needs removed????  Bottom

  • I get this message You can safely remove the modulestylesheet plugin from your theme. every page in the Admin module. I cannot find the modulestylesheet in the theme I'm using. I have several themes in the themes folder?
  • Check also this topic: http://community.zikula.org/module-Forum-viewtopic-topic-55780-start-0.htm Also posted recently icon_wink

    In your theme templates (I dont know which one you are using) there is a reference(s) to the modulestylesheet plugin. Not hte plugin itself but the call to the plug is in your theme. You can remove that line from your templates.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • I found a few of these and removed:

    Code

    <!--[modulestylesheet]-->


    However I found the below. What can I do to safely remove the modulestylesheet?

    Code

    <!--[if $pagetype eq 'admin']-->
    <!--[modulestylesheet stylesheet=admin.css modname=admin]-->
    <!--[/if]-->
    /flashdetect.js">
    <style type="text/css">form { display: inline }</style>


    Thx...
  • You should be able to remove everything before the "flashdetect.js" line in the snippet you provided.

    --
    Chris Stevens, CEO
    OpenTaxi Systems LLC
    866.OPENTAXI
    www.opentaxi.com
    On-Demand Air Taxi Reservations Platform, Flight Reservations, Consulting.
  • Thanks...
  • I was getting the message too after upgrade from 7.64, but none of the themes in 1.1.0 have any reference to modulestylesheet. Looked further and found this in system/Blocks/pnblocks/menu.php

    // add the stylesheet to the header
    if (isset($vars['stylesheet'])) {
    load the modulestylesheet plugin to determine the stylesheet path
    require_once $pnRender->_get_plugin_filepath('function','modulestylesheet');
    $GLOBALS['additional_header'][] = smarty_function_modulestylesheet(array('XHTML' => true, 'modname' => 'Blocks', 'stylesheet' => $vars['stylesheet'].'.css'), $pnRender);
    }

    commented out the whole conditional statement and alert disappeared. No resulting problems apparent yet.

    Warren
  • Warren- I think that is another known culprit. Good job!
  • Yup, the old menu does have a code call to the modulestylesheet as well. We found that one as well during upgrade of zikula.nl to 1.1 icon_wink
    There were some more modules that had modulestylestheet still in the code, but can't remember which ones exactly ATM.

    edit, these ones at least have a call to modulestylesheet.
    Mediashare
    pnForum



    edited by: espaan, Jan 06, 2009 - 01:31 AM

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Quote

    I was getting the message too after upgrade from 7.64, but none of the themes in 1.1.0 have any reference to modulestylesheet. Looked further and found this in system/Blocks/pnblocks/menu.php

    Quote

    Yup, the old menu does have a code call to the modulestylesheet as well. We found that one as well during upgrade of zikula.nl to 1.1
    And we did not report this one in a ticket, because it was already fixed in the current 1.1.1-dev tree. That's why zikula.nl also got a minor update ;)

    Quote

    commented out the whole conditional statement and alert disappeared. No resulting problems apparent yet.
    So you could choose to replace it with this code.

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • icon_biggrin Nice

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • espaan


    edit, these ones at least have a call to modulestylesheet.
    Mediashare
    pnForum


    Downloads 2.3 does as well.
  • Actually, it turns out it wasn't anything in Downloads at all. I had two block positions called modulecenter and moduleright that were causing the problem and throwing the error message. I renamed those block positions, and the message went away.



    edited by: ToonDawg, Jan 31, 2009 - 03:52 AM
  • I had fixed this alert by taking out two calls in my master.html theme. When I added a menu-block it suddenly appeared again. Deleted the block, so it´s ok.

This list is based on users active over the last 60 minutes.