Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
October 10, 2015 at 11:07 am in reply to: Uncaught Error: cannot call methods on sortable prior to initialization #516758
This 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,
MarkusJuly 28, 2015 at 9:59 am in reply to: Bug in config.php makes it impossible to add a custom shortcode folder #479556My first try was:
//set the folder that contains the shortcodes function myplugin_add_shortcode_folder($paths) { $paths = array(dirname(__FILE__) ."/avia-shortcodes/"); return $paths; } add_filter('avia_load_shortcodes', 'myplugin_add_shortcode_folder');I ended up with:
//set the folder that contains the shortcodes function myplugin_add_shortcode_folder($paths) { $paths[] = dirname(__FILE__) . "/avia-shortcodes/"; return $paths; } add_filter('avia_load_shortcodes', 'myplugin_add_shortcode_folder');But thx for the workaround with a lower prio, that should also do the trick.
-
This reply was modified 10 years, 3 months ago by
markusperl.
-
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
