About this topic

  • Posted by the_yza 1 year ago. There are 7 posts. The latest reply is from DanGarion.
  1. Hi all,

    I'm trying to post to my Wordpress blog via postie, and it seems to work fine when I have just text, but when I try to attach an image, or embed an image into the email, it doesn't work. I am sending an HTML formatted email, and I have my preferences in Postie to read emails as HTML. A post is created when I do this, with title "tmpTitle", and the only content in it is the text "tmpPost", but the post remains unpublished.

    The message I get when running Postie manually is as follows:

    This is the postie plugin
    time:1280979824
    Revision: 254232
    Last Changed Date: 2010-06-11 14:39:35 -0400 (Fri, 11 Jun 2010)

    MAKE SURE POP IS TURNED ON IN SETTING AT Gmail

    Connecting to pop.gmail.com:995 (pop3-ssl)
    memory at start of e-mail processing:17037892
    Confirming Access For {EMAIL}

    Message Id is :<AANLkTimd7UEZvOAZp-+987tR_gWb_FEPMieeX7PQ1qdQ@mail.gmail.com>

    primary= multipart, secondary = related
    primary= multipart, secondary = alternative
    primary= text, secondary = html
    primary= image, secondary = jpeg

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/yza/public_html/blog/wp-includes/link-template.php on line 324

    ----

    I looked at this file, and lines 323-324 are:

    if ( ! $link )
                    $link = home_url( "/?attachment_id=$id" );

    Can anyone tell me what they think the issue might be, or how to solve it? Thanks in advance!

    EDIT: I'm using Wordpress 3.01 and Postie 1.4.1

  2. Has anyone seen an error like this? I have done searching here and on the Wordpress forums and can't seem to figure out why this is happening. Any insights would be much appreciated. Thanks!

  3. could you send me a test message which can produce this error? Please send it to robfelty at the gmail, and make sure to include 'postie' in the subject. Please send an original message, not a forward.

  4. I have tried dev version & much more. Has there been anyone else report this problem? I am having the same issue. (.jpeg)(.gif) cause the same error as described above. It worked in the past so i tried rolling back to older versions with no luck.

    Wordpress Version 3.0.1
    Postie Version 1.4.1
    My host is Godaddy Shared Linux plan

    # Operating System : Linux
    # Server : Apache
    # Memory usage : 23.4 MByte
    # MYSQL Version : 5.0.91-log
    # SQL Mode : Not set
    # PHP Version : 5.2.14
    # PHP Safe Mode : Off
    # PHP Allow URL fopen : On
    # PHP Memory Limit : 256M
    # PHP Max Upload Size : 8M
    # PHP Max Post Size : 8M
    # PHP Max Script Execute Time : 300s
    # PHP Exif support : Yes ( V1.4 )
    # PHP IPTC support : Yes
    # PHP XML support : Yes

    I also ran the below script to test if GD was working correct & it is. Thanks for any help you can provide.

    <?php

    function HasGDInstalled($display = true) {
    $function_list = array("getimagesize",
    "imagecreatefromjpeg",
    "imagecreatefromgif",
    "imagecreatefrompng",
    "imagecreatetruecolor",
    "imagecreatetruecolor",
    "imagecopyresized",
    "imagejpeg",
    "imagedestroy");
    return(HasFunctions($function_list,$display));
    }

    /**
    * Handles verifing that a list of functions exists
    * @return boolean
    * @param array
    */
    function HasFunctions($function_list,$display = true) {
    foreach ($function_list as $function) {
    if (!function_exists($function)) {
    /*
    if ($display) {
    print("<p>Missing $function");
    }
    */
    return(false);
    }
    }
    return(true);

    }

    echo HasGDInstalled();
    ?>

  5. I'm having this same type of issue when sending a Photo to my blog.

    I have the newest version of WP 3.3.1
    And newest version of Postie 1.4.3

    Here is the info when I check manually.

    This is the postie plugin
    time:1327441663
    Revision: 474354
    Last Changed Date: 2011-11-02 00:01:06 -0400 (Wed, 02 Nov 2011)

    MAKE SURE POP IS TURNED ON IN SETTING AT Gmail

    Connecting to pop.gmail.com:995 (pop3-ssl)
    memory at start of e-mail processing:7904604
    Confirming Access For daniel@dangarion.com
    posting as user 3
    Message Id is :<14d79085-ac36-448f-a4ac-b35fed0e1470@blur>

    primary= image, secondary = jpeg

    Catchable fatal error: Object of class WP_Error could not be converted to string in /srv/www/li162-201.members.linode.com/public_html/wp-includes/link-template.php on line 328

  6. A little more information, it appears the issue is with the email I'm sending. I tried setting up a "quick" upload via my Android Phone and that seems to be where the problem is at.

    I sent an email via the normal email function of my phone and it worked flawlessly. I'm going to look further into it and see what the deal is and if I figure it out I will post again.

  7. Ok one more post. Here is the source from the email that gets the error. It looks like the problem is with the way the image is being attached, it's not actually attached with a file extension. (I just left the important stuff).

    Date: Tue, 24 Jan 2012 13:46:51 -0800
    X-Mailer: Motorola android mail 1.0
    MIME-Version: 1.0
    X-Priority: 3
    Content-Type: multipart/mixed; boundary="Motorola-A-Mail-xZ2edRZhjpqvwliC"

    --Motorola-A-Mail-xZ2edRZhjpqvwliC
    Content-Type: image/jpeg; name="content://media/external/images/media/1000"
    Content-Disposition: attachment; filename="content://media/external/images/media/1000"
    Content-Transfer-Encoding: base64

    *****************
    And here is the source from the email that works.
    *****************

    Content-Type: multipart/mixed; boundary=00504502e0ba74e77804b74d396e

    --00504502e0ba74e77804b74d396e
    Content-Type: multipart/alternative; boundary=00504502e0ba74e76e04b74d396c

    --00504502e0ba74e76e04b74d396c
    Content-Type: text/plain; charset=ISO-8859-1

    --
    Sent Without Wires From My Phone.

    -Daniel

    --00504502e0ba74e76e04b74d396c
    Content-Type: text/html; charset=ISO-8859-1

    <p></p>
    <p>--
    Sent Without Wires From My Phone.</p>
    <p>-Daniel</p>

    --00504502e0ba74e76e04b74d396c--
    --00504502e0ba74e77804b74d396e
    Content-Type: image/jpeg; name="C360_2012-01-22-12-25-47.jpg"
    Content-Disposition: attachment; filename="C360_2012-01-22-12-25-47.jpg"
    Content-Transfer-Encoding: base64
    X-Attachment-Id: 1391924026604322277-1

RSS feed for this topic

Have you read the FAQ?
Have you tried the latest development version (at the bottom)?

Reply

You must log in to post.