Shortcode Generator does not work
-
– clicked the puzzle piece
– window opens
– I configured the shortcode as desired
– clicked the button
– nothing happens.. window stays open.. no shortcode generated
-
Hello,
It sounds like there is a JS error of some sort on that screen.
Can you post whatever is displayed in the browser console please?Tutorials:
https://developers.google.com/web/tools/chrome-devtools/console/#opening_the_console
https://developer.mozilla.org/en-US/docs/Tools/Browser_Console#Opening_the_Browser_ConsoleThank you!
I am having this issue also – Thanks for any help – Not positive that this is what you need, but my Chrome browser console displayed:
Uncaught TypeError: i is not a constructor
at tinymce.WPWindowManager.tinymce.InlineWindowManager.b.createInstance (plugin.min.js?ver=4603-20170530:1)
at Object.init (tiny_mce_popup.js?ver=4.2.3:56)
at tiny_mce_popup.js?ver=4.2.3:483
shortcode-form.js?ver=4.2.3:28 Uncaught TypeError: Cannot read property ‘add’ of undefined
at shortcode-form.js?ver=4.2.3:28
tc-scripts.min.js?ver=1.3.8:4 Uncaught TypeError: Cannot read property ‘top’ of undefined
at b.(anonymous function)._get_full_height (https://nchomeschoolinfo.com/wp-content/themes/customizr-pro/inc/assets/js/tc-scripts.min.js?ver=1.3.8:4:6541)
at b.(anonymous function)._apply_sticky_footer-
This reply was modified 7 years, 7 months ago by
MeritK.
Thank you very much for the info!
This helped greatly.Turns out WP 4.8 updated the version of tinymce which created a bug with the shortcode form.
I have released a patch now in version 4.2.4 which should fix the issue.
Wonderful thank you – Simple Links is one of my essentials!
The bug seems to have crept in again. Similar to original poster – I’ve clicked on the puzzle piece, set the parameters I want and click generate shortcode – no response. Based on your above instructions the following is the readout from the console:
JQMIGRATE: Migrate is installed, version 1.4.1 plugin.min.js?ver=4603-20170530:1 Uncaught TypeError: i is not a constructor at tinymce.WPWindowManager.tinymce.InlineWindowManager.b.createInstance (plugin.min.js?ver=4603-20170530:1) at Object.init (VM1680 tiny_mce_popup.js?ver=4.2.4:56) at VM1680 tiny_mce_popup.js?ver=4.2.4:483 VM1679 seriesenginefrontend.js?ver=4.8.2:1093 Uncaught TypeError: jQuery(...).mediaelementplayer is not a function at HTMLDocument.<anonymous> (VM1679 seriesenginefrontend.js?ver=4.8.2:1093) at i (VM1677 jquery.js?ver=1.12.4:2) at Object.fireWith [as resolveWith] (VM1677 jquery.js?ver=1.12.4:2) at Function.ready (VM1677 jquery.js?ver=1.12.4:2) at HTMLDocument.K (VM1677 jquery.js?ver=1.12.4:2)
I hope that helps
-
This reply was modified 7 years, 4 months ago by
projector22.
Hello Projector,
It appears there is an error with another plugin or theme. The file causing the error is ‘seriesenginefronend.js’ which I do not recognize.
My guess is this other plugin/theme is breaking all similar forms but if you can track down the offending plugin/theme I will be happy to take a look at it to see if I can make the shortcode work in spite of the error (although I can’t promise anything because it appears to be a generic JS error which is not specific in any way to Simple Links)Mat Lipe
Hi Mat
thanks for your response, I know the plugin in question, its called Series Engine and I use it very regularly on my site. What information can I get you specifically. I very much appreciate you taking the time to make them play nicely together.
I’ll submit this to that plugin’s author also, if its a bug in his code, he will want to know.
Hi Projector,
I looks like this plugin may be a premium plugin, so I do not have access to it to debug. When you talk to that plugins author you may mention that they may send me a copy so I am able to see the code.
Cheers.
Hi Mat
I’ve been chatting with the plugin’s author and have gotten his permission to send the code to you. What would be the best way to do this?
Hello Projector,
If you want to send me your contact info using the form on my website, we can exchange the files through email.I was able to track down a conflict with the template_redirect action. While I don’t recommend using it quite in the way the Series Engine plugin is using it, it was easy enough for me to just patch the Simple Links plugin to execute before it and therefore avoid the conflict. Version 4.2.7 is now available which no longer conflicts
I also uncovered a conflict with the WP media loaders. The Series Engine plugin enqueues the media scripts on every admin page which conflicts with the WP Editor and can open up all sorts of possible issues. I have created a patch below. Please pass it along to the plugin author.
diff --git a/includes/admin/settings.php b/includes/admin/settings.php index 2f93a67..3f10cb7 100644 --- a/includes/admin/settings.php +++ b/includes/admin/settings.php @@ -1,5 +1,7 @@ <?php /* ----- Series Engine - Settings page ----- */ global $wp_version; +wp_enqueue_media(); + if ( $wp_version != null ) { // Verify that user is allowed to access this page if ( current_user_can( 'edit_posts' ) ) { diff --git a/seriesengine_plugin.php b/seriesengine_plugin.php index 747b7ed..6ff0937 100644 --- a/seriesengine_plugin.php +++ b/seriesengine_plugin.php @@ -322,7 +322,6 @@ function enm_seriesengine_options_page() { add_action('admin_enqueue_scripts', 'enm_seriesengine_admin_enqueue'); function enm_seriesengine_admin_enqueue() { - wp_enqueue_media(); // Add stylesheet global $wp_version; if( version_compare( $wp_version, '3.8', '>=') ) {
Same issue here with 4.9.1
Hello Spiros,
Please provide the information requested above.
Thank you
-
This reply was modified 7 years, 7 months ago by
- The topic ‘Shortcode Generator does not work’ is closed to new replies.