By Rachel Brown on Wednesday, 03 December 2014
Posted in Technical Issues
Replies 23
Likes 0
Views 1.3K
Votes 0
Hello,

I'm trying to set up blog posts via email but cannot seem to get it working...

My IT team have set up cron jobs to run every 5 minutes and I have entered in the info they have given me into EasyBlog's Remote Publishing settings (see attached for screen shot).

When I click 'Run' I am advised that the connection is working... but I've tested sending emails to the designated intranet email address and nothing is appearing either on our website's frontend nor in the backend interface.

Sadly I cannot supply you with access details to our site but if you could offer me some advice as to why this may not be working/any settings I haven't configured correctly I'd be highly appreciative.

Thanks!
Hello Rachel,

I have replied on your ticket #32965, please have a check.
·
Saturday, 03 January 2015 00:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel Brown,

Can you try this few testing in the following and see how it goes?
#1. Try temporary disable this option "map email to the user's email"
#2. Then using someone email address post via email and wait for 1 minute then run this URL -> http://yourSiteDomain.com/index.php?option=com_easyblog&task=cron&debug=1 (Remember enable the error_reporting to Maximum) and see what result are you getting?
·
Wednesday, 03 December 2014 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thanks for your reply.

I temporarily disabled this option "map email to the user's email" and then tried posted to the intranet email address but nothing has happened.

When you say 'run this URL...' - what is supposed to happen? I receive a 404 error.

It may be worth noting that our IT team have not set up cron jobs using cpanel as stackideas suggest. Not sure whether this is why I'm receiving the 404 error?

Thanks,

Sophie
·
Thursday, 04 December 2014 19:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Just a thought;

Should the custom email address in EasyBlog Settings > Notifications be the same as that for remote publishing? Because they're not...

Thanks!
·
Thursday, 04 December 2014 19:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Helllo Rachel Brown,

Sorry for late reply to this,
To be honestly, we do not why you will hitting 404 error when you run that URL as I provided in previous reply.
Perhaps you provide us some screenshot regarding this? And which URL you trying to run in your browser?

If can, is it possible temporary upload your site to live site so that we can able to check on this? Please advise.
·
Friday, 05 December 2014 02:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thanks for your response. I think I may be confusing things here.

Can I just clarify; when you said "wait for 1 minute then run this URL -> http://yourSiteDomain.com/index.php?option=com_easyblog&task=cron&debug=1 (Remember enable the error_reporting to Maximum) and see what result are you getting? " did you just mean copy and paste the above URL into my URL bar? Where do I enable the error-reporting to Maximum?

This is the error I receive when I copy and paste the URL into my URL bar:

Not Found

The requested URL /index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 PHP/5.3.28 Server at yoursitedomain.com Port 80

..Thanks!
·
Friday, 05 December 2014 21:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel,

You're welcome. You can enable the error_reporting from your backend > system > global configuration > server

I think you have consult with your Webhosting provider regarding this, because it seems your intranet server to do some rewriting URL so hitting this 404 error , it suppose to have permission to run this URL like I run this URL in my local, so it will show the result, example my screenshot below.
·
Saturday, 06 December 2014 00:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Arlex,

I asked our IT team to take a look and they needed to alter the URL sligthly from 'CRONFEED' to 'CRON'. The output shows the following:
Email batch process finished.
Mailbox: Could not connect to mailbox
0 blog posts fetched from Twitter

Can you advise as to what I should do next?

Thanks!
·
Monday, 08 December 2014 17:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel Brown,

Sorry for late reply to this,
Yes, that cron command you should be put this similar (look for URL only)
/usr/bin/wget -O /dev/null "http://yoursite.com/index.php?option=com_easyblog&task=cron"


To be honestly, I have no ideas Unless we can access in your site, perhaps is there a way to upload your site to live site temporary so that we can able to check on this quickly?

Try the last thing, open this file -> JoomlaFolder\components\com_easyblog\classes\mailbox.php

//LINE 102
$this->stream = @imap_open( $this->mailbox_params, $this->username, $this->password );

//Replace with

$this->stream = imap_open( $this->mailbox_params, $this->username, $this->password );



Then do a few testing in your site :
#1. Enable Error_reporting to Maximum
#2. Try using your Super admin email address sent post via email
#3. Then run this URL http://yourSiteDomain.com/index.php?option=com_easyblog&task=cron&debug=1 (keep run few times)
And see what result you get.
·
Tuesday, 09 December 2014 01:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Where do I enable error reporting to maximum please?

Thanks!
·
Tuesday, 09 December 2014 20:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel Brown,

Sorry for late reply to this,
Check my screenshot below.
·
Wednesday, 10 December 2014 02:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex, I tried this and it had some effect... but not the one I wished for! When I posted a blog via the assigned blog email address, a load of script appeared in the EasyBlog module rather than the blog post.The change also affected our EasyDiscuss module.. See the below screenshot.

I've now changed the error reporting back to default and luckily things have returned to normal.

Any ideas?!

Thanks!
·
Wednesday, 17 December 2014 17:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel,

The error is just a Notice error. To fix this, please replace the attached files in:
../modules/mod_recentdiscussions/helper.php - Rename helper-1.php to helper.php
·
Thursday, 18 December 2014 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello, should there be another attachment in your last email or am I supposed to replace both these files:

../components/com_easyblog/helpers/helper.php - Rename helper-2.php to helper.php
../modules/mod_recentdiscussions/helper.php - Rename helper-1.php to helper.php

with the one attachment?

Thanks!
·
Tuesday, 23 December 2014 17:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel,

Sorry for missing out the attachment file, I have modified the previous reply, and follow the instruction and replace in your file location.
../components/com_easyblog/helpers/helper.php - Rename helper-2.php to helper.php
·
Tuesday, 23 December 2014 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello, We've carried out this change now but it hasn't make any difference.

Does the error reporting have to be maximum for cron jobs to work? When I change this I am still receiving error messages on our homepage email despite making the above suggested file change...

Thanks
·
Tuesday, 23 December 2014 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel,

Sorry for late reply to this,
Hmm, it should be fix that issues.
Actually I would like to see what you get the error message when you try to run this, check my instruction below again :

#1. Enable Error_reporting to Maximum
#2. Try using your Super admin email address sent post via email
#3. Then run this URL http://yourSiteDomain.com/index.php?option=com_easyblog&task=cron&debug=1 (keep run few times)
And see what result you get.
·
Tuesday, 23 December 2014 23:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok. Please find my results below.

Simply by changing error reporting to maximum (before doing anything with easyblog/the cron job), this error has appeared on my homepage within an EasyDiscuss module:

Notice: Undefined variable: groupByQuery in D:\Website\intranet-test\modules\mod_recentdiscussions\helper.php on line 87

Can you please send me an amended file for EasyDiscuss like you did for EasyBlog?

In addition to this, I have used my super user email address to post a blog to our intranet, run a cron, and here are the results when I run the above URL (with 'cron' changed to 'cronfeed' for our site):

Notice: Undefined variable: tbl in D:\Website\intranet-test\components\com_easyblog\helpers\feeds.php on line 421 Notice: Trying to get property of non-object in D:\Website\intranet-test\components\com_easyblog\helpers\feeds.php on line 421 Notice: Undefined variable: tbl in D:\Website\intranet-test\components\com_easyblog\helpers\feeds.php on line 421 Notice: Trying to get property of non-object in D:\Website\intranet-test\components\com_easyblog\helpers\feeds.php on line 421 No item migrated from feed "" ()

Thanks!
·
Wednesday, 24 December 2014 00:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel Brown ,

Can you try download my attachment mod_recentdiscussions module file and update from your Joomla extension manager for fix this issues?

Regarding this issues :
Notice: Undefined variable: tbl in D:\Website\intranet-test\components\com_easyblog\helpers\feeds.php on line 421 
Notice: Trying to get property of non-object in D:\Website\intranet-test\components\com_easyblog\helpers\feeds.php on line 421

Can you send this file for us? ->JoomlaFolder\components\com_easyblog\helpers\feeds.php
If I'm not wrong you are using very old version of Easyblog? Is there a way update to latest version of Easyblog and see how it goes?
·
Wednesday, 24 December 2014 01:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thanks for the information. How do I update one module in particular please? Do I just upload the new attachment or do I need to delete the old/replace somehow?

If I update the whole of EasyBlog, do I still need to make the above change or will this be done automatically? Can you send me the link to update please?

Finally, how do I sent you a file from the site?

Sorry for all the (probably stupid) questions!
·
Wednesday, 24 December 2014 17:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Also here's the output after changing to error reporting = maximum:

D:\Scripts>D:\Website\Wget\bin\wget "http://intranet-test.brainjuicer.com/index.
php?option=com_easyblog&task=cron&;debug=1
--2014-12-23 18:53:39-- http://intranet-test.brainjuicer.com/index.php?option=c
om_easyblog&task=cron&;debug=1
Resolving intranet-test.brainjuicer.com... 192.168.110.82
Connecting to intranet-test.brainjuicer.com|192.168.110.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 642 [text/html]
Saving to: `index.php@option=com_easyblog&task=cron&;debug=1.2'

100%[======================================>] 642 --.-K/s in 0s

2014-12-23 18:53:40 (24.9 MB/s) - `index.php@option=com_easyblog&task=cron&;debu
g=1.2' saved [642/642]

the debug file:

Notice: A non well formed numeric value encountered in D:\Website\intranet-test\libraries\shmanic\jssomysite.php on line 352

Notice: Use of undefined constant JLog - assumed 'JLog' in D:\Website\intranet-test\libraries\shmanic\jssomysite.php on line 207

Notice: Use of undefined constant JLog - assumed 'JLog' in D:\Website\intranet-test\libraries\shmanic\jssomysite.php on line 207
Email batch process finished. <br /><br />Mailbox: Could not connect to mailbox.<br />0 blog posts fetched from Twitter

Notice: Unknown: TLS/SSL failure for imap.hostedservice2.net: Invalid token, probably not an SSL server (errflg=2) in Unknown on line 0
·
Wednesday, 24 December 2014 18:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel,

To update a module, you simply do it by installing the module via Extensions Manager in Joomla. It's the same method which you use to install new extensions / modules / plugins.

As for the errors that you are getting, some of them are generated by 3rd party extensions while the last one is probably because you configured the email posting to use SSL for the mail connection but your mail provider doesn't support it. The only way for me to test this is for you to provide us with the following:


1. Joomla administration access
2. FTP access
3. Email access (The access to the mailbox which you want EasyBlog to connect to)
·
Wednesday, 24 December 2014 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Can we arrange a webex session instead and we can go through the settings and changes together?

Thanks

Tan
·
Friday, 02 January 2015 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post