Support » Plugin: Login LockDown » Problem with activation

  • 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)
  • Plugin Author mvandemar


    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.


    • This reply was modified 2 years, 3 months ago by mvandemar.

    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.