Title: Bug Loading JS file
Last modified: September 1, 2016

---

# Bug Loading JS file

 *  Resolved [Brian DiChiara](https://wordpress.org/support/users/briandichiara/)
 * (@briandichiara)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/bug-loading-js-file/)
 * There is a 404 error in my Developer Console looking for ud-dismiss.js:
    [http://3cd.co/1B0V1m2W0j1G](http://3cd.co/1B0V1m2W0j1G)
 * It’s due to this line:
    $s = str_replace( wp_normalize_path( ABSPATH ), ”, get_stylesheet_directory());
   found in the Utility class here: /wp-stateless/vendor/usabilitydynamics/lib-wp-
   bootstrap/lib/classes/class-utility.php Line 71.
 * It doesn’t support the theme directory being in a different folder from the WordPress
   directory. In my case, it’s trying to do a string replace with:
    /wp/ in the 
   string: /site/themes/my-theme/, which doesn’t exist.
 * I noticed this when editing a post in the WordPress Admin, however the error 
   seems to load on all screens of the WP Admin.
 * [https://wordpress.org/plugins/wp-stateless/](https://wordpress.org/plugins/wp-stateless/)

Viewing 1 replies (of 1 total)

 *  [Elena](https://wordpress.org/support/users/lena60942/)
 * (@lena60942)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/bug-loading-js-file/#post-8464348)
 * Hey Brian,
 * If this problem is still valid, could you please send me the details directly:
   [https://www.usabilitydynamics.com/contact-us](https://www.usabilitydynamics.com/contact-us)

Viewing 1 replies (of 1 total)

The topic ‘Bug Loading JS file’ is closed to new replies.

 * ![](https://ps.w.org/wp-stateless/assets/icon.svg?rev=1715943)
 * [WP-Stateless - Google Cloud Storage](https://wordpress.org/plugins/wp-stateless/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stateless/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stateless/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stateless/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stateless/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stateless/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Elena](https://wordpress.org/support/users/lena60942/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/bug-loading-js-file/#post-8464348)
 * Status: resolved