By Ewoud on Saturday, 05 April 2014
Posted in General Issues
Replies 11
Likes 0
Views 1.2K
Votes 0
Hi there,

In the tab 'Email activity' I see several lines that have a state 'Published' (geen tick) and several that have a state 'Unpublished' (red cross). I have setup a cronjob in my Cpanel to run every five minutes. So I am trying to understand why some are sent automatically and some are not sent. Are there several settings to get an email sent?

I have added the cronjob in the Additional information box. Maybe the cronjob is not completely right and some email are already being sent by default?

Thanks,
Ewoud
Hello Ewoud,

There's a couple of reasons why they are not marked as sent:

1. Either the email recipient is invalid

or

2. Your mail server is unable to contact the recipient's mail server

or

3. The cron hasn't executed that particular record (I highly doubt that this is the case since you have configured the cron to execute every 5 minutes)
·
Saturday, 05 April 2014 14:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thanks for the quick reply.

1. The email recipient are valid. At least my own email address is correct
2. Is this something I can check somewhere?
3. Have you checked the command I added in the Additional info box? I think I configured it correctly but I just want to be sure.

Also, when I publish an email activity that wasn't sent automatically by hand, it doesn't sent the email. For example: A new friend request was sent (by publishing the email activity by hand) to my own email address 'info @ graphiqs.nl' but I didn't recieve it. To be sure it works I just now created a test email and sent it from info @ gtaplanet.nl to info @ graphiqs.nl and it was sent and received without any problem.

Regards,
Ewoud
·
Saturday, 05 April 2014 18:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ewoud,

I can't really tell if the "wget" command is in the correct path as this can only be confirmed by your hosting provider. Your cron should look something like this,


/bin/wget -O /dev/null "http://site.nl/index.php?option=com_easysocial&cron=true"; 2>&1
·
Sunday, 06 April 2014 01:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I've been playing with the cronjob settings now for a few hours but I still cannot get it to work properly.

When I add index.php?option=com_easysocial&cron=true" 2>&1 in my browser just after http://www.gtaplanet.nl, it changes the url to: http://www.gtaplanet.nl/index.php?option=com_easysocial&cron=true%22%202%3E&1.
Then the cronjob is executed. So doing this manually it works fine.

My original cronjob in Cpanel was a bit different, so I changed the cronjob in my Cpanel to: /bin/wget -O /dev/null "http://gtaplanet.nl/index.php?option=com_easysocial&cron=true"; 2>&1. But now I get an email with an error message everytime the cronjob is executed (set to every 30 minutes). The details of the email are as follows:
Subject: Cron <graphiqs@serv01> /bin/wget -O /dev/null "http://gtaplanet.nl/index.php?option=com_easysocial&cron=true"; 2>&1
Message: /bin/sh: /bin/wget: No such file or directory

Any ideas what I am doing wrong?
·
Sunday, 06 April 2014 17:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Then this basically means the path to "wget" is wrong. You need to check this with your hosting provider as I do not know what is the correct path to wget.
·
Sunday, 06 April 2014 21:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thanks for pointing that out. I contacted my hostingprovider (Siteground) and indeed the path is different. It should be:
wget -O /dev/null "http://gtaplanet.nl/index.php?option=com_easysocial&cron=true"; 2>&1

You probably need to update the Documentation about this as well. And specifically the cronjob settings for Siteground.

Thanks for the help, once again .
·
Monday, 07 April 2014 02:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ewould,

Thanks for the heads up on this. By the way, if you don't mind, is it possible for you to provide us with the access to Siteground so that we can take some screen shots? Rest assured that personal details wouldn't be included in the screen shot.
·
Monday, 07 April 2014 18:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Because I am on a shared hosting I cannot create an extra Cpanel account. As you probably can imagine I do not want to give my general account details. But I can take the screenshots for you if you like. Just tell me what you exactly need and I will take the screenshots and sent them to you.

Just let me know if that will work for you. You can sent me an email if necassary to info @ graphiqs.nl.
·
Tuesday, 08 April 2014 00:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ewoud,

Yeah, that would be great as I just need the screen shots with the "path".
·
Tuesday, 08 April 2014 01:14
·
0 Likes
·
0 Votes
·
0 Comments
·
I have attached the printscreen. You will probably notice that I have added your sitename and mycommand > to make sure there is no email sent everytime the cronjob is executed.

Please keep in mind that you may not run the cronjob more than twice an hour. The following message is displayed in the cronjob page of Siteground:
Important: Please do not set your cron jobs to run in less than 30 mins. This is agains the Terms of use and may cause server overloads. Such crons will be reset.

If you need anything else, just let me know.
·
Tuesday, 08 April 2014 01:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Ewoud
·
Tuesday, 08 April 2014 11:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post