Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter kristoffernolgren

    (@kristoffernolgren)

    I looked in to this a bit more. It seems as though the reason is that postie doesn’t approve of my e-mail-adress. I’m allowing any user-type to post and have a user with the right mail-adress. The adress is not added as a “Authorized Addresses” in the user tab.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    This seems to work for me, but I am not running a MU-network on my test machine.
    I’ll set up WPMU and see if it acts differently.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Well after installing WP Multisite and configuring it as described everything worked fine.

    In Postie 1.5.5 (just released) I’ve added an easy way to run a single Postie email fetch in “debug” mode. Please upgrade and run with debug and post the relevant sections of the output.

    Thread Starter kristoffernolgren

    (@kristoffernolgren)

    I found the problem. It was due to an inline sql-query. (I use postgreSQL). Using wordpress built in features for dealing with the database solves this and is also concidered best practices.

    $user = get_user_by( ’email’, $from );
    $user_ID = $user->ID;

    in
    postie-functions.php replace

    $sql = 'SELECT id FROM ' . $wpdb->users . ' WHERE user_email=\'' . addslashes($from) . "' LIMIT 1;";
    $user_ID = $wpdb->get_var($sql);
    $

    With

    $user = get_user_by( 'email', $from );
     $user_ID = $user->ID;
    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for catching that. I’ve updated Postie to use the function call.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    This is fixed in 1.5.6

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Postie always posts as user admin’ is closed to new replies.