Title: 404 error for css file
Last modified: October 4, 2018

---

# 404 error for css file

 *  Resolved [svaults](https://wordpress.org/support/users/svaults/)
 * (@svaults)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/404-error-for-css-file/)
 * Hello, I’m getting this error in my console:
 * GET [http://yap.local/wp-content/plugins/wp-members/inc/css/generic-no-float.css?ver=3.2.4.1](http://yap.local/wp-content/plugins/wp-members/inc/css/generic-no-float.css?ver=3.2.4.1)
   net::ERR_ABORTED 404 (Not Found)
 * It appears the /css folder is not located in the /inc folder, but directly in
   the plugin root folder.
 * The side effect is that the silent 404 is causing all of my init hooks to fire
   twice.

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

 *  Thread Starter [svaults](https://wordpress.org/support/users/svaults/)
 * (@svaults)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/404-error-for-css-file/#post-10750833)
 * This may be because install.php should use the WPMEM_DIR constant instead of 
   plugin_dir_url()
 * It also looks like in install.php on line 48 the call to update_option() uses
   4 params when there should be 3
 *  Thread Starter [svaults](https://wordpress.org/support/users/svaults/)
 * (@svaults)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/404-error-for-css-file/#post-10750841)
 * I think line 58 and 508 of install.php have to be changed but strangely the url“
   [http://yap.local/wp-content/plugins/wp-members/inc/css/generic-no-float.css?ver=3.2.4.1&#8221](http://yap.local/wp-content/plugins/wp-members/inc/css/generic-no-float.css?ver=3.2.4.1&#8221);
   was set as a string in the plugin option “USE CUSTOM URL BELOW” – I never typed
   that in obviously so it must have been set programatically.
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/404-error-for-css-file/#post-10750979)
 * That appears to be a problem based on the install file being moved. So it would
   only affect new installs and not updates. I’ll get it corrected as quickly as
   possible.
 * In the meantime, all you need to do to correct it is re-set the stylesheet setting
   the plugin’s main options tab. Set it to the first selection in the dropdown (
   No Float) for the plugin’s default stlyesheet.
 *  Thread Starter [svaults](https://wordpress.org/support/users/svaults/)
 * (@svaults)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/404-error-for-css-file/#post-10751060)
 * Thanks for the support Chad.
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/404-error-for-css-file/#post-10751673)
 * No problem!
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/404-error-for-css-file/#post-10751689)
 * This is a pretty important fix for new installs, so I pushed out a minor update–
   3.2.4.2 that corrects the URL path.
 * Just a note for anyone reading this later: 3.2.4 included a relocation of the
   plugin’s install file. However, the URL path that gets set for the default stylesheet
   was based on that file being located in the original location. This resulted 
   in a broken link for the stylesheet. It could be corrected by updating the stylesheet
   setting, but that’s a poor user experience for a new install of the plugin, so
   it was corrected in minor update 3.2.4.2.
 *  Thread Starter [svaults](https://wordpress.org/support/users/svaults/)
 * (@svaults)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/404-error-for-css-file/#post-10771667)
 * Excellent

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

The topic ‘404 error for css file’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [svaults](https://wordpress.org/support/users/svaults/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/404-error-for-css-file/#post-10771667)
 * Status: resolved