Hello Sirs,
How come I get two warnings on set/view order page in admin?
Warning: Your IP 99.58.13.123 is not allowed to access this API!
Warning: Incorrect API Key!
How to get IP to be allowed ?
I checked the only payment method Paypal account API is matched with my store settings. What API key is talking about here?
Please help. Thanks in advance!
How come I get two warnings on set/view order page in admin?
Warning: Your IP 99.58.13.123 is not allowed to access this API!
Warning: Incorrect API Key!
How to get IP to be allowed ?
I checked the only payment method Paypal account API is matched with my store settings. What API key is talking about here?
Please help. Thanks in advance!
Hi,
In opencart 2.x new feature is added. Steps are as follows:
1) Create api user by going to admin - system - users - api.
2) Assign this api user to system - setting - edit - option - API User - save.
Once done. Make sure you don;t have maintenance mode or htaccess password protection system ON.
Now when you go to orders page. You only need to click ADD IP once. And now you can see / view / modify orders.
In opencart 2.x new feature is added. Steps are as follows:
1) Create api user by going to admin - system - users - api.
2) Assign this api user to system - setting - edit - option - API User - save.
Once done. Make sure you don;t have maintenance mode or htaccess password protection system ON.
Now when you go to orders page. You only need to click ADD IP once. And now you can see / view / modify orders.
Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com
I will just leave it here in case anybody will be looking for solution. There's a very strange issue, which may pop on some server setups.
In catalog/model/account/api.php file find this line:
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api_ip` WHERE api_id = '" . (int)$api_id . "'");
And replace it with this:
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api_ip` WHERE api_id = " . (int)$api_id);
I have absolutely no idea, why removing single quotes in this particular case solves the issue, but it does. Hope it helps.
In catalog/model/account/api.php file find this line:
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api_ip` WHERE api_id = '" . (int)$api_id . "'");
And replace it with this:
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api_ip` WHERE api_id = " . (int)$api_id);
I have absolutely no idea, why removing single quotes in this particular case solves the issue, but it does. Hope it helps.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Who is online
Users browsing this forum: No registered users and 73 guests