• Resolved levdesign

    (@levdesign)


    I’m using the Send Emails with Mandrill plugin (version 1.1) on WordPress 4.9.8.

    I’m getting several 404 errors on the developer console related to the plugin (as shown below). Are you familiar with the cause of these errors and do you have any suggestions for fixing them?

    Thank you.
    ————————————————————————————–

    GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/css/mandrill.css?ver=4.9.8 net::ERR_ABORTED 404
    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:9 JQMIGRATE: Migrate is installed, version 1.4.1
    (index):553 GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/js/flot/jquery.flot.stack.js net::ERR_ABORTED 404
    (index):552 GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/js/flot/jquery.flot.js net::ERR_ABORTED 404
    (index):1482 GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/js/mandrill.js net::ERR_ABORTED 404
    (index):554 GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/js/flot/jquery.flot.resize.js net::ERR_ABORTED 404
    (index):553 GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/js/flot/jquery.flot.stack.js net::ERR_ABORTED 404
    (index):554 GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/js/flot/jquery.flot.resize.js 404
    (index):1482 GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/js/mandrill.js 404
    (index):606 Uncaught TypeError: jQuery.plot is not a function
    at HTMLDocument.<anonymous> ((index):606)
    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:2)
    at Object.add [as done] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:2)
    at n.fn.init.n.fn.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:2)
    at a.fn.init.n.fn.init (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:2)
    at new a.fn.init (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:9)
    at n (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:2)
    at HTMLDocument.<anonymous> ((index):601)
    at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:3)
    at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,jquery-u&load[]=i-resizable,jquery-ui-button,jquery-ui-dialog&ver=4.9.8:3)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter levdesign

    (@levdesign)

    In my previous error report, I noticed I’ve copied some extra lines from the console error log, so please ignore the lines after:
    (index):1482 GET https://….org/wp-content/plugins/send-emails-with-mandrill/lib/js/mandrill.js 404

    Plugin Contributor Cornel Raiu

    (@cornelraiu-1)

    Hi. I am doing a pull request on the github repo for the plugin.
    In the meanwhile, you can go in the plugin folder /lib/wpMandrill.class.php

    And replace:

    – line 143 with:
    wp_register_script('flot', SEWM_URL . 'js/flot/jquery.flot.js', array('jquery'), null, true);

    – line 144 with:
    wp_register_script('flotstack', SEWM_URL . 'js/flot/jquery.flot.stack.js', array('flot'), null, true);

    -line 145 with:
    wp_register_script('flotresize', SEWM_URL . 'js/flot/jquery.flot.resize.js', array('flot'), null, true);

    -line 153 with:
    wp_register_style( 'mandrill_stylesheet', SEWM_URL . 'css/mandrill.css' );

    – line 155 with:
    wp_register_script('mandrill', SEWM_URL . 'js/mandrill.js', array(), null, true);

    Instead of using the plugins_url() function to get the URL path to the files, you should use the constant variable SEWM_URL that is defined in the wpmandrill.php file in the root of the plugin .

    • This reply was modified 5 years, 11 months ago by Cornel Raiu.
    Plugin Contributor Cornel Raiu

    (@cornelraiu-1)

    Just saw that there are some more paths that need to be fixed. Let me know if you’d like me to send you the whole list of changes

    @cornel,
    Any chance you can send me the fixed files?

    Any updates on this getting fixed in the plugin? We are experiencing the same issue and would prefer the fix be implemented by the plugin developer instead of doing it ourselves and risk the changes being overwritten the next time an update is released.

    Plugin Author Matt Miller

    (@millermedianow)

    Hi there, sorry! We have not been receiving e-mail alerts from this support forum. We are working on updating the plugin and will get pull requests reviewed and merged promptly. Thanks for the patience everyone!

    Plugin Author Matt Miller

    (@millermedianow)

    The pull request has just been merged in, thanks for the contribution. We are working on a few more updates and will submit a new version to the WP Repository shortly.

    Plugin Author Matt Miller

    (@millermedianow)

    This has been merged and updated in the latest version. Thanks for the contributions!

    FYI @cornelraiu-1 I have added you as a contributor to the plugin based on your pull request.

    And for everyone in this thread, if you haven’t yet, can you please give us a nice rating so we can start ranking higher in the search results. We want to make this open-source contribution more visible to the community so we can continue to improve it. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Plugin causing 404 errors’ is closed to new replies.