Title: Update breaks plugin!
Last modified: August 30, 2016

---

# Update breaks plugin!

 *  Resolved [rocket.works – Dominik Friedrich](https://wordpress.org/support/users/rocketworks/)
 * (@rocketworks)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/update-breaks-plugin-5/)
 * Hello!
 * The latest update seems to break the plugin. All links to assets like css scripts
   or images are getting a 404 error, because the link is not correct.
 * It seems to plugin tries to attach the full file path to the url in the admin
   panel. It is using the full server path (like you would use for .htaccess files)
   and not the URL path.
 * Is it possible that this occurs because I have my content folder not in the normal
   place? All the other plugins are working and also this plugin was working before.
 * [https://wordpress.org/plugins/store-locator-le/](https://wordpress.org/plugins/store-locator-le/)

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

 *  [cicistorelocatorplus](https://wordpress.org/support/users/cicistorelocatorpluscom/)
 * (@cicistorelocatorpluscom)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/update-breaks-plugin-5/#post-6624326)
 * This forum is infrequently checked. Please post your technical questions in the
   [http://www.storelocatorplus.com/forums/forum/support-2/](http://www.storelocatorplus.com/forums/forum/support-2/)
   Store Locator Plus forum. The site update did not break the base plug-in. Assume
   that you probably have other Plugins running as well. Please make a note reporting
   ALL ( plugin environment and versions) info included when posting in the forum.
   There are too many combinations to be able to fully troubleshoot your specific
   issue. Additionally note your WP version. WP updated a major version at the same
   time that SLP was updated to the 4.3 series
 *  Thread Starter [rocket.works – Dominik Friedrich](https://wordpress.org/support/users/rocketworks/)
 * (@rocketworks)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/update-breaks-plugin-5/#post-6624352)
 * Hello! Thank you for your reply.
 * It is no other plugin that breaks your path. I got WordPress installed (4.3.1)
   in a sub folder and the content folder (with the plugins) is in another folder
   as well with another name.
 * This is not the default setup, but a saver one.
 * The problem in your plugin is the wrong use of a variable.
 * I guess you are using dirname(__FILE__) or the WP plugin_dir_path( $file ) to
   get the plugin path. This is ok for PHP scripts (you will get the full server
   path). Unfortunatly, this is not ok for URLs like for the import of your CSS 
   scripts, images, js, etc.
 * What you want use is: plugins_url()
 * You can find more information here:
    [https://codex.wordpress.org/Function_Reference/plugins_url](https://codex.wordpress.org/Function_Reference/plugins_url)
 *  [cicistorelocatorplus](https://wordpress.org/support/users/cicistorelocatorpluscom/)
 * (@cicistorelocatorpluscom)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/update-breaks-plugin-5/#post-6624419)
 * Hi Rocket, Could you post in the [SLP forums](http://www.storelocatorplus.com/forums/forum/support-2/)
   and provide your PlugiN environment so that the developer(s) can look into it.
   The CSS not saving issue was fixed in version 4.3.13 of the base Plugin. If you
   post in the SLP forum you can discuss with the developer if you do not see resolution.
   thanks

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

The topic ‘Update breaks plugin!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/store-locator-le_dac7af.svg)
 * [Store Locator Plus®](https://wordpress.org/plugins/store-locator-le/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/store-locator-le/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/store-locator-le/)
 * [Active Topics](https://wordpress.org/support/plugin/store-locator-le/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/store-locator-le/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/store-locator-le/reviews/)

## Tags

 * [adminarea](https://wordpress.org/support/topic-tag/adminarea/)
 * [resolved](https://wordpress.org/support/topic-tag/resolved/)

 * 3 replies
 * 2 participants
 * Last reply from: [cicistorelocatorplus](https://wordpress.org/support/users/cicistorelocatorpluscom/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/update-breaks-plugin-5/#post-6624419)
 * Status: resolved