5 Replies Latest reply: Sep 18, 2014 6:16 PM by Digital Fuel Web RSS

    Bc Editable region edit mode-icecube

    Marco_ALEX Community Member

      Hi everyone,

       

      I am trying to add a editable region to a template on bc , the code bellow:

       

      <section><!-- TemplateBeginEditable name="ContentArea" -->

                <div  ice:editable="*">{tag_pagecontent}</div>

              <!-- TemplateEndEditable --> </section>


      But wen i cick edit on the admin panel the icecube window just shows up the preloader and nothing else happends, see the image bellow

      icecube.png

       

      The console has this errors:

      Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened. /AdminConsoleXT/#icecube/:1

      Failed to load resource: the server responded with a status of 404 (Not Found) http://9haus.businesscatalyst.com/CatalystScripts/beditor/3rdparty/redactor/lang/pt.js?vs= b2373.r432117&vs=b2373.r432117

      Uncaught Error: Load timeout for modules: order!/CatalystScripts/beditor/3rdparty/redactor/lang/pt.js?vs=b2373.r432117 /CatalystScripts/beditor/3rdparty/redactor/lang/pt.js?vs=b2373.r432117

      http://requirejs.org/docs/errors.html#timeout

       

      I think i know what it is, i think its the :"<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>"

      But how do i make this, i need the above code for the image slider on the index.html page and for the nav menu to work properly.

       

       

      I tried to write to adobe and thy said:

      Hi Marco,

        Thank you for contacting us.

        I tried to launch the in-context editor and it launched just fine: http://prntscr.com/4hpn50

        I am using Google Chrome. You can try removing any extension that is installed in the browser and then check.

        Regards,
        Gaurav Aggarwal

       

       

       

      Wen i checked out my template today i think this guy who made the screen shot removed the  https and put an http on the <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> tag.

      and thats how he took the screenshot whithout the slider displaying the images.

      But I tried on everybrowser and nothing loads.

        • 1. Re: Bc Editable region edit mode-icecube
          Gary Swanepoel | ITB Community Member

          Hi Marco,

           

          There are three things you need to fix first.

           

          Firstly, remove the protocol from all your in page scripts and styles, this will load either http: if you're on the website or https: if you're on the worldsecuresytems site and avoid any cross domain policy issues.

          <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

           

          Secondly, you're using the old editor code. Although it is backwards compatible, you should be using the new code

          New Content Editor for Business Catalyst users


          Thirdly:

          Remove any reference to absolute domains, because you won't be able to navigate to them in ICE because of the cross domain policy. I'm not going to into this in detail, because it's a pretty major bug, which I don't know when will be fixed. You'll need to find another approach to handle this.

          <li><a href="http://9haus.businesscatalyst.com/OrderRetrievev2.aspx?CatalogueID=298259">Shooping cart</a></li> If you're editing on this domain you won't be able to navigate to the other, and vice-versa

          <li><a href="https://9haus.worldsecuresystems.com/LogOutProcess.aspx">SIGN OUT</a></li>

          Change to

          <li><a href="/OrderRetrievev2.aspx?CatalogueID=298259">Shooping cart</a></li>

          <li><a href="/LogOutProcess.aspx">SIGN OUT</a></li>


          Do that first then we can look at which script is preventing ICE from loading.


          I also can see this line, in your code, and I don't think it should be there, so just check your templates to see it's not been manually placed in. BC will automatically load the files it needs.

          <script src="/includes/ice/ice.js" type="text/javascript"></script>


          • 2. Re: Bc Editable region edit mode-icecube
            Marco_ALEX Community Member

            Hi gary,

            thank you for the reply,

             

            I tried to remove all the http protocols and still nothing,  I have the Beta features upgrade content editor checked and in those new beta features forums it says that dreamweaver creates that <script src="/includes/ice/ice.js" type="text/javascript"></script> wen we place a incontest editing region, but wen i uploaded to the server i didnt see that  script and, i just upload the includes folder and still the same.


            Its giving me this error on the console:

            GET http://9haus.businesscatalyst.com/CatalystScripts/beditor/3rdparty/redactor/lang/pt.js?vs= b2373.r432117&vs=b2373.r432117  require.js?vs=b2373.r432117:1783

            req.addScriptToDom            require.js?vs=b2373.r432117:1783

            req.attach                             require.js?vs=b2373.r432117:1915

            req.load                                require.js?vs=b2373.r432117:1648

            resume                                  require.js?vs=b2373.r432117:1177

            context.completeLoad         re quire.js?vs=b2373.r432117:1446

            req.onScriptLoad                      require.js?vs=b2373.r432117:1815

            nrWrapper                          (index):13

            Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.

            OmnitureMbox.js?vs=b2373.r432117:352



            I wrote to adobe again and they say the same thing:

            "Hi Macro,

              I tried again and the in-context editor works just fine. Please try removing/disabling the extensions installed on the browsers as it seems to be local issue.

              For the console error, can you please provide us a screenshot as we need to look into this.

              Regards,
              Gaurav Aggarwal "

             

            01.png

            02.png

            I use the Kaspersky antivirus, is it that whats causing this issues?

            • 3. Re: Bc Editable region edit mode-icecube
              Digital Fuel Web Community Member

              I have the same issues. It works for my old sites all browsers but not for a new foundation site all browsers.

               

              Any help would be great.

              • 4. Re: Bc Editable region edit mode-icecube
                Gary | ITB Community Member

                Hi Marco,

                 

                Your next step is comment out all your JS scripts. Then check whether ICE runs.

                 

                If it runs then you've isolated the cause to one of your scripts. You'll need to do a process of elimination and add each of them in one by one.

                 

                If it still doesn't run then create a blank page with no template with a simple editable div in it. <div ice:editable="line">this should work</div>

                 

                If ICE DOESN'T run you've isolated it to your browser, so try another browser and see if it works.

                 

                If ICE DOES run, go back to your template and check whether you've got any {module_contentholder} tags in your head, especially inside a script tag.

                 

                when you do this

                <script>

                {module_contentholder,name="contenholder"}

                </script>

                ICE will convert it to something like

                <script>

                   <!-- erstart1234-->your content holder content<!--erend1234-->

                </script>

                which breaks the page and in some cases prevents ICE from continuing.

                • 5. Re: Bc Editable region edit mode-icecube
                  Digital Fuel Web Community Member

                  Solved thanks Gary

                   

                  <!--<img id="logo" alt="logo" src="/_assets/img/logo.png" />--> In context editor does not like /> commented out all the other comments are fine just this one causing all the problems.

                   

                  Change it to this and its fine.

                  <!--<img id="logo" alt="logo" src="/_assets/img/logo.png"></img>-->

                   

                  Seems a bit temperamental to me.