2 sam2kb Sep 19, 2011 08:31

I tried that and nothing seems to be happening. Do I have to modify any files like the cron_exec.php ?
You need to call /cron/getmail.php instead of /cron/cron_exec.php in this particular case. In future versions we'll fix this flaw.
I was wondering because I got a
/bin/sh: /hsphere/local/home/c258800/anucreation.com/blog/blogs/cron/cron_exec.php: Permission denied error.
I have changed to getmail.php and see what happens
Don't use /bin/sh, it needs to be /usr/bin/php or similar.
You can also try
wget -O /dev/null http://whatever.tld/cron/cron_exec.php
I didn't use /bin/sh, I was just using /hsphere... The server added /bin/sh to the error message. I changed it to getmail.php and now am getting a 500 Internal Server Error
also I tried running getmail.php from the url and nothing happened. It didn't post the email post.
Did you try to connect an post messages from backoffice first? There are links/buttons to test the feature.
also I tried running getmail.php from the url and nothing happened
It's normal, there will be no output. Try adding ?test=1 or ?test=2 or ?test=3 to the URL, you'll see some debug messages.
I tried to add all three test on the url and nothing still happened ( it just redirected back to the default blog).
When I tried back office
the connection test: successful.
The message test: the Authentication failed for user.
The verbose test: Wrong login or password. First line of text in email must be in the format "username:password".
So my first line is wrong. I put this as the first line
blog2163@anucreation.com:password
there is no spaces or punctuation in the line at all.
What am I doing wrong.
"username:password" are your b2evo login and password
You setup mail server config in backoffice.
now authentication works but am getting Fatal error: Class 'Item' not found in /hsphere/local/home/c258800/anucreation.com/blog/blogs/cron/getmail.php on line 691
It's already fixed. Please use revision 1.44.2.2 of /blogs/cron/getmail.php
http://evocms.cvs.sourceforge.net/viewvc/evocms/b2evolution/blogs/cron/getmail.php?revision=1.44.2.2&content-type=text%2Fplain&pathrev=v-4-0
Yeah, the whole feature is bloated :(
We are going to completely rewrite it in the future b2evo version.
working beautifully. Thanks for the help
now when I try to run it in crontab I now get a
Status: 500 Internal Server Error
X-Powered-By: PHP/5.2.17
Content-type: text/html
My server administrator saids :
/blog/cron/getmail.php on line 59
That is cause by issues in cronjob with include function.
On your 59 line - param( 'test', 'integer', 0 );
You should modify your code to run under cron and test it again.
Don't add "test=xx" param when you run the file in cron mode.
You may need to wait for b2evo v4.2 if it still not working for you.
not using any parameters in cron just /cron/getmail.php.
was anything done with the getmail.php in 4.1.1
Versions 4.1.x will not have this feature added. It's not just an updated getmail.php, there were some critical changes that cannot get into the stable version before they are fully tested.
Here's a log from dev branch
Post by Email: (@sam2kb)
- The standalone file getmail.php converted into internal scheduled job, you don't need to call it directly any more.
- Can create posts from HTML messages (rich text is not supported at the moment).
- Added support of inline images with relative to email URLs.
- Added an option to attach images to posts instead of inserting them with <img> tags.
- It's now possible to define main and extra categories for your post in the email.
You need to set up a cron job
http://manual.b2evolution.net/Set_up_a_cpanel_cron_job
Place <category>44</category> tag in message body, 44 is your category ID