-
AuthorPosts
-
August 5, 2015 at 1:54 pm #483320
Editing *existing* pages created with the advanced layout editor is throwing this error:
Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method ‘toArray’
Stack trace:
m.extend.error @ jquery.js?ver=1.11.2:2
(anonymous function) @ widget.min.js?ver=1.11.4:11
m.extend.each @ jquery.js?ver=1.11.2:2
m.fn.m.each @ jquery.js?ver=1.11.2:2
a.widget.bridge.a.fn.(anonymous function) @ widget.min.js?ver=1.11.4:11
(anonymous function) @ postbox.min.js?ver=4.2.4:1
m.extend.each @ jquery.js?ver=1.11.2:2
m.fn.m.each @ jquery.js?ver=1.11.2:2
postboxes.save_order @ postbox.min.js?ver=4.2.4:1
$.AviaBuilder.place_top @ avia-builder.js?ver=0.8:135
$.AviaBuilder.set_up @ avia-builder.js?ver=0.8:118
$.AviaBuilder @ avia-builder.js?ver=0.8:107
(anonymous function) @ avia-builder.js?ver=0.8:1374m.Callbacks.j @ jquery.js?ver=1.11.2:2
m.Callbacks.k.fireWith @ jquery.js?ver=1.11.2:2
m.extend.ready @ jquery.js?ver=1.11.2:2
J @ jquery.js?ver=1.11.2:2Any ideas?
August 5, 2015 at 7:27 pm #483538Hi neokoenig!
Let’s try the following.
1. Deactivate all plugins.
2. Completely delete Enfold from your WordPress theme directory before downloading + uploading a fresh copy from themeforest.
If your still having trouble after doing the above two steps then send us a WordPress login and we’ll take a look.
Best regards,
ElliottOctober 10, 2015 at 11:07 am #516758This Bug has nothing to do with any plugin, although the bug can be triggered through some plugins which add their own post boxes to the post editor. The bug can also sometimes be triggered by only moving a random postbox within the editor to the top.
This Bug resists in the avia_builder.js:127 place_top function wich calls a save_order function on uninitialised postboxes.
I found no trigger to hook in within the postbox js, so I had to change the linewindow.postboxes.save_order(pagenow);
to:
setTimeout(function() { window.postboxes.save_order(pagenow); }, 100);and now everything works like a charm.
Best,
MarkusOctober 12, 2015 at 8:46 pm #517667Hey!
Thanks for posting your solution markusperl.
Regards,
ElliottSeptember 20, 2016 at 3:21 am #688895Hi all,
I have the same problem and am trying to solve it. Can you tell me:
Where excatly I would find the postbox.js. I am looking at the one in ../wp-admin/js/postbox.js and I can’t see the line: window.postboxes.save_order(pagenow);
Thanks !
September 26, 2016 at 4:34 am #691430Hi,
We are very sorry for the late response. Please update the theme to the latest version, 3.8. The update should fix this particular issue.
Best regards,
IsmaelFebruary 6, 2017 at 8:46 pm #743583I am getting this exact same error years later. This is the stack trace. I hope it is okay to drag this topic up from the dead, but this was the only thing I could find based on what I am seeing. This is causing intermittent issues with the editor screen. Clickable items like “screen options”, “Visual Editor”, “Text Editor” do nothing.
Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method ‘toArray’
at Function.error (https://www.meridianhm.com/wp-includes/js/jquery/jquery.js:2:1814)
at HTMLDivElement.<anonymous> (https://www.meridianhm.com/wp-includes/js/jquery/ui/widget.min.js:11:2115)
at Function.each (https://www.meridianhm.com/wp-includes/js/jquery/jquery.js:2:2881)
at a.fn.init.each (https://www.meridianhm.com/wp-includes/js/jquery/jquery.js:2:846)
at a.fn.init.a.fn.(anonymous function) [as sortable] (https://www.meridianhm.com/wp-includes/js/jquery/ui/widget.min.js:11:1857)
at HTMLDivElement.<anonymous> (https://www.meridianhm.com/wp-admin/js/postbox.min.js:1:3165)
at Function.each (https://www.meridianhm.com/wp-includes/js/jquery/jquery.js:2:2881)
at a.fn.init.each (https://www.meridianhm.com/wp-includes/js/jquery/jquery.js:2:846)
at Object.save_order (https://www.meridianhm.com/wp-admin/js/postbox.min.js:1:3103)
at $.AviaBuilder.place_top (https://www.meridianhm.com/wp-content/themes/meridian/config-templatebuilder/avia-template-builder/assets/js/avia-builder.js:135:34)
error @ jquery.js:2
(anonymous) @ widget.min.js:11
each @ jquery.js:2
each @ jquery.js:2
a.fn.(anonymous function) @ widget.min.js:11
(anonymous) @ postbox.min.js:1
each @ jquery.js:2
each @ jquery.js:2
save_order @ postbox.min.js:1
place_top @ avia-builder.js:135
set_up @ avia-builder.js:118
$.AviaBuilder @ avia-builder.js:107
(anonymous) @ avia-builder.js:1376
i @ jquery.js:2
fireWith @ jquery.js:2
ready @ jquery.js:2
K @ jquery.js:2February 11, 2017 at 8:17 am #745714Hi,
@rvance_meridianhm_com: Do you have the latest version of the theme, 3.8.5? What is the PHP version of the server?Best regards,
IsmaelFebruary 13, 2017 at 4:37 pm #746498Ismael,
Thank you for the response. I have 3.8.5 installed. I am using php 5.6.30.
February 15, 2017 at 5:54 am #747266Hey!
Thank you for the update. Please post the login details here so that we can check the dashboard. Is it working if you deactivate the plugins? Also, make sure to purge or delete any cache created by the plugin or by the server.
Best regards,
IsmaelMarch 5, 2018 at 7:18 am #921316markusperl’s solution worked for me. replaced the one line in avia-builder.js as described.
a client has an older site that i don’t want to be updating everything so it was great to do this temporary fix.
March 5, 2018 at 8:13 am #921343 -
AuthorPosts
- You must be logged in to reply to this topic.