Closed unfinishedCode closed 8 years ago
Do you get any javascript errors in the console?
Yes, they are: ReferenceError: jQuery is not defined...wp-admin/load-scripts.php:10:25 TypeError: wp.media is undefined...wp-content/plugins/multiple-post/thumbnails/js/media-modal.js:9:3 TypeError: wp.media is undefined...wp-admin/load-scripts.php:386:4795
I'm guessing it's the middle one, as that is the only file loaded by your plugin, the other two are loaded by Wordpress. Just a guess though. Thanks for your time and help.
Do you see requests in the network panel for those js files? If so, are they giving 200 or 404 or 500 or...? And if they are 404ing, what are the paths? It may be the path detection isn't working.
The first gives a 200, the second a 304, and the third a 200.
The ReferenceError: jQuery is not defined...wp-admin/load-scripts.php:10:25
part seems like something may be unregistering/unqueuing jQuery. If you disable all other plugins, do you still see the same error? Also, have you forced+refresh to clear your browser cache or tested on other browsers? Finally, what version of the plugin and WordPress are you using?
Yes I have cleared my browser's cache. I have tested by disabling all other plugins. I actively use the latest Firefox, running on the latest OSX, but have also tried testing in the latest Chrome. The issue still persists.
I solved it! I think anyways. I had jquery being deregistered on the admin in my functions file. It was a leftover snippet, from a previous application I built. This will teach my to test my theme first. Thanks for your time! I really appreciate it.
I've used this plugin in the past, it worked great! Unfortunately, it isn't functioning as expected. When I click the add second featured image link, the current edit screen is just refreshed, the media lightbox does not open.