tmptitle and tmppost are appeaing in my posts
-
Hi
I use Postie to post articles by email to my site. Thid has worked fine for ages and I have code to check that if the article I emailed has not appeared on my site within X mins of me posting it I post again.
However sometimes I notice (usually from Jetpack Tweets) that the title is just tmptitle and the body is just tmppost. I also use Strictly TweetBOT and can add tmppost and tmptitle into my noie words so any posts are ignored with those words in the body or title.
I have searched the Postied code base and cannot find any menton of those words so can only presume it’s a WP thing unless WP does this automatically whilst Postie is generating a new post and then changes it over after.
Why it stays with TmpTitle and TmpPost I don’t know but maybe an out of memory error or issue with the post beng processed causes this to happen?
Do you know when these get set – I am presuming during a post being made – but why are posts with only these values as title and body allowed to go on as published asrticles and be tweeted out? I want to put some code in somewhere that says if the title is tmptitle then ignore it as a post but I don’t know where to look.
Do you know how I can stop this from happening?
Thanks
Rob
-
The tmpTitle post is created at the beginning of a Postie run as a “draft” post. This is so that Postie has something to connect the attachments to. Once the post is complete Postie updates the title and changes the status.
Are you getting posts that are tmpTitle or just Tweets?
I am getting posts that are just tmpTitle and tmpPost.
This then follows on to Tweets that tweet this article out.
I searched the Postie code base but couldn’t find the words. I want to be able to ensure NO post is saved/published when the title/article is just tmpPost / tmpTitle.
I want to ensure these articles are not posted.
How can I stop this and where is the code so I can look / edit it?
Thanks
Hi
Just to add something.
I notice this problem because I get no emails back from the ystem telling me “x has been posted” etc.
I then go into WP and see lots of posts with just tmpTitle tmpPost there.
If I restart Apache and my email servers it then seems to work fine.
I don’t know why this would be happening.
Thanks
Rob
Do you have any error messages in your Apache logs?
I would have to search as they are full of “Client Denied Errors” due to firewall blocks etc.
I haven’t ever seen any errors but this is an intermittent problem so doesn’r happen every day.
A full breakdown of the problem would be.
1. Emailed in articles are posted out by my app which do get processed in the end with proper titles and bodies but sometime they get tweeted out like thid > https://twitter.com/ukhorseracetips/status/582121532429852672 which you can see does go to a real article. It was just processed and emailed out like this even though a real tweet was also posted out e,g https://twitter.com/ukhorseracetips/status/582121713988734976
2. The process is the email is sent in. Postie runs. My Strictly AutoTags plugin runs to add relevant tags. Then once this is finished a custom hook tells my Stricty AutoBOT plugin to run and use tags for #hashtags and send the tweets out. If no tags exist yet then default ones are used (as in the first example)
3. So if you are only using these as temp words I don’t get why some posts would work fine ans others not. Even if my AutoTags plugin hadn’t finished making tags by the time the tweets went out (which it shouldn’t anyway due to my custom tagging_finished hook which initiates the Tweeting) then the default #hashtags are used like in the problematic tweet.
4. As that tweet doesn’t actuslly have no body or title I don’t know why the tmpTitle tmpbody is being used still.
Another problem I have is
1. I send emails in – no mailserver errors returned sending them out.
2. Then Postie doesn’t process the post and they just sit there in the draftd section with just tmpTitle and tmpbody as content.
3. As no content is added, no tagging is done and no tweeting is done.
4. I also don’t get back emails saying the emails have been sent in (I guess this happens after processing?)
5. So my posts don’t get published. No tweets and no articles exist.
6. However when I go in and restart Apache (or reboot) and restart the Mail Servers Postfix/Dovecot. Then restart my service (the app that sends out the emails etc) – it seems to fix the problem and the emails turn into posts and are tweeted out – although this doesn’t sort out problem 1 (the tmpTitle in the tweet etc)
Maybe
1. An out of memory error is happening causing the posts not to be published
2. Some sort of Jetpack conflict is happening as they have email postd, tweets on publish and do on.
3. There needs to be some sort of debugging to log what happens when Postie rund with sn article to log why tmpTitle is not changed or content added.I want to really find the code that inserts your post (onc processed) into WP POSTS table. So I can check and ssy if the title id still tmpTile then I skip it – as my service checks for the exisence of posts on the site AND in the database and keeos sending them until they sre there.
At least that would be a quick fix for the problem of tweeting out with tmoTitle.
What do you think?
Thanks
Sorry about some misspelling I have some issues with my eyes at the moment
Hi
I had an issue today where all the emails had been sent in. Some go off to blogger and they appeared no problem. The ones on WP don’t and stay as drafts with just tmpTitle/tmpPost in them.
Luckily I have code that re-sends the post if not on the site but that doesn’t help if they cannot get onto it. I don’t know if I should try Jetpacks system or the default but it is very intermittent which makes me think it might be a memory issue not that I can find any bugs in my php/apache error logs.
Also when I first visited the site I was logged out (as admin) and when I logged in the next lot of posts came in and when I ran (manually) postie they all went on to the site okay.
However when another email came in and Postie ran automatically it just stayed as tmpPost. This is really weird as it worked fine yesterday and most days. It just happens every now and then usually when I am really busy and need to be working on something else!
Can you think of any quick fix ideas
e.g increase the memory limit in a file somewhere
tell me where you insert your post so I can skip tmpPost tweets
check something on the webserver / email clients / mail servers / format of the mail.
Has something changed with WP regarding admin levels and something won’t allow postie to run if I am not logged in on my PC as admin (as I usually am).
Anything out the box that could be an issue.
This has worked fine for years – only since upgrading to WP 4.1 does it seem to have got worse. I am loathe to ever do a WP upgrade as everything seems to break. Files don’t get copied up and plugins stop working until I go and re-save their settings.Has anybody else had this problem or something similar? The tweeting is a minor so I am more concerned about getting posts on 100% of the time.
Thanks
Rob
It is difficult to help if there aren’t any errors in the logs. You can try looking at https://postieplugin.com/faq/get-detailed-postie-output/ and following the directions in “To always log debug info to a log file” to see if you can identify any errors.
Hi
Today no posts went on (after upgrading Jetpack) – I was off work so not logged into website either. Lots of tmpTitle posts.
I checked the error logs for around that time and I got sll these errors (none seem to show actual error messages though)
Maybe you can make sense of these messages.
62.253.141.247 is the IP I post my articles into the site from.
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: Gothic Empire, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: Wolverhampton, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: 20:50, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: 55.56%, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: Glasgow Evening Times (Jeffrey Ross), referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: Gothic Empire, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: Wolverhampton, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: 20:50, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: 0.00%, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: Dan King, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: Happydoingnothing, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: Wolverhampton, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: 21:20, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: 50.00%, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: By the My Name, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Date: , referer: https://www.mywebsi te.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: post date: 2015-04-10 10:30:58 / 2015-04-10 10:30:58, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: post date: <h4>An HTML Post</h4><p>Test Text</p>
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: post type: found format ‘standard’, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: post type: <h4>An HTML Post</h4><p>Test Text</p>
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Categories: found categories, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Array\n(\n [0] => Array\n (\n [0] => Array\n (\n [0] => [Horse Racing Tips]\n [1] => [Members Tips]\n [2] => [Members NAPS]\n )\n\n [1] => Array\n (\n [0] => Horse Racing Tips\n [1] => Members Tips\n [2] => Members NAPS\n )\n\n )\n\n)\n, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: lookup_category: Horse Racing Tips, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: category: found by name Horse Racing Tips, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: stdClass Object\n(\n [term_id] => 5\n [name] => Horse Racing Tips\n [slug] => horse-racing-tips\n [term_group] => 0\n [term_taxonomy_id] => 5\n [taxonomy] => category\n [description] => Get all your horse racing tips here – Members and Free Tips!\n [parent] => 0\n [count] => 5411\n [filter] => raw\n)\n, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Categories: subject: [Members Tips] [Members NAPS] Members Horse Racing NAPS for the 10th of April 2015, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: lookup_taxonomy: 5 is in taxonomy category, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: lookup_category: Members Tips, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: category: found by name Members Tips, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: stdClass Object\n(\n [term_id] => 3071\n [name] => Members Tips\n [slug] => members-tips\n [term_group] => 0\n [term_taxonomy_id] => 3076\n [taxonomy] => category\n [description] => Members view your daily high ROI tips here!\n [parent] => 5\n [count] => 2838\n [filter] => raw\n)\n, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Categories: subject: [Members NAPS] Members Horse Racing NAPS for the 10th of April 2015, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: lookup_taxonomy: 3071 is in taxonomy category, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: lookup_category: Members NAPS, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: category: found by name Members NAPS, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: stdClass Object\n(\n [term_id] => 24596\n [name] => Members NAPS\n [slug] => members-naps\n [term_group] => 0\n [term_taxonomy_id] => 24618\n [taxonomy] => category\n [description] => NAPS from over 62 top tipsters that can be viewed by Members\n [parent] => 5\n [count] => 316\n [filter] => raw\n)\n, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: tag_Categories: subject: Members Horse Racing NAPS for the 10th of April 2015, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: lookup_taxonomy: 24596 is in taxonomy category, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: post category: <h4>An HTML Post</h4><p>Test Text</p>
[Fri Apr 10 11:31:24 2015] [error] [client 62.23.141.247] Postie: post comment: <h4>An HTML Post</h4><p>Test Text</p>
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: post custom: <h4>An HTML Post</h4><p>Test Text</p>
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: GetParentPostForReply: Looking for parent ‘Members Horse Racing NAPS for the 10th of April 2015’, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: GetParentPostForReply: No parent found, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Not a reply, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: filter_Newlines: filternewlines, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: filter_Newlines: convertnewline: 0, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: post newline: <h4>An HTML Post</h4><p>Test Text</p>
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: images in post: 0, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Array\n(\n)\n, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Auto gallery: none, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: auto adding images to end, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: post body ReplaceImagePlaceHolders: <h4>An HTML Post</h4><p>Test Text</p>
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Post Author: 1, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Date: 2015-04-10 10:30:58, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Category: 5, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Category: 3071, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Category: 24596, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Ping Status: open, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Comment Status: open, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Subject: Members Horse Racing NAPS for the 10th of April 2015, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Postname: members-horse-racing-naps-for-the-10th-of-april-2015, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Post Id: 33436, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:31:24 2015] [error] [client 62.253.141.247] Postie: Post Type: post, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:35:30 2015] [error] [client 62.253.141.247] Postie: MailToRecipients: send mail, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:35:30 2015] [error] [client 62.253.141.247] Postie: To: [email protected], referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:35:30 2015] [error] [client 62.253.141.247] Postie: From: WordPress <[email protected]>\r\n, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:35:30 2015] [error] [client 62.253.141.247] Postie: MailToRecipients: Successfully posted to My Name\nYour post ‘Subject: [Horse Racing Tips] [Members Tips] [Members NAPS] Members Horse Racing NAPS for the 10th of April 2015’ has been successfully published to My Name <https://www.mywebsite.com/2015/04/members-horse-racing-naps-for-the-10th-of-april-2015/>.\n, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:35:42 2015] [error] [client 62.253.141.247] Postie: Done, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:35:42 2015] [error] [client 62.253.141.247] Postie: Mail fetch complete, 1 emails, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settings
[Fri Apr 10 11:35:42 2015] [error] [client 62.253.141.247] Postie: memory at end of email processing:113040672, referer: https://www.mywebsite.com/wp-admin/admin.php?page=postie-settingsThanks for your help on this weird matter.
These are not really errors, rather just informational messages. It is possible the Jetpack is turning on the WP_DEBUG constant. See https://postieplugin.com/faq/get-detailed-postie-output/
Hi
Is there anyway to get your system to ignore duplicate posts?
For some reason if two emails come into the site quite quickly they both get posted to the site.
Also I have had some trouble with my hosting company which meant my site was down for a day over Sunday. However this morning they fixed it and it is back up.
However all the posts from yesterday which I would have presumed went no-where due to no Apache/MySQLprocess running (obviously wrong), were put onto the site today first thing. Are these stored in cache?
As I am basically using a customised version of your plugin can you tell me where the code would be to insert a new post so I could put a
WHERE Post_Title NOT IN(SELECT Post_Title FROM WP_POSTS)
Type query around it to prevent duplicates going on? I take it there is no chance of parallel processes running which would defeat an idea like this from working or maybe a CRON job still running from 5 minutes ago that then gets to a post that has just been started on by a new Postie job initiated by a CRON job started 5 minutes later. If so I could expand the time between the jobs.
I just wanted to know how it worked and the best way from your point of view.
Thanks for all your help.
Rob
In the future please start a new thread for a new question.
You need to look at the function PostToDB()
- The topic ‘tmptitle and tmppost are appeaing in my posts’ is closed to new replies.