1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

[Solved] require.js error on site with YT UIkit based moreno template

Discussion in 'Community' started by BodgeIT, Sep 5, 2014.

  1. BodgeIT

    BodgeIT Member

    Level: Community
    Error: Mismatched anonymous define() module: function (){ "use strict"; return getStyleProperty} http: //requirejs.org/docs/errors.html#mismatch

    Shows up on a list view, on one form but not another.

    Not sure how to fix, so if you could point me in the right direction.

    I also get this but I think it's unrelated:
    The stylesheet /yoo_moreno/html/com_fabrik/list/tgtg_comments/template_css.php?c=5_mod_fabrik_list_110&buttoncount=1 was not loaded because its MIME type, "text/html", is not "text/css".
     
  2. BodgeIT

    BodgeIT Member

    Level: Community
    The only scripts to be loaded after require.js are:
    Code (Text):
    <script type="text/javascript">
    Calendar._DN = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]; Calendar._SDN = ["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"]; Calendar._FD = 0; Calendar._MN = ["January","February","March","April","May","June","July","August","September","October","November","December"]; Calendar._SMN = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]; Calendar._TT = {"INFO":"About the Calendar","ABOUT":"DHTML Date\/Time Selector\n(c) dynarch.com 2002-2005 \/ Author: Mihai Bazon\nFor latest version visit: http:\/\/www.dynarch.com\/projects\/calendar\/\nDistributed under GNU LGPL.  See http:\/\/gnu.org\/licenses\/lgpl.html for details.\n\nDate selection:\n- Use the \u00ab and \u00bb buttons to select year\n- Use the < and > buttons to select month\n- Hold mouse button on any of the above buttons for faster selection.","ABOUT_TIME":"\n\nTime selection:\n- Click on any of the time parts to increase it\n- or Shift-click to decrease it\n- or click and drag for faster selection.","PREV_YEAR":"Click to move to the previous year. Click and hold for a list of years.","PREV_MONTH":"Click to move to the previous month. Click and hold for a list of the months.","GO_TODAY":"Go to today","NEXT_MONTH":"Click to move to the next month. Click and hold for a list of the months.","SEL_DATE":"Select a date.","DRAG_TO_MOVE":"Drag to move","PART_TODAY":" Today ","DAY_FIRST":"Display %s first","WEEKEND":"0,6","CLOSE":"Close","TODAY":"Today","TIME_PART":"(Shift-)Click or Drag to change the value.","DEF_DATE_FORMAT":"%Y-%m-%d","TT_DATE_FORMAT":"%a, %b %e","WK":"wk","TIME":"Time:"};
    var emailProtector=emailProtector||{};emailProtector.addCloakedMailto=function(f,g){var a=document.getElementById(f);if(a){for(var e=a.getElementsByTagName("span"),b="",c="",d=0,h=e.length;d<h;d++)b+=e[d].getAttribute("data-ep-a3273"),c=e[d].getAttribute("data-ep-be2fd")+c;a.innerHTML=b+c;g&&(a.parentNode.href="mailto:"+b+c)}};
    </script>
    and
    Code (Text):
      <script type="text/javascript">
        (function() {
          var strings = {"COM_FABRIK_LOADING":"Loading","COM_FABRIK_PREV":"Prev","COM_FABRIK_SELECT_ROWS_FOR_DELETION":"Select some rows for deletion","JYES":"Yes","JNO":"No","COM_FABRIK_SELECT_COLUMNS_TO_EXPORT":"Select columns to export","COM_FABRIK_INCLUDE_FILTERS":"Include filters:","COM_FABRIK_INCLUDE_DATA":"Include data:","COM_FABRIK_INCLUDE_RAW_DATA":"Include raw data:","COM_FABRIK_INCLUDE_CALCULATIONS":"Include calculations","COM_FABRIK_EXPORT":"Export","COM_FABRIK_START":"Start","COM_FABRIK_NEXT":"Next","COM_FABRIK_END":"End","COM_FABRIK_PAGE":"COM_FABRIK_PAGE","COM_FABRIK_OF":"COM_FABRIK_OF","COM_FABRIK_RECORDS":"records","COM_FABRIK_SAVING_TO":"saving to","COM_FABRIK_CONFIRM_DROP":"Do you really want to delete all records and reset this tables key to 0?","COM_FABRIK_CONFIRM_DELETE_1":"Are you sure you want to delete this record?","COM_FABRIK_NO_RECORDS":"No records found","COM_FABRIK_CSV_COMPLETE":"CSV export complete","COM_FABRIK_CSV_DOWNLOAD_HERE":"Download here","COM_FABRIK_CONFIRM_DELETE":"Are you sure you want to delete %s records?","COM_FABRIK_CSV_DOWNLOADING":"CSV file downloading","COM_FABRIK_FILE_TYPE":"File type","COM_FABRIK_ADVANCED_SEARCH":"Advanced search","COM_FABRIK_FORM_FIELDS":"Form fields","COM_FABRIK_VIEW":"View","COM_FABRIK_LIST_SHORTCUTS_ADD":"a","COM_FABRIK_LIST_SHORTCUTS_EDIT":"e","COM_FABRIK_LIST_SHORTCUTS_DELETE":"d","COM_FABRIK_LIST_SHORTCUTS_FILTER":"f"};
          if (typeof Joomla == 'undefined') {
            Joomla = {};
            Joomla.JText = strings;
          }
          else {
            Joomla.JText.load(strings);
          }
        })();
      </script>
    I don't have a Calendar item on any page, so not sure where the first one comes from, the second one is obviously Fabrik.
     
  3. BodgeIT

    BodgeIT Member

    Level: Community
    The require.js issue was caused by masonry.js loaded by YooTheme template.

    Not sure about the template_css.php. It wasn't doing much, so I stopped it being loaded in one of the fabrik template files.
     

Share This Page