By Rachel Brown on Wednesday, 07 October 2015
Posted in Technical Issues
Replies 7
Likes 0
Views 540
Votes 0
Hello,

Our EasyBlog subscription email notifications only seem to be partially working. If a user subscribes to a category, an email is generated letting them know that they are now subscribed - this works great. Similarly, the fact that they are subscribed to the category shows up under 'Subscriptions' in the backend. Perfect.

However, if a post is then posted to the category in which the user is supposed to be subscribed, they don't receive an email . I have attached some screen shots to show you the settings we have, which as far as I'm aware should work fine but please let me know otherwise!

Are you able to advise why subscription emails may not be working properly? I cannot offer direct access to our site unfortunately but am happy to send more screen shots/set up a skype screen share if required.

Thank you!
Hey Rachel,

I have just tested this locally and when I subscribed to a category as a guest, posted a new blog post as an admin, the guest did receive the notification email correctly. Are you using the latest version of EasyBlog on the site?
·
Thursday, 08 October 2015 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I'm using version 3.9.15218, so not the newest. However I assume this function should work in this version too?

Thanks!
·
Thursday, 08 October 2015 16:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel,

Your Easyblog is outdated. I would advise you to update to the latest Easyblog 5. But if you want to stick with Easyblog 3.9.xxxx, I will send you the latest version of Easyblog 3.9 and see whether the issue still exist.

By the way, have you set up your cronjob to send out those pending emails?
·
Thursday, 08 October 2015 17:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Nik - the problem we have it that we've done some custom work on the current version so upgrading would lose that (not to say that can't be arranged, but we can't just make a quick switch).

We have set up a cron although at the time that was specifically to pull in blogs via email to the site (a fantastic member of your team - Arlex - helped us with this). Here's the code for that, do let us know whether it needs to be adjusted at all!

<?php
/**
* @package EasyBlog
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasyBlog is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

########################################
##### Configuration options.
########################################

// This should not contain http:// or https://
$host = 'intranet.brainjuicer.com';

########################################

// In case the host name is not configured.
if( $host == 'site.com' )
{
return;
}

//$fp = @fsockopen( $host , 80 , $errorNum , $errorStr );
$fp = @fsockopen( 'ssl://' . $host , 443 , $errorNum , $errorStr );

if( !$fp )
{
echo 'There was an error connecting to the site.';
exit;
}


function connect( $fp , $host, $url )
{
$request = "GET /" . $url . " HTTP/1.1\r\n";
$request .= "Host: " . $host . "\r\n";
$request .= "Connection: Close\r\n\r\n";

fwrite( $fp , $request );
}

connect( $fp , $host , 'index.php?option=com_easyblog&task=cron' );
connect( $fp , $host , 'index.php?option=com_easyblog&task=cronfeed' );

fclose( $fp );

echo "Cronjob processed.\r\n";
return;

Thanks!
·
Thursday, 08 October 2015 20:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel,

Sorry for the late reply. Correct me if I'm wrong, after Arlex made a changes in this file, Easyblog is able to pull in blogs via email to the site? If so, meaning that your cron is correctly configured. May I know, when you post a new blog in that particular category, does emails get generated in the Easyblog>Mail Activity ?
·
Thursday, 15 October 2015 18:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

No problem at all. That is correct - after Arlex helped us Easyblog now pulls in blogs via email to our site. Great to know the cron is set up correctly!

Our Mail Activity is showing as empty. This is despite the fact that a member of our site posted a blog yesterday to the category 'All blogs' (we only have the one category) and I am a subscriber to that category.

Happy to show you over skype screen share if that works for you, I have Arlex's details so could ask for yours?

Many thanks Nick!
·
Thursday, 15 October 2015 18:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rachel,

It is not easy for us to debug like this and it will take time . It is advisable to either upgrade to the latest version of EB3.9 or upgrade to EB5. Your version is too old (it is on January 2014) and we have addressed a lot of fixes since then.
·
Thursday, 15 October 2015 19:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post