• Hi Team,

    In my wordpress localsetup site, the css files, js files are not loading. I am getting 500 error in the console.
    Attached some messages from the console.
    Kindly help me.

    Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    elementor-logo.png:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    editor.min.css:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    musketeers_small.png:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    ngp-multisite-events.js:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    ngp-multisite-model.js:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    ngp-multisite-actions.js:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    svgs-admin-notice-update-min.js:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    notice.min.js:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    (index):77 Uncaught TypeError: $(...).maxSubmit is not a function
        at HTMLDocument.<anonymous> ((index):77)
        at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.8.2:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.8.2:2)
        at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.8.2:2)
        at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.8.2:2)

    Regards,
    Monisha

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    The 500 errors are probably “red herrings” (misleading clues of no importance). The true issue is Uncaught TypeError: $(...).maxSubmit is not a function. There’s inline code on the page that’s executing before the related function declaration gets processed. Likely an issue of improper dependency specification, if not a plain old coding error.

    Narrow down the source of the erroneous code by switching to a default twenty* theme and deactivating all plugins. The error should go away. Restore your theme, then plugins, one at time, checking for errors after each. When the errors return, the last activated is the cause. I recommend seeking further assistance through the dedicated support channel of the responsible module.

    Thread Starter monishakrishnan

    (@monishakrishnan)

    Hi @bcworkz
    Thank you for your response. I have resolved the maxSubmit function error and tried to use 20’s theme. But still getting 500 error.

    GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/assets/css/acf-global.css?ver=5.6.0 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:42 GET http://localhost/wp-content/plugins/svg-support/css/svgs-admin-edit-post.css?ver=4.8.2 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:43 GET http://localhost/wp-content/themes/ngp/assets/library/tooltipster/css/tooltipster.bundle.css?ver=4.8.2 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:44 GET http://localhost/wp-content/themes/ngp/assets/library/tooltipster/css/plugins/tooltipster/sideTip/themes/tooltipster-sideTip-punk.min.css?ver=4.8.2 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:45 GET http://localhost/wp-content/plugins/amazon-s3-and-cloudfront/assets/css/notice.css?ver=1.1.6 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:46 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/assets/css/acf-input.css?ver=5.6.0 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:47 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/pro/assets/css/acf-pro-input.css?ver=5.6.0 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:48 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.min.css?ver=4.0 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:49 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/assets/inc/datepicker/jquery-ui.min.css?ver=1.11.4 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:50 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.min.css?ver=1.6.1 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:66 GET http://localhost/wp-content/plugins/post-duplicator/assets/js/pd-admin.js?ver=2.20 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:67 GET http://localhost/wp-content/plugins/wp-max-submit-protect/js/jquery-maxsubmit/jquery.maxsubmit.js?ver=1.1.2 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:68 GET http://localhost/wp-content/plugins/ngp-multisite/assets/js/multisite/ngp-multisite-base.js?ver=1.1 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:69 GET http://localhost/wp-content/themes/ngp/assets/library/tooltipster/js/tooltipster.bundle.min.js?ver=3.2.6 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:70 GET http://localhost/wp-content/themes/ngp/assets/library/tooltipster/tooltipster-scripts.js?ver=1.0.1 net::ERR_ABORTED 500 (Internal Server Error)
    load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable,jquery-u&load[]=i-datepicker&ver=4.8.2:9 JQMIGRATE: Migrate is installed, version 1.4.1
    post-new.php?post_type=page:71 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.min.js?ver=5.6.0 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:72 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.min.js?ver=5.6.0 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:73 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.min.js?ver=4.0 net::ERR_ABORTED 500 (Internal Server Error)
    post-new.php?post_type=page:74 GET http://localhost/wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.min.js?ver=1.6.1 net::ERR_ABORTED 500 (Internal Server Error)

    Regards,
    Monisha

    Moderator bcworkz

    (@bcworkz)

    Those are requests external to WP. If you requested http://localhost/wp-content/themes/ngp/assets/library/tooltipster/tooltipster-scripts.js for example from your browser address bar and still get a 500 error, the issue lies in your local server, not WP itself.

    Thread Starter monishakrishnan

    (@monishakrishnan)

    Hi @bcworkz

    Thank you. Can you please tell me why it is giving 500 in my local server?
    Do i need to check with any other ports or is there any reason for this?

    Moderator bcworkz

    (@bcworkz)

    Requesting that tooltipster-scripts.js file resulted in a 500 response? There’s something wrong with the local server configuration. 500 errors aren’t specific, many things could cause it. One common reason is erroneous .httaccess syntax. Try renaming the file as a test. Under a different name, WP permalinks will fail, but you could at least get the home page if the error was in the file.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Js, CSS files not loading’ is closed to new replies.