By Prashant on Tuesday, 25 August 2015
Posted in General Issues
Replies 12
Likes 0
Views 579
Votes 0
Hi

Crons seems execting but never send notification mails, have tried changing from wget to curl also

curl https://www.bankcircle.in/index.php?option=com_easydiscuss&task=cron

/usr/bin/wget -O /dev/null "https://www.bankcircle.in/index.php?option=com_easyblog&task=cron"


Both for EB & ED.
Hi Prashant,

Regarding your issue, the curl url in your post was incorrect. You will need to curl to:


https://www.bankcircle.in/components/com_easyblog/cron.php


And for your wget, I not sure if this is related to your server configuration or not as I recall correctly, not all server the wget to https (SSL). You might want to verify this with your hosting provide.

By the way, if you decide to use curl, you will need to modify the file 'JOOMLA/components/com_easyblog/cron.php' and change the $site variable at line 18 to your site. E.g.


$host = 'http://www.bankcircle.in';


Let me know if the above work for you or not

Hope this help and have a nice day!
Sam
·
Tuesday, 25 August 2015 15:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Ok will change the curl cmd but is provided by my hosting provider.

This is what I get after cron is executed for EB.


--2015-08-25 00:00:01--  https://www.bankcircle.in/index.php?option=com_easyblog&task=cron
Resolving http://www.bankcircle.in... 109.199.126.57
Connecting to http://www.bankcircle.in|109.199.126.57|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/x-json]
Saving to: `/dev/null'

     0K                                                        88.2M=0s

2015-08-25 00:00:02 (88.2 MB/s) - `/dev/null' saved [663]



Pls provide the exact curl cmd & changes required both for EB & ED.
·
Tuesday, 25 August 2015 15:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Pls provide the exact curl cmd & changes required both for EB & ED.


For EasySocial, your curl command in your cronjob should look like below:


curl 'https://www.bankcircle.in/components/com_easyblog/cron.php'



Next, you have to edit file 'JOOMLA/components/com_easyblog/cron.php' and change the $host variable at line 18 to your site. E.g.


$host = 'http://www.bankcircle.in';


And for your EasyDiscuss, the process is similar to EasySocial. The command should be as below:


curl 'https://www.bankcircle.in/components/com_easydiscuss/cron.php'



Next, you have to edit file 'JOOMLA/components/com_easydiscuss/cron.php' and change the $host variable at line 20 to your site. E.g.


$host = 'http://www.bankcircle.in';


Hope this help.
Sam
·
Tuesday, 25 August 2015 17:54
·
0 Likes
·
0 Votes
·
0 Comments
·
hi,

should I change for both of them

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

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

// In case the host name is not configured.
if( $host == 'site.com' )
{
return;
}
·
Wednesday, 26 August 2015 19:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Prashant,

I am sorry for the delay of this reply as we are pretty shorthanded currently. You only need to change the one at line #2
·
Thursday, 27 August 2015 03:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It's not working, mails are still pending as seen in the EB admin.

Cron is returning sthing like this
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    20    0    20    0     0     23      0 --:--:-- --:--:-- --:--:--    23
100    20    0    20    0     0     23      0 --:--:-- --:--:-- --:--:--    23
Cronjob processed.
·
Sunday, 06 September 2015 02:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Please provide us with your cpanel access and we will set this up for you.
·
Sunday, 06 September 2015 14:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Pls find
·
Sunday, 06 September 2015 16:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Prashant,

I have updated the cron job in cpanel for you. Can you give it a try?
·
Sunday, 06 September 2015 21:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It didnot work. pls not website is not located in public_html ; can that be the reason for non execution . Prob, error started cropping up after this shift only.
·
Tuesday, 08 September 2015 01:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Any update.
·
Thursday, 10 September 2015 21:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Prashant,

I am really sorry that delay of this reply,

I already double check with this, it seems like the cron command is set correctly but I noticed the system generated that your mail settings is not configure correctly error (SMTP connect() failed.), perhaps you can try take a look of my attached screenshot below.

Can you consult with your Webhosting provider regarding this and see is it all the login credentials setup correctly from your backend > system > global configuration > server tab > Mail Settings

Keep us updated then.
·
Friday, 11 September 2015 16:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post