Support Online: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

question-circle JUX Weather Forecast: Auto-detect location hardcoded to 8.8.8.8 and using wrong

More
5 hours 20 minutes ago #43190 by Rob Kivit
Dear JoomlaUX Support Team,
I am writing to report a bug in the "Current Address" (Auto-detect location) feature of the JUX Weather Forecast module. I have configured my IPinfo.io token, but the module is completely stuck on New York.
After inspecting the output, I found that the module is generating the following incorrect cURL request on the background:
curl -H "Authorization: Bearer [MY_TOKEN]" api.ipinfo.io/lite/8.8.8.8

It looks liketThere are two bugs in this request:
1. Hardcoded IP: The module is sending Google's public DNS IP (8.8.8.8) to the API instead of dynamically capturing and sending the real visitor's IP address. This causes the API to return a US location, forcing the module into the New York fallback.
2. Incorrect Endpoint: The URL points to /lite/8.8.8.8, which causes authentication issues with standard IPinfo tokens. It should query ipinfo.io/ [VISITOR_IP] instead.
Could you please provide a hotfix or updated helper.php file where the user's real dynamic IP is fetched and the correct IPinfo URL structure is used?

Thank you!

Kind regards,
Rob

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.034 seconds
Powered by Kunena Forum