By Kane on Friday, 13 December 2013
Posted in Technical Issues
Replies 17
Likes 0
Views 1.4K
Votes 0
The latest blog entries send out multiple emails notifications. This last one sent 5
Hello Kane,

There are possibilities that when "Send email on page load" is enabled, it generates duplicate e-mails. Why? When the script executes, someone else might be viewing the page and before the e-mail get's dispatched, it get's created again.

I would strongly suggest that you consider creating a cron job instead of "Sending email on page load".
·
Friday, 13 December 2013 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
What is the cron job command for this?
·
Friday, 13 December 2013 11:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ken,

The cron job command would be like this: /bin/wget -O /dev/null "http://yoursite.com/index.php?option=com_easyblog&task=cron"; (replace the domain name with your site's domain) . But for the wget path, the path might be different for each hosting. You need to consult you hosting about the correct wget path. Hope this helps.
·
Friday, 13 December 2013 11:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks. Two questions, first, I noticed the same command is use for feed importer. Does a single command run all the tasks? Also, my host provider doesn't allow wget and recommends using curl, but won't help with the command translation. Could you provide the command using curl?
·
Saturday, 14 December 2013 08:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kane,

For the feed importer, we use this URL: "http://yoursite.com/index.php?option=com_easyblog&task=cronfeed";. You can use this command if your hosting using curl:
curl --user-agent -O "http://yoursite.com/index.php?option=com_easyblog&task=cronfeed"; but but have to test it because it might be different depend on the server host. Hope this helps.
·
Saturday, 14 December 2013 08:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks... got it working, but this is the message I get with the following command, is it normal?

Command:
/usr/bin/curl -O /dev/null --user-agent local "http://mysitehere.com/index.php?option=com_easyblog&task=cron";

Message:
curl: (3) <url> malformed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
103 207 103 207 0 0 215 0 --:--:-- --:--:-- --:--:-- 322
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<_tml><_ead>
<_itle>404 Not Found</_itle>
</_ead><_ody>
<_1>Not Found</_1>
<_>The requested URL /index.php was not found on this server.</_>
</_ody></_tml>
·
Saturday, 14 December 2013 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kane,

Sorry for the late reply as it's the weekends. If you are using curl you will have to change the comment a little. Please take a look at this guide http://stackideas.com/docs/easyblog/cronjobs/setting-up-cronjobs-for-godaddy-hosting Please note that the path should be

/yourrootpath/components/com_easyblog.cron.php

Hope this helps.

Thanks!
·
Sunday, 15 December 2013 14:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Adelene,

I am getting confused as there are two different pathways I am being told is correct. I don't see a php file for the pathway you just mentioned. Can you confirm the pathway for the two following cron jobs:

EasyBlog Cron
EasyBlog CronFeed

Thanks.
·
Monday, 16 December 2013 10:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kane,

So sorry for the delay in getting back to you. May i have your cPanel access so that i can set it up for you? Please advice.

Thanks!
·
Monday, 16 December 2013 13:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Info entered.
·
Monday, 16 December 2013 14:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kane,

I've tried to access your cpanel but I got Login Attempt Failed!. Please advise.
·
Monday, 16 December 2013 16:01
·
0 Likes
·
0 Votes
·
0 Comments
·
hmm, I was just able to from a fresh browser. I can't see the hidden field, so maybe there was a typo. Also, look at the username very closely. It appears to be same as domain, but isn't. Sometimes I accidentally type in the domain.
·
Monday, 16 December 2013 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello kane,

So sorry for the delay in getting back to you. I have setup the cronjob for you Hope this helps.

Thanks!
·
Tuesday, 17 December 2013 00:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Adelene. This is the message that I receive for the cron job

"
curl: (3) <url> malformed

curl: (3) <url> malformed
"

I don't see any cron.php file in that location either... Nor do I see cronfeed.php. I am trying to get both working.
·
Tuesday, 17 December 2013 01:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kane,

So sorry for the delay in getting back to you. I redid the cron but I can't test it as I can't login your backend. I get a 403 Forbidden error when I try to access it. Could you please checkout if the cron is working? Hope this helps.

Thanks!
·
Tuesday, 17 December 2013 17:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks a bunch Adelene. Yes, I have backend access security measures that require ip approval before access is granted. I also see the both the cron and cron feed are executing. Many mahalos.

Quick questions. What do you suggest I set the easyblog cron intervals for? Is is merely sending out blog action notifiers? I also have easydiscuss. Would you also recommend setting up a cron job for easydiscuss?

If you can answer these, I'd be happy to mark answer as accepted. Thanks again!
·
Tuesday, 17 December 2013 23:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kane,

For feeds I would suggest that you check what is the interval for the blogs to be posted. If it is not often perhaps you can set once per day. For emails If you have a lot of users it is better to have it at closer intervals. The best that I can suggest is every 5 minutes. Hope this helps.

Thanks!
·
Wednesday, 18 December 2013 00:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post