My solution was to remove the Admin side of OC from HTTPS as I have a SSL certificate. Once I did that I got no more errors.
like Below you can create a list of IP's allowed to access the API. Your current IP is 122.162.60.67
Its very simple first go into System > User > API
1 Give Name To Your API Example : " Main IP "
2 Click on Generate API
3 Make it Enable
Click on API Addressees
Click on ADD IP
Copy paste your IP
Click on Save
Then Go to System > Setting > Edit Your main Store > Click on Option
See here : API User
Select Your API USER Which was created in last Stage
For Example Select " main IP "
The final part of this worked for me. Is there any way of enabling this to work with SSL enabled? And, I have tried all the other API, User, IP address stuff listed above.ls3060 wrote:I don't know if this will help others with the API problem, but I was originally missing some of the tabs under the API page. I upgraded to 2.1 which gave me the API IP tabs and was able to fill them out, but still getting an error.
My solution was to remove the Admin side of OC from HTTPS as I have a SSL certificate. Once I did that I got no more errors.
Does it make any difference that .htpsswd is enabled?
but when i go to sale to edit order it show me in the top add your ip message . after clic it show me ip successfully added
but no think will happen . api list is empty
finally my problem was corrupted data base table .
this is link for help if u have same problem
http://ocart1.blogspot.ca/2016/01/you-d ... ccess.html
Hi mRC, I had same problem. mine was because my server was using my ssl on the admin section of the website. try and remove the https:// on both domain.com/admin parts of the config.php file in admin section and replace with http://mRC wrote:I have a similar issue but I get a pop up saying access denied on any order I view.
but I have a test site and that's working fine. I have done all of the above but same
That's what solved for me!
Others may have issues are because of the need for a clean settings table.
Others may have API issues.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
thank you very much. Many clicks, but fixed the problem for me v. 2.1.0.2webtiger wrote:go into System > User > API
1 Give Name To Your API Example : " Main IP "
2 Click on Generate API
3 Make it Enable
Click on API Addressees
Click on ADD IP
Copy paste your IP
Click on Save
Then Go to System > Setting > Edit Your main Store > Click on Option
See here : API User
Select Your API USER Which was created in last Stage
For Example Select " main IP "
Regards
--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---
Actually the database was missing a file which is oc_api_session
So, you need to export that file on your database.
If you need that file, you have to install the latest version of Opencart. After that, EXPORT that file and IMPORT to your database.
So, its done!
i used on opencart 2.1.0.1
1 Give Name To Your API Example : " Main IP "
2 Click on Generate API
3 Make it Enable
Click on API Addressees
Click on ADD IP
Copy paste your IP
Click on Save
The right way is go to database update store setting "config_api_id"
set the store id = "your store id" and value the API "setting id"
such as:
UPDATE `setting` SET `value` = '1', `store_id` = '0' WHERE `key` = 'config_api_id'
Check the setting config_api_idnkolet wrote:I have installed version 2.1.0.1 and have the same issue. I have
Checked the API in options of the store
verified API is enabled
verified admin has all permissions
added my IP address
I am still unable to change the status of an order from pending to shipped. I get the error:
Warning: You do not have permission to access the API!
Anyone have any suggestions? I have looked all over the web.
Run Follow step Will be Ok
UPDATE `setting` SET `value` = '1', `store_id` = '0' WHERE `key` = 'config_api_id'
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
How can I disable this IP checking so I coule be allowed to handle orders without this problem ?
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
I am trying to understand this but without success. I am on ADSL internet connection and every 24 hours my IP is changed. So I can't enter specific IP to solve this.
This steps for fixing.....URL-s in config files are valid every one of them, ending with /
First step saying something about IP that store needs to be pointing at. What IP we are talking about, is this IP of the server or what, and where should I enter this IP ?
5th and 6th step I don0t understand either.
Can someone please make this more understandable.
Very much appreciate !
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
But I don't understand this feature at all. There is no such restrictions in popular scripts as Wordpress, etc...Randem wrote:If your IP changes every 24 hours, the only way to keep from getting the error is to have code that automatically changes your IP in the table. Which of course will be a security concern.
How come we can not remove this feature at all. If I can get into admin area, then what is use of this security feature, only not to be able to access orders, but then again if I click Add IP I will get access. Really don't understand purpose of this.
Users browsing this forum: No registered users and 30 guests