• Resolved alxram56

    (@alxram56)


    I’ve just upgraded 2 blog installations from 2.7 to 2.8.4. I am now getting this error when I try to edit comments:

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /pathtomyblog/wp-includes/comment.php on line 1097 Warning: Cannot modify header information – headers already sent by (output started at /pathtomyblog/wp-includes/comment.php:1097) in /pathtomyblog/wp-includes/classes.php on line 1586

    I’ve tried disabling plugins and looked for whitespace before/after the opening/closing tags in comment.php and classes.php

    Nothing is working. It looks like a lot of others are having a similar problem. Anyone have any suggestions? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 erroneous file. You 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.

    Thanks,

    Shane G.

    Thread Starter alxram56

    (@alxram56)

    Thanks Shane for the tip. I have followed those instructions (tried a few times on several files) and it doesn’t help, I still get the exact same error message. Any other suggestions?

    Thread Starter alxram56

    (@alxram56)

    Update: I’ve been going through every single file (just got through /wp-includes/

    About half of the files have a whitespace (line) after the closing tag ?>. I downloaded a fresh wordpress install and noticed the same thing with those files.

    I got rid of the whitespace in a lot of files now, but it will take forever to get through the entire folder (I also have 2 other sites to fix).

    Should I keep doing this? Seems ridiculous that wordpress would release a download with that many errors.

    Note: I’ve already tried disabling all plugins and using the default theme… same error always shows up.

    Thread Starter alxram56

    (@alxram56)

    Eureka! It wasn’t the whitespace issue at all. I’ve been using DB-Cache plugin, and even though I disabled all plugins to test the error, DB-Cache left 2 files in wp-content folder:

    db-config.ini
    db.php

    Deleted those two after deactivating the plugin and folder and viola… everything is running smooth.

    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t edit comments in WordPress 2.8.4’ is closed to new replies.