Forums

Postie not posting images when run from cron for email postings (11 posts)

  1. paul.fox
    Member
    Posted 3 months ago #

    Hi!
    Have Wordpress 2.8.2 and Postie 1.3 Beta. Trying to add blogg entries via email.
    When running "Run Postie" manually from Postie configuration, all works fine, images get posted and the post ends up in the category I specify.
    However, when running get_mail.php from cron, things go bad. I get no images and no text in the post, the category I specify in the subject of the email just ends up as text in the post subject line.
    I have tried all the different templates and get the same result. Can anyone help me here?? Have been trying to solve this for ages.
    Thanks in advance!

  2. paul.fox
    Member
    Posted 3 months ago #

    No replies yet... if this is posted in the wrong forum or if anyone knows of any other forum where I might find the answer to this, please please let me know.
    Thanks!

  3. mikemoffi
    Member
    Posted 3 months ago #

    I have had the same experience, when run manually the attached image is handled correctly, but when cron-less postie receives the email and creates the post, the image tag doesn't get inserted correctly into the post content. I did notice the attached image did get received and is in the post's gallery.

    - Mike M

  4. robfelty
    Member
    Posted 3 months ago #

    Have you tried the development version? You should also look at the forum at forum.robfelty.com

  5. paul.fox
    Member
    Posted 3 months ago #

    Hi,
    No I haven't tried the development version. I will give it a go and let you know :)
    Thanks!

  6. paul.fox
    Member
    Posted 3 months ago #

    Hi,

    Ok, I have tried the Development version now as well. Exactly the same results as described above (even tried changing templates again), plus, when running it manually, I get the following Warning messages....

    Warning: include_once(PEAR5.php) [function.include-once]: failed to open stream: No such file or directory in..... etc

    Warning: include_once() [function.include]: Failed opening 'PEAR5.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in.... etc

    Warning: implode() [function.implode]: Invalid arguments passed in ..../www/wp-content/plugins/postie/postie-functions.php on line 914

    Robfelty, yes I have looked at the forums at robfelty.com, I see others have the same problem, some have reported it fixed by changing templates, others by using the development version, neither of which work for me. Any other suggestions from anyone??? please...

  7. robfelty
    Member
    Posted 3 months ago #

    Paul,

    Try using the following cronjob. This will write debugging output to a file in /tmp

    */2 * * * * /usr/bin/wget -O - http://robfelty.com/test28/wp-content/plugins/postie/get_mail.php -a /tmp/postie_error  >> /tmp/postie_log

    I am planning on making debugging easier.

  8. paul.fox
    Member
    Posted 3 months ago #

    Hi Rob,

    Thanks for that, it helped. There was a problem with permissions, I gave the user execute permissions on get_mail.php. This presented another problem for which I found a fix in robfeltyforums, this was to include the following as the first line in get_mail.php

    #!/usr/bin/php -q

  9. robfelty
    Member
    Posted 3 months ago #

    Paul.fox,

    That is really strange. Do you normally have to have execute permissions on php files on your server? Are you using wget? That should make a normal request through your webserver (and should work from any server actually). It sounds to me like you are running the script from the command line version of php.

    Rob

  10. sasquatchr3
    Member
    Posted 1 month ago #

    I have the same problems as posted above. When run manually from the Postie control panel, the images display fine.

    When run from a cron job. I get a post that says
    tmptitle - Draft
    The only thing in the text of the image is
    tmpPost

    Any ideas?

    Using WP 2.8.4 and postie 1.3.3

  11. sasquatchr3
    Member
    Posted 1 month ago #

    Just tested one more thing.

    Just tried mydomain.com/blog/wp-content/plugins/postie/get_mail.php

    Same results only
    tmptitle - Draft was posted.

    Really odd. No error messages were displayed to me. But I had two attachements and only one was shown by the php output.

Reply

You must log in to post.

About this Topic