Support » Fixing WordPress » Cannot activate plugin (“pluggable.php on line 868” error)

  • I installed a plugin that didn`t allow me to access the admin, so I turned all plugins off through PHPMYADMIN and deleted the plugin through FTP.
    Now I can access my blog, but when I try to activate any of the plugins I get this error:

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /mounted-storage/home39c/sub001/sc30862-QUJV/sundsvallexpress.se/wp-admin/includes/plugin.php on line 297

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/home39c/sub001/sc30862-QUJV/sundsvallexpress.se/wp-admin/includes/plugin.php:297) in /mounted-storage/home39c/sub001/sc30862-QUJV/sundsvallexpress.se/wp-includes/pluggable.php on line 868

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/home39c/sub001/sc30862-QUJV/sundsvallexpress.se/wp-admin/includes/plugin.php:297) in /mounted-storage/home39c/sub001/sc30862-QUJV/sundsvallexpress.se/wp-includes/pluggable.php on line 868

    I uploaded even the development version (2.9) and it didn’t work. I also changed the theme to see if it is only with the one I am using, but the error remained.

    PLZ help!!!

Viewing 15 replies - 1 through 15 (of 22 total)
  • esmi

    (@esmi)

    Forum Moderator

    I turned all plugins off through PHPMYADMIN

    Did you remember to turn them back on again?

    Hi,

    It is usually due to spaces, new lines, or other garbage at opening/closing PHP file <?php tag or after a closing ?> tag in wp-config.php. It can be other file too so need to check error message as it may list file name where the error occurred.

    One can either upload error file from the backup or edit erroneous file. To edit the file one need to check below mentioned points:

    1. Download the file mentioned in the error message.
    2. Open that file in a plain text editor
    3. Check that the very first characters are <?php
    4. Check that the very last characters are ?>
    5. Place the cursor between the ? and >
    6. Now press the DELETE key on your computer and keep that key pressed for at least 15 seconds.
    7. Now type > and
    8. Save without pressing any other key at all.

    That’s it!

    Thanks,

    Shane G.

    But if I will put the cursor between the last “?>” press it for 15 sec it will start erasing all the code.

    Esmi, I changed the a:{} to a:0{} at PHPMYADMIN. After I managed to access my admin again I left it like that. Do I need to change the a:{} so the “a:” will have a number again?
    If so, which number it need to be? I forgot what was it in the first place before I changed it.

    Help anyone?
    I have been searching the net and found nothing that helped me solve this and right now key features of my blog are not working because of that error.

    esmi

    (@esmi)

    Forum Moderator

    But if I will put the cursor between the last “?>” press it for 15 sec it will start erasing all the code.

    Place the cursor after last ?> and press the Del key for 15 secs – not the Backspace key.

    Maybe i’m old or something, but what do steps 6 – 8 aim to do?

    What does holding that key do, and won’t adding an additional > invalidate the closing tag by now becoming..

    ?>>

    .. or does this whole 15 delete thing remove one..

    Is it a Mac thing?

    esmi

    (@esmi)

    Forum Moderator

    They remove spaces you may not be able to see. and you should end up with just ?> – not ?>>.

    http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent

    Oh i see, i didn’t even know that… oh god, all these years using computers and something so basic has escaped me… lol..

    Learn something new every day.. 🙂

    I had the same problem … I had added a custom color to header in my functions file … worked most of the time but created this error the rest of the time. Just in case it happens to you …

    Or you can press Ctrl+Shift+End after ?>, this will select everything to the end of the file including white spaces. I had that problem too, and removing the white spaces fixed it. Thanks!

    Hi !

    1. Open lesson.php first into an ascii editor.
    2. Then, go to the end of file.
    3. Remove the blank last line and blank spaces with backspace tab.
    4. Keep the ‘?>’ no space behind.

    That’s it !
    It works now.

    Hello! I have also encountered the same problem, I think should be the config.php file out of order. My solution is to download a new wondpress source code.
    Then remove the inside of the config.php file. And the old config.php to fill the same mysql data and text encoding, and then replace the FTP upload files, the problem solved.
    Want to help to you, I wish you good luck!

    i had the same problem and notebook doesn’t fixe it. i use another editor that gives you all the spaces in letters. its called Hex Editor Neo

    i believe this can also happen if you migrate your wordpress to another domain and use the same sql database without changing the domain

    i get this message when i try to connect to my new site to the backend.

    Warning: Cannot modify header information – headers already sent by (output started at http://imresult.com/b/wp_p.inc:1) in /**/**/public_html/**/wp-includes/pluggable.php on line 868

    http://blogmagia.com.br

    how to fix it? thanks
    http://topanuncio.com.br

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Cannot activate plugin (“pluggable.php on line 868” error)’ is closed to new replies.