• Resolved JeffSy

    (@jeffsy)


    After upgrading to 4.2 and upgrading themes and plugins today, I began to have two problems.

    (1) The “Save Draft” button on my posts would be greyed out. There was no way to save the posts I had composed. I would just have to go to the Dashboard, and my changes would be lost.

    (2) When I would try to go back to the posts, re-add the text, and try to save them, I would get a screen with these message:

    Warning: mb_check_encoding() expects parameter 1 to be string, object given in /var/www/vhosts/[MYSITE.COM]/httpdocs/wp-includes/wp-db.php on line 2378

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/[MYSITE.COM]/httpdocs/wp-includes/wp-db.php:2378) in /var/www/vhosts/[MYSITE.COM]/httpdocs/wp-admin/post.php on line 235

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/[MYSITE.COM]/httpdocs/wp-includes/wp-db.php:2378) in /var/www/vhosts/[MYSITE.COM]/httpdocs/wp-includes/pluggable.php on line 1196

    I haven’t yet found anything else that’s broken. People can still leave comments, and it appears I can still post first drafts.

    All thoughts would be welcome. Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have not encountered this issue before. Here are a couple suggestions you could try.

    • Have you tried downloading and extracting the latest version and then replacing the files listed above?
    • Navigate to the folder on your server and verify that the file ownership and file permissions are correct.
    Thread Starter JeffSy

    (@jeffsy)

    Thanks for getting back to me so quickly!

    Just to clarify: Are you suggesting that I manually replace only those specific files from the new download? If so, I’ll give that and your other suggestion a try. Is there any danger to trying that I should be aware of beforehand?

    (I’m also checking with my host to make sure he’s not having PHP issues…)

    Hi JeffSy.

    Did you try to deactivated your plugins and try to save a post?

    Thread Starter JeffSy

    (@jeffsy)

    Thanks for asking…I just deactivated plugins and tried saving. The problem persisted.

    Hi Jeff:

    Yes, in this case I would recommend you replace those specific files from a known good source (downloaded from www.ads-software.com). To be safe, you can download the current files to your computer as a backup.

    Thread Starter JeffSy

    (@jeffsy)

    Okay, I manually replaced pluggable.php, post.php, and wp-dp.php, but the problem persists.

    One thing I did notice: At first, I could save posts. (They were short, but I don’t know if that matters.) If I pasted lots of text into the editor, I could press Save Draft but get those three warnings/errors I listed below. If I began typing, in a little while the Save Draft and Publish buttons would become greyed out.

    Try to use the Inspect Element tool on the Save Draft button.

    Do you see something like this? where there’s a Disabled class you just need to remove it:

    <input name="save" type="submit" class="button disabled" id="publish" value="Update">

    If it worked this’s not parmanent fix it’s just to let you work on your project for the time being.

    Thread Starter JeffSy

    (@jeffsy)

    I am seeing this:

    input id="save-post" class="button disabled" type="submit" value="Save Draft" name="save"

    I deleted the class. It made the Save Draft button functional, but when I tried to save the draft, I got the dead-end screen with the same warnings I posted above.

    Thread Starter JeffSy

    (@jeffsy)

    So I went away for 24 hours, and while I was gone, these error messages I was receiving stopped, and the problem (at least for now) magically resolved itself. I have no idea why.

    But I want to thank everyone here who offered troubleshooting suggestions. I greatly appreciate it!

    We had the same issue, I suspect some hosting trouble with Siteground. Where are you hosting yout project?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Save Draft button grayed out, drafts not saving’ is closed to new replies.