Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’m new to the plugin thing, but I was having no luck getting any plugins to activate. I would click the link next to one in the Plugins page, and I would get a notice saying it was activated … but the link wouldn’t change.

    After some debugging to trace the logic, the problem appears to be a lack of an exit after the header(Location:) call to the response page. I added:

    exit;

    immediately after each of the two redirect lines:

    header(‘Location: plugins.php?activate=true’);
    header(‘Location: plugins.php?deactivate=true’);

    in the activate/deactivate if-else statement, creating lines 17 and 24 respectively. For whatever reason, the fact that the rest of the page was running seemed to be interfering with the ability of the tool to reflect an active plugin. (In the database, it looks like it would retain only the most recent plugin activation attempt but it would not be reflected in the list of plugins displayed on the page.)

    I don’t know what other effects this might have, but after day of struggling to get things working, the plugins are now responding.

Viewing 1 replies (of 1 total)