Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Cronjob not working

8 years 10 months ago
Licenses:
JomSocial Expired

ISSUE SUMMARY:
I set up cron job in my server but the e-mais I receive give me this message:

Looking up equismap.com
Making HTTPS connection to equismap.com

lynx: Can't access startfile https://equismap.com/index.php?option=com_community&task=cron

I tried with and without www in url address., and using http: and https:

I am using hostgator with cpanel, and the command line is this one:
lynx -source "http://www.yoursite.com/index.php?option=com_community&task=cron" > /dev/null

Thanks in advance

8 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Daniel,

Seems your server has some special configuration with "lynx", Another solution and this is easy, you can use croneasy.com or setcronjob.com to run the cron :)

I hope it helps

cheers!

8 years 10 months ago
Licenses:
JomSocial Expired

Hello Dimas,

I changed the command to:

wget -O /dev/null "https://www.equismap.com/index.php?option=com_community&task=cron" > /dev/null	

and the email response changed to:
--2016-06-24 08:15:05--  https://www.equismap.com/index.php?option=com_community&task=cron
Resolving www.equismap.com... 192.232.249.112
Connecting to www.equismap.com|192.232.249.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/xml]
Saving to: `/dev/null'

     0K                                                        33.2M=0s

2016-06-24 08:15:08 (33.2 MB/s) - `/dev/null' saved [520]

It seems to be working, however this job didn´t put coordinates in my users table.
My user´s register in my site using a custom form made by me. This form insert user´s data in all default jomsocial fields (address,city,state,country), but not in coordinates fields (other table). I need to refresh user´s coordinates. I read documentation and I understood that cronjob would do this task.
Please advice.

Thanks in advance

8 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

we dont have code to recoordinate the maps, but we only have the code to get the user counter on the cities and countries, which the result can be seen on google map on dashboard page.

8 years 10 months ago
Licenses:
JomSocial Expired

Hi Dimas,

Just to be sure,

I am supposed to get and store user coordinates in jomsocial database during registration, or when the user provide address fields in a form, am I right?

A second alternative would be a thirdpart extension.

Thanks in advance

8 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Daniel,

You need to make sure set the configuration is correct, i test with this configuration on my local and it works..



Or maybe your location cant be detected by google maps system.

thirdparty solution is another smart solution, maybe you can try it as well.

thank you!

Attachments:
8 years 9 months ago
Licenses:
JomSocial Expired

Hey Dimas,
I didnt get it yet.
I understood that cronjob do not put coordinates based on users address.
I am not using jomsocial registration form, but my own custom form.
I am already using the configuration you passed in your last answer.
My question is:
When exactly jomsocial gets users coordinates?

Thanks

8 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Daniel,

The coordinates on table community_users will be generate once you finished update your profile (if you used jomsocial register form). And the coordinates for members map on backend dashboard will be updated via cron jobs.

But if you used your own custom code, the coordinates cant be generated, since that coordinates only generated from jomsocial code.

anyway, we have valid bug with google map API, please you also apply this patch
www.jomsocial.com/forum/profile-universa...ocation-issue#164472

thank you!

8 years 9 months ago
Licenses:
JomSocial Expired

Thank you Dimas. Problem Solved!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW