Having an issue with server requests

Avatar
  • Answered
My technician from the API indicates that my server is adding extra variables IDs when request is sent to them, therefore returning en error message. The coding is fine and was tested on a different server and it works fine. It was also working fine before on my server but since last week the error message started showing. I opened a ticket: 2282792 but all i got was a general answer. Could you pls look into this further as my website is not functional anymore. Thanks
Avatar
anonymous
Hello Tingo,

Correct it showed USD as my currency and did not provide an error. I tried the website on 3 devices on two different networks and was not able to replicate the issue.

Best Regards,
TJ Edens
Avatar
anonymous
Hello Tingo,

Something on the server had to have changed for the script to start producing errors all of a sudden. What has your developer said about the script not working? Here is some code I threw together which essentially does the same thing you are trying to do but without putting it into an xml format.

$country = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR']));

echo $country['geoplugin_countryCode'];

Best Regards,
TJ Edens
Avatar
johnpaulb-imhs1
Hello, Thank you for contacting us about issues with server requests. We are happy to help you troubleshoot this issue, but will need some additional information to proceed. The links you provided in the ticket seem to be different scripts, for example (http://clients.your**********.com/projects/Jack...) lists 1 script (Aesthatic_wp). Is this the script you are running? Please provide an example of the extra variable IDs, that your API technician indicates is being added. What is the full error message that is being returned? If you have any further questions, feel free to post them below. Thank you, John-Paul B