Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Post By Email Kunena Error [solved], Manual import works - cron works but does not post.
herzenssache
post May 8 2012, 07:50 AM
Post #1


Newbie
*

Group: Members
Posts: 5
Joined: 6-May 12
From: Austria
Member No.: 1,182



Hi,

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
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post 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
Go to the top of the page
 
+Quote Post
herzenssache
post May 8 2012, 11:08 AM
Post #3


Newbie
*

Group: Members
Posts: 5
Joined: 6-May 12
From: Austria
Member No.: 1,182



QUOTE (Ivan Stamenov @ May 8 2012, 12:15 PM) *
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...

biggrin.gif

all the best,
Matthias
Go to the top of the page
 
+Quote Post
Web Design Seo
post May 8 2012, 12:35 PM
Post #4


Web Design Seo
****

Group: Root Admin
Posts: 4,169
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 услуги.
Go to the top of the page
 
+Quote Post
herzenssache
post May 8 2012, 12:47 PM
Post #5


Newbie
*

Group: Members
Posts: 5
Joined: 6-May 12
From: Austria
Member No.: 1,182



QUOTE (Web Design Seo @ May 8 2012, 02:35 PM) *
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 rolleyes.gif
Thanks a million,
Matthias
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No New Posts Post By Email To K2 Images Not Resizing
1 bossies 6,267 31st May 2019 - 10:49 AM
Last post by: Web Design Seo
No New Posts Post By Email Pro - Cron Warnings
JROUTER_MODE warnings
1 Brian Craigie 6,166 31st January 2019 - 08:42 AM
Last post by: Web Design Seo
No New Posts Post By Email, Error 500
500 error on backend
1 galamarco 5,558 17th January 2019 - 06:29 AM
Last post by: Web Design Seo
No new Pinned: Topic has attachmentsPost By Email Pro
Pro version of Post By Email component
113 Ivan Stamenov 101,775 17th January 2019 - 06:28 AM
Last post by: Web Design Seo
No New Posts Error [111] [connection Refused]
[solved]
2 Jan van Kuijk 19,516 17th September 2016 - 07:13 AM
Last post by: Jan van Kuijk
No new Post By Email Not Working Since Joomla 3.5.0 Update [solved]
5 tompuchner 23,567 2nd May 2016 - 07:04 AM
Last post by: Web Design Seo
No New Posts Post By Email Using Mms On A Mobile Phone
1 alexilio 14,551 13th April 2016 - 09:44 AM
Last post by: Web Design Seo
No New Posts Post By Email Jomsocial - Unable To Post To Wall
3 uglykidjoe 9,688 11th February 2016 - 07:25 AM
Last post by: Web Design Seo
No New Posts Post By Email Doesn't Works
1 cranky69 16,114 1st December 2015 - 10:30 AM
Last post by: Web Design Seo
No New Posts Post By Email Pro Won't Process Messages But Not Published
All messages are processed but some of them are not published
1 sconello 11,614 9th November 2015 - 11:53 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 12th December 2019 - 09:16 AM
Clicky Web Analytics