Missing api-script.js possibly causing my website admin pages to hang

[ad_1]

I’ve been using the Free ‘Accessibility by UserWay’ version plugin for years in my website,
The current version installed is the latest 2.5.2.

I am having an issue while im logged in my website and browsing through any wp-admin page.
While logged in any wp-admin page the browser Console developer tools shows:

JQMIGRATE: Migrate is installed, version 3.4.1: load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.6.1:5
Failed to load resource: the server responded with a status of 404 () api-script.js:1
Refused to execute script from 'https://mywebsite/wp-content/plugins/userway-accessibility-widget/includes/api-script.js?ver=1.0' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

I already searched inside the plugin’s folder in my website installation and wasn’t able to locate the physical ‘api-script.js‘ file in the alleged path:
\wp-content\plugins\userway-accessibility-widget\includes\api-script.js

The biggest issue is that I started noticing that many times the admin pages started to hang for quite some time, and im assuming that trying to load that ‘api-script.js‘ that doesn’t physically exist may be causing this delay in loading the admin pages.

However I did find inside the file ‘\wp-content\plugins\userway-accessibility-widget\includes\notifications.php‘, the following code from line 23:

function usw_userway_enqueue_script() {
// Enqueue the JavaScript file with dependencies on jQuery and any other scripts
wp_enqueue_script('api-script', plugin_dir_url(FILE) . 'api-script.js', array('jquery'), '1.0', true);
}
add_action('admin_enqueue_scripts', 'usw_userway_enqueue_script');

So im assuming either the ‘api-script.js‘ file is missing in the plugin install/update package, or the code that enqueues the script in the notifications.php isn’t supposed to be there, or I happen to have a corrupted installation.

I’d be glad if you guys could help me clarify this issue, Many Thanks in advance.

  • This topic was modified 4 hours, 37 minutes ago by davidacq.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer