Title: admin.js and admin.css 403 forbidden
Last modified: August 21, 2016

---

# admin.js and admin.css 403 forbidden

 *  Resolved [Fencer04](https://wordpress.org/support/users/fencer04/)
 * (@fencer04)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/)
 * After installing I now get a message in FireBug that says it receieves a 403 
   Forbidden message when trying to access the admin.css and admin.js files from
   the WP-Edit plugin.
 * [https://wordpress.org/plugins/wp-edit/](https://wordpress.org/plugins/wp-edit/)

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

 *  Thread Starter [Fencer04](https://wordpress.org/support/users/fencer04/)
 * (@fencer04)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862238)
 * I just noticed that there is an extra slash in there. They are both listed like
   this:
 * > [DOMAIN]/wp-content/plugins/wp-edit**//**js/admin.js?ver=3.9
   >  [DOMAIN]/wp-content/
   > plugins/wp-edit**//**css/admin.css?ver=3.9
 * If I put one slash there it works just fine.
 *  Thread Starter [Fencer04](https://wordpress.org/support/users/fencer04/)
 * (@fencer04)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862246)
 * Ok, after further review I think this is a bug in how they are loaded. Accord
   to the Codex for the plugin_fir_url function ([http://codex.wordpress.org/Function_Reference/plugin_dir_url](http://codex.wordpress.org/Function_Reference/plugin_dir_url))
   its return includes the traling slash and in the code below on line 221 of main.
   php there is another slash added.
 * `wp_register_script( 'wp_edit_js', plugin_dir_url( __FILE__ ) . '/js/admin.js',
   array() );`
 * the correct replacement doesn’t have the slash in front of the js
 * `wp_register_script( 'wp_edit_js', plugin_dir_url( __FILE__ ) . 'js/admin.js',
   array() );`
 * Line 237 loads the CSS and should not have the slash in front of the css
 * `wp_register_style('wp_edit_css', plugin_dir_url( __FILE__ ) . ('css/admin.css'),
   array());`
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862363)
 * Did this just change? How have people been using it successfully thus far? Weird…
 * I’ll look into it immediately. Thank you VERY much.
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862364)
 * You were absolutely 100% correct. Thank you VERY much.
 * I have given you credit in both my free and pro versions of the changelog. I’ve
   used your member profile link here on WP.org. Please let me know if you have 
   a more preferred link you’d like me to use.
 * This fix will be included in the next plugin update (version 1.8).
 * THANKS!
 *  Thread Starter [Fencer04](https://wordpress.org/support/users/fencer04/)
 * (@fencer04)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862365)
 * I installed this on other servers and just checked. The double slash is still
   there but it works on those servers. The server that the other sites I wrote 
   about this morning are on is older and on a different flavor of Linux so maybe
   that has something to do with it.
 *  Thread Starter [Fencer04](https://wordpress.org/support/users/fencer04/)
 * (@fencer04)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862367)
 * Thank you, that is much appreciated.
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862368)
 * VERY good catch 🙂
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862369)
 * > Thank you, that is much appreciated.
 * Please… the least I could do. I mean, find the issue, research the cause, implement
   a resolution, test… and then just let me know what line number I need to change…
   sounds like my kind of preferred user 😉

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

The topic ‘admin.js and admin.css 403 forbidden’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-edit_ffffff.svg)
 * [WP Edit](https://wordpress.org/plugins/wp-edit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-edit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-edit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-edit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-edit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-edit/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/adminjs-and-admincss-403-forbidden/#post-4862369)
 * Status: resolved