WordPress.org

Ready to get started?Download WordPress

Forums

Postie
Postie broken in 3.3 _fill_user() problem (14 posts)

  1. vitamincee
    Member
    Posted 2 years ago #

    Fatal error: Call to undefined function _fill_user() in postie-functions.php on line 2618

    http://wordpress.org/extend/plugins/postie/

  2. Back2Future
    Member
    Posted 2 years ago #

    The same here...

  3. gizmomol
    Member
    Posted 2 years ago #

    I commented out this function in postie-functions.php because get_user_by() is already in later versions of wordpress. Seems to have fixed the problem since my postie tests pass.

    :)

    /* this is included in WP 2.8+. We are using our own (unmodified) version for
       backwards compatibility */
    /*
    if (!function_exists('get_user_by')) {
      function get_user_by($field, $value) {
        global $wpdb;
    
        switch ($field) {
          case 'id':
            return get_userdata($value);
            break;
          case 'slug':
            $user_id = wp_cache_get($value, 'userslugs');
            $field = 'user_nicename';
            break;
          case 'email':
            $user_id = wp_cache_get($value, 'useremail');
            $field = 'user_email';
            break;
          case 'login':
            $value = sanitize_user( $value );
            $user_id = wp_cache_get($value, 'userlogins');
            $field = 'user_login';
            break;
          default:
            return false;
        }
    
         if ( false !== $user_id )
          return get_userdata($user_id);
    
        if ( !$user = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->users WHERE $field = %s", $value) ) )
          return false;
    
        _fill_user($user);
    
        return $user;
      }
    }
    */
  4. Austin Passy
    Member
    Posted 2 years ago #

    I found this bug three months ago but never really dug into the code.. I'll check out your edit and see if that fixes the issue. Otherwise it's time to fork!

  5. stitchkingdom
    Member
    Posted 2 years ago #

    this appeared to have worked. until the preview button stopped working for me when composing a new post. saving a draft also results in the error:

    Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/plugins/postie/postie-functions.php:1) in .../wp-includes/pluggable.php on line 866

    this is unfortunate. I rely on postie.

  6. RenoJohn
    Member
    Posted 2 years ago #

    I'll be VERY appreciative of anyone that can give a fix here as I rely very heavily on Postie.

    glad to offer up donations to a good fix.

    thanks!

  7. stitchkingdom
    Member
    Posted 2 years ago #

    okay, my bad. I was getting that error because notepad kept adding those extra characters at the beginning that I couldn't detect. had to ssh into server and VI the php to remove them. functionality is restored. about to test a postie now.

    just tested and appears to work great. thanks for the suggestion of commenting out that function.

  8. psybertron
    Member
    Posted 2 years ago #

    Same error after updating to 3.3 - Means I cannot access dashboard or any posting menus, etc.

    Without access to the dashboard, how can I fix (or disable) postie ?

  9. psybertron
    Member
    Posted 2 years ago #

    From other forum thread ...

    Simply use FTP access to delete the wp-content/plugins/postie directory and all its contents.

    (Fixes the dashboard access problem, but clearly those who want to use postie need to look at fix / reinstall for postie.)

  10. GeoffreyTransom
    Member
    Posted 2 years ago #

    I used the fix provided by gizmomol, and that has worked like a charm (for which, thank you, @gizmomol).

  11. stitchkingdom
    Member
    Posted 2 years ago #

    gizmomol's solution works. note the /* */ around the function in the code above.

  12. sdvic
    Member
    Posted 2 years ago #

    Thanks to Gizmomol for the fix. Worked like a charm. =)

  13. invision-studios
    Member
    Posted 2 years ago #

    Thanks, gizmomol. Commenting out that code works like a charm for me as well :-p

  14. jshingleton
    Member
    Posted 2 years ago #

    Kudos to gizmomol for the solution... I was getting frustrated until I found this solution --thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags