Jump to content
chamois_blanc

Cloning section results in javascript error

Recommended Posts

chamois_blanc

I am trying to clone a container on a page. It throws the following javascript error:

                function l(b, c, e, f) {
                    var g = m.a.f.get(b, p);
                    if (!c) {
                        if (g)
                            throw Error("You cannot apply bindings multiple times to the same element.");
                        m.a.f.set(b, p, !0)
                    }

I would appreciate guidance and a fix. Thank you

Share this post


Link to post
Share on other sites
chamois_blanc

Here is the stack trace:

common.js?ver=71d95a:formatted:3151
Uncaught Error: You cannot apply bindings multiple times to the same element.
    l @ common.js?ver=71d95a:formatted:3151
    j @ common.js?ver=71d95a:formatted:3119
    m.ub @ common.js?ver=71d95a:formatted:3313
    applySectionBinds @ site.js?ver=71d95a:1
    bindNewSection @ site.js?ver=71d95a:1
    updateCloneData @ editing.js?ver=71d95a:1
    (anonymous function) @ editing.js?ver=71d95a:1
    each @ jquery.js?ver=1.12.4:1
    each @ jquery.js?ver=1.12.4:1
    updateCloneData @ editing.js?ver=71d95a:1
    control_clone @ editing.js?ver=71d95a:1
    (anonymous function) @ editing.js?ver=71d95a:1
    dispatch @ jquery.js?ver=1.12.4:1
    r.handle @ jquery.js?ver=1.12.4:1

 

Share this post


Link to post
Share on other sites
Simon

Not seeing that issue here, your going to have to provide a little more info, like whats in the container and what plugins you have installed, or better yet open a ticket and provide a login so I can see it for myself.

 

Share this post


Link to post
Share on other sites
chamois_blanc

Do I use "Contact Support" to open a ticket?

Share this post


Link to post
Share on other sites
Simon

OK thanks, was able to reproduce.

Seems to be an issue with nested containers.

We'll look into it further.

Share this post


Link to post
Share on other sites
chamois_blanc

Is there a workaround till you can fix this issue?

Share this post


Link to post
Share on other sites
Simon

The only workaround until we can find a fix is to not nest too many containers.

Share this post


Link to post
Share on other sites
chamois_blanc

When do you plan to fix this important issue? thank you

Share this post


Link to post
Share on other sites
Simon

A fix is in the works as you can see by this screenshot ive managed to clone containers 8 levels deep, insane, but proof of concept.

It may be one line of code but it needs to be tested before release.

Screen Shot 2016-08-18 at 18.13.32.png

Share this post


Link to post
Share on other sites
chamois_blanc

Can't wait for the fix! This is impeding the development of my website. I have big sections with multiple containers that I need to duplicate before I modify them. I am surprised this issue was not uncovered earlier. I'll take the fix whenever it's ready and tested :)

Share this post


Link to post
Share on other sites
chamois_blanc

I also got this error while trying to copy/paste a section data. Not sure if it's linked, or if it's a separate issue.

jquery.js?ver=1.12.4:2
   GET http://swinginatthesavoy.com/home-2017/?pagename=home-2017&pl_start=yes&ifr…2%3A1%2C%22special_classes%22%3A%22section-title%20fix%22%7D%7D&needsave=1
   403 (Forbidden)
   attr @ jquery.js?ver=1.12.4:2
   a.attr @ jquery-migrate.min.js?ver=1.4.1:2
   Y @ jquery.js?ver=1.12.4:1
   attr @ jquery.js?ver=1.12.4:2
   a.fn.(anonymous function) @ common.js?ver=740ba6:1
   reloadFrame @ editing.js?ver=740ba6:1
   (anonymous function) @ editing.js?ver=740ba6:1
   dispatch @ jquery.js?ver=1.12.4:1
   r.handle @ jquery.js?ver=1.12.4:1

Here is the section data:

{"clone":"uotinb3","object":"PL_Text_Section","content":[],"settings":{"text":"<div id=\"guests\" class=\"navmenu-anchor\"><br></div><div><a href=\"#guests\" rel=\"m_PageScroll2id\" class=\"betty-noir-font section-title-a\">SPECIAL GUESTS</a><br></div>","padding_top":"0","margin_top":"0","saved":1,"special_classes":"section-title fix"}}

 

Edited by chamois_blanc (see edit history)

Share this post


Link to post
Share on other sites
Simon

No it is completely unrelated, a server security setting is stopping the paste section to work.

403 (Forbidden)

Share this post


Link to post
Share on other sites
chamois_blanc

Oh I see, that's probably due an iThemes Security setting, thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • IDdigital
      By IDdigital+
      Hi,
      A site of ours irregularly does not finish loading. The page in question is https://rw360.org/grievance-process/
      In Safari, I'll occasionally get the following error:
      [Error] TypeError: undefined is not an object (evaluating 'a.plModel.init')
          (anonymous function) (site.js:5:91)
          i (jquery.js:2:27455)
          add (jquery.js:2:27750)
          ready (jquery.js:2:29819)
          (anonymous function) (site.js:5)
          Global Code (site.js:5:3421)
      This seems to be a bug in PageLines as far as I can tell. Any suggestions or a fix coming?
      Thanks,
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using a plugin called Speed Booster Pack to speed up the load time of michaelkummer.com. One of the plugin settings, Minimize HTML and JavaScript causes an error that I only get with Pagelines. With other themes, such as WordPress' Twenty Seventeen, I do not get that error.
      I have reproduced the problem on my staging site and if you look at the JavaScript console, you will see the following error:
      SyntaxError: Unexpected end of script
      Any clue what PageLines may be doing differently to be contributing to this issue? I contacted the plugin developer and they, of course, pointed me to the theme developer
      Thanks
      Michael
    • flourishdesignstudio
      By flourishdesignstudio+
      Hello,
      We are working on a site and the customers are complaining that the site loads too slowly. They contacted their host who mentioned that the Java Script is all loading at the beginning. Is it possible to delay the load of the less important Java Script until after the initial load to speed up the site? The goal is to load the page faster by minimizing the initial javascript calls.
      Are there any preferred plugins that you would recommend or does this end up causing excessive problems with plugins, etc.?
      Thanks for the help!
    • Jeremiah
      By Jeremiah+
      Error: editing.js?ver=930684:5 Uncaught TypeError: Cannot read property 'getData' of undefined
      I have all of the plugins disabled and I still receive the error.
      Page Editor will not load on page.
       
    • oseehys
      By oseehys+
      Can someone give me a breakthrough out here?
      I have been on the media player for like 5 hours now yet it is still not displaying on my media box or the textbox,
      its a free media player on soundclound
      Great day ahead to the developers out here...
      am trying to install the Toneden media player https://www.toneden.io/player to display my songs on sound cloud, i followed everything on the doc, but obviuosly am missing something i did everything i can for 5 hours yet no breakthrough, am using the textbox as display.
      This is the html script i used, what am i missing here? see it below
        (function() { var script = document.createElement('script') script.type = 'text/javascript'; script.async = true; script.src = 'http://sd.toneden.io/production/toneden.loader.js' var entry = document.getElementsByTagName('script')[0]; entry.parentNode.insertBefore(script, entry); }()); ToneDenReady = window.ToneDenReady || []; ToneDenReady.push(function() { ToneDen.player.create({''enter code here'' dom: '#player', urls: [''https://soundcloud.com/reginaspektor'' ] }); });
×