Support » Plugin: Version Control for jQuery » 404 jquery resource

  • Resolved nessex

    (@nessex)


    I recently deactivated the plugin and my localhost is now unable to load the original jquery script that wp was using prior to activating the plugin. Any suggestions?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Leander Iversen

    (@leanderiversen)

    Hi,

    I am sorry that you are experiencing this issue! When the plugin is deactivated, it should return the site to its original state.

    Is jQuery being enqueued, but giving a 404 error, or is it not being enqueued at all?

    Thank you,
    Leander

    Thread Starter nessex

    (@nessex)

    JQuery is being enqueued but is giving a 404 error. I thought maybe it was because I was using a child theme so I moved the js files that I knew were being affected into the parent theme, registered & enqueued them in the parent functions.php and tested it to see if that would change anything but it didn’t. Have you had this issue reported before?

    I started looking at the code, and I am not a wp plugin developer so please forgive me if this is naive, but in this function it deregisters jQuery Core,
    `public function set_core_version() {
    // Check that the user is not viewing the administration panel
    if ( !is_admin() ) {

    // Deregister the standard jQuery Core
    wp_deregister_script( ‘jquery’ );`, I’m wondering where in the code it re-registers it if the plugin is disabled?

    • This reply was modified 6 months ago by nessex.
    Plugin Author Leander Iversen

    (@leanderiversen)

    Hi,

    Thank you for the additional information!

    This type of issue has not been reported before, and I would like to clarify that this plugin uses the default jQuery files that are bundled with WordPress, meaning that these should not be moved. When the plugin is active, the default jQuery is dequeued, then re-enqueued with CDN files.

    Based on the additional information provided, I believe this is an issue not caused by the plugin, and I would suggest to remove the plugin temporarily, as the website will then use jQuery as before the installation of the plugin.

    I hope this helps,
    Leander

    Thread Starter nessex

    (@nessex)

    Unfortunately I have removed the plugin and it did not recognize the the jQuery file bundled with Wp again. I can see that the jQuery file still exists within the wp-includes directory, so I know that the file wasn’t moved.

    • This reply was modified 6 months ago by nessex.
    Plugin Author Leander Iversen

    (@leanderiversen)

    Hi,

    I am sorry that you are experiencing this issue, but I am planning to mark this support request as resolved because of the following:

    – Upon removal of the plugin, it does not affect jQuery or WordPress in any way, as the logic for switching jQuery files is not being run. jQuery will be enqueued by the WordPress Core itself, not by this plugin.

    If you do have any more detailed information about the errors you are getting, including screenshots, then I will be more than happy to look into this for you.

    I hope this is understandable,
    Leander

    Thread Starter nessex

    (@nessex)

    Yes, that is fine. Let me look more into the environment I’m working with and if I need additional help I will send screenshots of the errors I’m getting. Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘404 jquery resource’ is closed to new replies.