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. 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?