wp-activate.php, WP_INSTALLNG and plugins
-
Hi all
I’ve just run into a problem that I’m hoping can be resolved.
I’ve setup a site running WP and installed quite a few plugins, some of which are needed for the site headers. Now the problem I ran into in when a user is added to the blog as an author or similar role. That new user is then sent an email asking them to confirm if they want to accept.
In the email is a link to https://mysite.com/wp-activate?key=352524
However, when the page loads, I get an error moaning about a missing function. This function is declared in a plugin which is usually loaded during the running of wp-settings.php.
But in the first line of wp-activate.php, WP_INSTALLING is set. With this varible set, the wp-settings.php file does not go through the wp-content/plugins and load all the plugins listed there. Which is where my problem lies.
Simply commenting out define( “WP_INSTALLING”, true ); in wp-activate.php fixes my problem. However, I’m assuming that line of code is there for a reason. What are the consequnces of me commenting out that line in wp-activate and should it even be declared if the site is actually already installed?
IE change it to:
if (!is_blog_installed()) define( “WP_INSTALLING”, true );
and moved to somewhere later in the code, where is_blog_installed() will run.Any help?
Syn
- The topic ‘wp-activate.php, WP_INSTALLNG and plugins’ is closed to new replies.