• THe wordpress add new plugins feature changes the install directory after it has been deleted and reinstalled. It started as my-plugin, then changed to my-plugin1, then changed again to my-plugin2. This occurred after some coding errors (my fault) and I used ftp to remove the files before zipping them and reinstalling them using the add new plugin feature. So here is the problem, where/when is the 1 or the 2 or the n being added to the directory name and how do I reset it? Is this stored in the database somewhere? I searched pretty hard for a solution and only found one reference to this problem on the stackoverflow website. I tried their solution, but, it didn’t fix it. Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi There,

    Not sure this is the absolute right answer, but this is a function of the file system. It sounds as though your programming must have a command in it to actually create the my-plugin directory. If the my-plugin directory already exists or if the file system thinks it exists and automatically adds the 1 or 2 (or 3 or 4). It should not be a function of the database or WordPress.

    Be sure to actually delete the my-plugin directory when you remove the plugin.

    Good Luck!

    -marc

    Thread Starter howelljs

    (@howelljs)

    I’m pretty sure it’s the operating system that is appending the number to the end of the directory. It might be a caching problem since it seems to have gone away. There isn’t much written about this anywhere. I think this was a transient problem that seems to have stopped.

    WordPress Plugin installation was the program that was unzipping the uploaded file. If the directory didn’t exist, WordPress (the unzip, unpack, copy progress that occurs behind the scenes) was creating the directory, not the plugin itself.

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

The topic ‘WordPress plugin changes install directory when deleted and reinstalled’ is closed to new replies.