• Resolved erobhef

    (@erobhef)


    Hi there,

    I have installed Postie and configured ok. Server is running PHP 5.4.34 and my site is running Postie 1.9.16. When I try to run a test I get an Error 500. My hosting provider very kindly took a look at things. They reported that they get a blank grey page after they click on Process Email and I also get this. No posts get published, but when I check into Posts I see Draft post created titled tmptitle with body tmpPost. No image is included in this draft and test email includes an image. My wp core and all plugins are up to date. Can anyone help?

    //Rob

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    @erobhef Please work with your hosting provider to get the error logs from around the time you were testing this. You can send them to [email protected] and I’ll take a look. Another option is to install the Support AddOn and run another test then send the zip file to the same email.

    http://postieplugin.com/downloads/support-addon/

    Upgrading PHP will likely have no effect as Postie is compatible back to PHP 5.3. The issue @lastlamplighter mentions was for a very specific version of Postie.

    Thread Starter erobhef

    (@erobhef)

    Thanks Wayne. I just sent some logs over.

    //Rob

    Plugin Author Wayne Allen

    (@wayneallen-1)

    @lastlamplighter please start your own thread as the issues are rarely the same and it get to be confusing as to whom I am replying to.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    @erobhef Thanks for the debug output. It looks like PHP is dying while WordPress is processing a 3Gb image. I would try allocating more memory to PHP (http://postieplugin.com/faq/fatal-error-memory/) or sending a smaller image.

    Thread Starter erobhef

    (@erobhef)

    Hi Wayne,

    Thanks for the suggestion of allocating more memory. This is a strange one. I contacted my hosting provider and they came back with the following…

    “There is no particular limit for attachment file to the email. Could you please check this now? I have increased memory limit to 256Mb as well as set require PHP version. Further, I have tried to process email in Postie plugin and could not receive 500 error message. But, receives blank page for postie plugin after processing. There is no PHP error occurred while processing email from server side.”

    The mailbox used to create posts has a single test email in its Inbox with a single 4.34MB attachment. I cannot see any log anywhere regarding wp processing 3Gb image.

    Any suggestions?

    Best regards,
    Rob

    Thread Starter erobhef

    (@erobhef)

    Hi Wayne,

    Just to add to this. I have step increased the wp-config WP_MEMORY_LIMIT from 64 to 96, 128 and 256 and I get the same result. Also, not sure if this is anything but I noticed that the test email attachment is recreated multiple times in the wp-content/uploads/2018/02 folder, the largest of which is 3.4MB (the original attachment size).

    Best regards,
    Rob

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks Rob.

    The process is dying when the attachment is being added to WordPress. Can you successfully create a post if there isn’t an attached image? Or a different image?

    Thread Starter erobhef

    (@erobhef)

    Hi Wayne,

    Thanks again for coming back and suggesting to try an email without an attachment. I should have thought of some more basic troubleshooting before contacting you. Yes, some success. When I send an email without an attachment a new post is created. The title, body and category are good. I notice that the post is flagged as ‘Scheduled’ and does not immediately get published…but after a few minutes get published 🙂 to a custom category.

    I configured that Postie deletes email after processing, and I can see from the mailbox that this is working. Everything good so far. Now I tried once more to process email with 3.2MB image attachment and it fails 🙁 and I get a tmptitle post.

    So everything is working perfect, except when there are attachments.

    The only other observation is that the email with the image attachment correctly gets deleted from the mailbox, as per Postie’s Delete After Posting setting.

    I feel this issue is something small and likely not related directly to Postie. Any thoughts or suggestions welcome?

    //Rob

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Can you manually create the post and add that 3mb image via the post editor?

    Please send that image to [email protected] so I can test on my side as well.

    Thread Starter erobhef

    (@erobhef)

    Hi Wayne,

    Sorry for the delay in coming back. I tried to directly post via wp-admin and it failed. I increased upload_max_filesize to 64M and post_max_size to 32M, and while WP told me correctly the max image size to set in the post was 32MB, it failed with message ‘HTTP error’ (see snip attached). For what it’s worth I sent you the image attachment as you requested. I’ve contacted the host provider for them to check their logs and I’ll come back with that.

    Best regards,
    Rob

    php_value upload_max_filesize 64M
    php_value post_max_size 32M
    php_value max_execution_time 300
    php_value max_input_time 300

    Thread Starter erobhef

    (@erobhef)

    Hi Wayne,

    Short update. I can now send via wp, but fails via Postie with tmptitle/tmpPost (only if there is an attachment).

    //Rob

    Plugin Author Wayne Allen

    (@wayneallen-1)

    >I can now send via wp

    Are you trying to say you can create a post with the large image in the WP editor or something else?

    Thread Starter erobhef

    (@erobhef)

    Hi Wayne,

    I can create a post manually in wp editor with no image.

    I can create a post manually with set featured image size 3mb.

    I can create a post using Postie with no image.

    I cannot create post using Postie where source email contains same 3mb image attachment as tests above.

    ……………………………

    Thread Starter erobhef

    (@erobhef)

    Hi there,

    I’ve run several tests again with 3mb, 2mb and 627kb image attachments. All fail.

    The plugin works for text only posts.

    It fails with images.

    I’m disappointed to say this means I cannot use the plug in as my site default page lists latest blog entries with attachments.

    /Rob

    Plugin Author Wayne Allen

    (@wayneallen-1)

    That is extremely unusual, most people send attachments through Postie. Does it still fail if you disable all other plugins?

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Post fails – tmptitle’ is closed to new replies.