Title: Problem with activation
Last modified: November 7, 2017

---

# Problem with activation

 *  [gigatyrant](https://wordpress.org/support/users/gigatyrant/)
 * (@gigatyrant)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/problem-with-activation-3/)
 * Hello,
 * I encounter a problem with the plugin, it does not create its tables in the database
   at activation.
 * The problem comes from line 420 and does not occur on all servers.
 * $activatestr = str_replace(WP_PLUGIN_DIR . “/”, “activate_”, __FILE__ );
 * In some cases the slashes of WP_PLUGIN_DIR and __FILE__ are not in the same direction.
   So the replacement doesn’t work and it breaks the action.
 * Applying the “wp_normalize_path” function to paths fixes the problem and the 
   plugin works again.
 * Can you make an update to fix this?
 * Is the plugin still maintained?
 * Thank you very much,

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

 *  [mvandemar](https://wordpress.org/support/users/mvandemar/)
 * (@mvandemar)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/problem-with-activation-3/#post-9660006)
 * The plugins is still maintained. Under what circumstances would the plugin not
   be in the plugin directory?
 * Edit: Oh, are you referring to “/” vs “\”, eg. on Windows servers? If so I thought
   I had fixed that. I will take a look.
 * -Michael
    -  This reply was modified 8 years, 7 months ago by [mvandemar](https://wordpress.org/support/users/mvandemar/).
 *  Thread Starter [gigatyrant](https://wordpress.org/support/users/gigatyrant/)
 * (@gigatyrant)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/problem-with-activation-3/#post-9660035)
 * Thank you for your prompt response.
 * Yes, I’m talking about the “/” vs “\” on Windows servers. This breaks the plugin
   installation.

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

The topic ‘Problem with activation’ is closed to new replies.

 * ![](https://ps.w.org/login-lockdown/assets/icon-256x256.png?rev=2901919)
 * [Login Lockdown & Protection](https://wordpress.org/plugins/login-lockdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-lockdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-lockdown/)
 * [Active Topics](https://wordpress.org/support/plugin/login-lockdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-lockdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-lockdown/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [gigatyrant](https://wordpress.org/support/users/gigatyrant/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/problem-with-activation-3/#post-9660035)
 * Status: not resolved