![]() ![]() |
May 8 2012, 07:50 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 6-May 12 From: Austria Member No.: 1,182 |
on our J2.5 site we encounter the following issue: Server Config is CentOs 5.8 with PHP 5.3.8 Community Builder 1.8 Post by Mail 1.5.0 I was able to get the Cron Job work by running: wget --max-redirect=10000 "http://herzenssache.org/administrator/components/com_post_by_email/cron.post_by_email.php" -o /dev/null The log in the component shows, that the cron did start. The time is correct. Also in the test account the email is being picked up and deleted. So this works fine too. However no forum post is created. If I use the manual "Import" function it works. I did of course send new mails and not the same ones again to test. Note, that our forum is a PRIVATE Forum and only logged in users can post. If I call the script manually Код http://domain.org/administrator/components/com_post_by_email/cron.post_by_email.php in the browser WHILE I AM LOGGED IN TO OUR SITE all works! If I am not logged in and I call the script I receive the following error: (Posting Test: ***ERROR COM_PBE_ERR_KUNENA_UNABLE_POST_MESSAGE: COM_KUNENA_NO_ACCESS]]>COM_PBE_CLOSE_WINDOW ]]> Any idea? Thank you, Matthias |
|
|
|
May 8 2012, 10:15 AM
Post
#2
|
|
|
Advanced User ![]() ![]() ![]() ![]() Group: Advanced Member Posts: 218 Joined: 15-April 11 Member No.: 761 |
Hi, Matthias.
The problem seems to be the missing active Joomla user when the cron job starts... Please try the following: 1. Open /administrator/components/com_post_by_email/cron.post_by_email.php Find the following code (the last two lines): Код $controller = new PostByEmailController(); echo $controller->importAll(); Replace it with: Код $credentials = array( 'username' => '<your username>', 'password' => '<your password>' ); if ($mainframe->login($credentials)) { $controller = new PostByEmailController(); echo $controller->importAll(); @$mainframe->logout(); } else echo 'Post By Email Cron Job fatal error: the login attempt has failed, wrong username and/or password!'; Replace <your username> and <your password> with actual account login info and give it a try. Best regards, Ivan |
|
|
|
May 8 2012, 11:08 AM
Post
#3
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 6-May 12 From: Austria Member No.: 1,182 |
Hi, Matthias. The problem seems to be the missing active Joomla user when the cron job starts... Please try the following: 1. Open /administrator/components/com_post_by_email/cron.post_by_email.php Find the following code (the last two lines): CODE $controller = new PostByEmailController(); echo $controller->importAll(); Replace it with: CODE $credentials = array( 'username' => '<your username>', 'password' => '<your password>' ); if ($mainframe->login($credentials)) { $controller = new PostByEmailController(); echo $controller->importAll(); @$mainframe->logout(); } else echo 'Post By Email Cron Job fatal error: the login attempt has failed, wrong username and/or password!'; Replace <your username> and <your password> with actual account login info and give it a try. Best regards, Ivan Dear Ivan, thank you for the great support! It worked... all the best, Matthias |
|
|
|
May 8 2012, 12:35 PM
Post
#4
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
If you like our extension and our work, please, write review in JED: http://extensions.joomla.org/extensions/au...oblogging/12215
-------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
May 8 2012, 12:47 PM
Post
#5
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 6-May 12 From: Austria Member No.: 1,182 |
If you like our extension and our work, please, write review in JED: http://extensions.joomla.org/extensions/au...oblogging/12215 Already done... should be approved by JED within the next days Thanks a million, Matthias |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 1st June 2026 - 10:23 PM |