Missing api-script.js possibly causing my website admin pages to hang
-
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.jsThe 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.
- You must be logged in to reply to this topic.