WordPress.org

Forums

Writing post fatal error in permalink edit area (9 posts)

  1. Jen Baumann
    Member
    Posted 6 years ago #

    Fatal error: Call to undefined function: mb_substr() in /wp-admin/includes/post.php on line 955

    This error appears directly below the post title where the permalink edit link is supposed to be. This was a clean install of 2.7, upgraded to 2.7.1 prior to writing any posts. The first couple of posts were fine and this suddenly started.

    The result is an inability to edit posts because all fields below the error are missing once they are published, yet the quick edit from the main posts page works - allowing changes to the permalink. The error occurs immediately once WordPress does the autosave while you are writing the post, but the fields remain in place - it is only when you go back to edit the post that all fields are missing.

    Pages are fine.

  2. hotkee
    Member
    Posted 6 years ago #

    When you upgraded, you might have not uploaded some files.
    You will have to check your install has all the latest files.

  3. Jen Baumann
    Member
    Posted 6 years ago #

    I would agree, except the upgrade was done on a new site before any new posts were made. The first couple of posts were fine.

    I used the auto upgrade option in wordpress.

  4. hotkee
    Member
    Posted 6 years ago #

    Never tried the auto upgrade myself so might be something wrong there. Equally it could be something on the host.

    But you need to check your files still if you want to fix it.

  5. Jen Baumann
    Member
    Posted 6 years ago #

    Line 955 reads:
    $post_name_abridged = mb_substr($post_name, 0, 14). '…' . mb_substr($post_name, -14);

    I uploaded a fresh post.php file from 2.7.1 - didn't change thing.

    As far as the host is concerned, I have other sites running on the same configuration without issue.

  6. Jen Baumann
    Member
    Posted 6 years ago #

    I believe the issue is actually related to the post titles I'm trying to use. Adding events starting with 2nd annual seems to play havoc with the permalink. If I don't start it with a number, everything is good.

  7. hotkee
    Member
    Posted 6 years ago #

    thats not the only file you need to upload there are others. I would recommend just putting a complete fresh copy of files on and try that rather than messing around trying to find which file is missint.

    Its not the title starting with a number, I tried and it works fine.

  8. Jen Baumann
    Member
    Posted 6 years ago #

    I will do that and see if it makes a difference.

    I did test numbers vs letters and all posts I start with a number throw the error and all posts that start with a letter do not. Bizarre.

    Thanks for your help. At least if I can't fix it with the fresh files, I know what to do to prevent it.

  9. mikeque
    Member
    Posted 6 years ago #

    I had the same problem and after googling around found the culprit, the Search Unleashed plugin:
    http://urbangiraffe.com/tracker/issues/show/350

Topic Closed

This topic has been closed to new replies.

About this Topic