• hello,

    I am having an issue adding new plugins to a clients wordpress. All there old plugins are recognized but I cannot add any new ones. They do not show up in the plugins in the admin. Even if I go through the plugin adder in the control panel. I think it is because it thinks the plugin directory on my server is
    /var/www/vhosts/journalofnursingjocularity.com/httpdocs/wp-content/plugins

    Trouble that file hierarchy does not exist on my server, at least not right now. Where in my wordpress do I go to change what the CMS thinks is the proper plugin folder. I know it will be in the code, but I do not know which php file or database.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Don’t suppose you have it defined in your wp-config.php file with WP_CONTENT_DIR or PLUGINDIR?

    Thread Starter dcgloballlc

    (@dcgloballlc)

    it didnt do the trick, I added these to the config file

    define( 'WP_PLUGIN_DIR', '/wp-content/plugins');
    
    define( 'PLUGINDIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins' );
    define( 'WP_CONTENT_DIR', '/wp-content');

    and it is still a no go. The thing I cant figure out is that some of the plugins in that file work and show up in plugins admin, but even when I go to the plugin directory plugin adder in the admin, I get a file does not exist error when I go to activate after download.

    I wasn’t necessarily advocating adding your wp-config.php but rather wondering if you had those ‘defines’ there…

    Are you sure you have the plugins in the proper directory structure within the wp-content/plugins folder…like this for the plugin evermore:

    wp-content/plugins/evermore/evermore.php
    wp-content/plugins/evermore/Readme.txt

    Thread Starter dcgloballlc

    (@dcgloballlc)

    absolutely!

    My problem is that on the admin plugin page, the CMS is say it thinks my plugin directory is what was mentioned in my first post. The trouble is that I do not even have a httpdocs directory on my server! I am thinking there has to be something screwy in the code

    Not sure what that is, use something like phpMyAdmin and search the wp-options table for httpdocs.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to alter wordpress plugin directory file location’ is closed to new replies.