This method has been posted 100 time all over the internet. does not help me. I am stuckedkul1010 wrote:Post by webtiger is working fine. Thanks to him. But some changes in IP address give your subscriber ip not server or client ip.
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 "
Is there any solution to disable this API? I cannot add the ip everytime... i check my orders from different ip addresses ( mobile, tablet, hotel room )... In the past i was using opencart 1.5.x without any problems.
Thank you !
Thank you !
Opencart v2.3 Beta fixes all passed issues encountered with the API: http://forum.opencart.com/viewtopic.php ... 30#p627403cristianmiu wrote:Is there any solution to disable this API? I cannot add the ip everytime... i check my orders from different ip addresses ( mobile, tablet, hotel room )... In the past i was using opencart 1.5.x without any problems.
Thank you !
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
//////////////////THIS IS THE REAL SOLUTIONS FOR THIS CASE ///////////////////////////
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 "
When another administrator login the system prompts you to add your new IP automatically and that's all
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 "
When another administrator login the system prompts you to add your new IP automatically and that's all
I have 2 sites, both running 2.0.3.1. The first site is not multi store, and it works fine. The second site is multi store and I cannot edit any orders - the dreaded you do not have permission error. When I go to settings -> users -> api, I had never changed anything on either site since I installed them a year ago. Nowhere do I have an option to add or change IP addresses, it simply is not there.
At this point, my main site is useless, I cannot edit any orders. Short of doing a nuke and reinstall, is there going to be any fix for this at the 2.0.3.1 level? This is ludicrous! Telling people to add IP addresses on a panel that does not exist on their system is no help at all.
At this point, my main site is useless, I cannot edit any orders. Short of doing a nuke and reinstall, is there going to be any fix for this at the 2.0.3.1 level? This is ludicrous! Telling people to add IP addresses on a panel that does not exist on their system is no help at all.
Hellohos wrote:i have the same problem, Version 2.3.0.2, i can not complete the "pending" orders! to be complete or shipped .etc.
i get "Warning: You do not have permission to access the API! "
i did above solutions and no way
Compatibility2.3.0.0, 2.3.0.1, 2.3.0.2
here last solution create code or download https://www.opencart.com/index.php?rout ... n_id=28323
api.ocmod.xml
<?xml version="1.0" encoding="utf-8"?>
<modification>
<code>ifaass_auto_add_api_ip</code>
<name>Auto ADD api IP</name>
<version>1.0</version>
<author>Nzymic</author>
<link>http://www.opencart.com/</link>
<file path="admin/view/template/sale/order_form.tpl">
<operation>
<search trim="true"><![CDATA[
$('#content > .container-fluid').prepend('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error']['ip'] + ' <button type="button" id="button-ip-add" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-danger btn-xs pull-right"><i class="fa fa-plus"></i> <?php echo $button_ip_add; ?></button></div>');
]]></search>
<add position="after"><![CDATA[
$('#button-ip-add').click();
]]></add>
</operation>
</file>
</modification>
I'm using 2.3.0.2 and 2.2.0.0, and only 2.3 have this issue...
Hope my extension can help you.....
https://www.opencart.com/index.php?rout ... n_id=28614
Hope my extension can help you.....
https://www.opencart.com/index.php?rout ... n_id=28614
I was just testing a new install of OC v 2.3.0.2 and had this problem..
fix was easy
the first time i got this message when entering Orders, a button to add ip also appears with the message, added IP and got this message again when i tried to edit the order.
found this thread so checked permissions as the first reply suggested, found all to be ticked already and all permissions set..
I decided to go through the save process anyway and test the order editing again.
This time it worked,
i would suggest if your having this problem resave your user permissions for administrator
fix was easy
the first time i got this message when entering Orders, a button to add ip also appears with the message, added IP and got this message again when i tried to edit the order.
found this thread so checked permissions as the first reply suggested, found all to be ticked already and all permissions set..
I decided to go through the save process anyway and test the order editing again.
This time it worked,
i would suggest if your having this problem resave your user permissions for administrator
This is in fact a bit of a stupid logic...
Since admin ips often are not static and will change... There should be a way to remove this blocking and also disable API.
Is there already a way without hacking the code?
Since admin ips often are not static and will change... There should be a way to remove this blocking and also disable API.
Is there already a way without hacking the code?
Check your base url
if your base url is :
<base href="http://culedshoes.com/admin/" />
when you login , you should not use www.culedshoes.com/admin to login, once you did, not matter what you do, the error pop up.
all depends on your base url :
with or without www
with or without https
if your base url is :
<base href="http://culedshoes.com/admin/" />
when you login , you should not use www.culedshoes.com/admin to login, once you did, not matter what you do, the error pop up.
all depends on your base url :
with or without www
with or without https
I might have a solution for those of you who have everything enabled and your IP is on list.
If you are using OCmod extensions you need to navigate to Extensions > Modifications > And hit reload button.
Once I did this, recently added IP address is working without any problem.
Hope this helps atleast some of you
If you are using OCmod extensions you need to navigate to Extensions > Modifications > And hit reload button.
Once I did this, recently added IP address is working without any problem.
Hope this helps atleast some of you
Simple.
Just install extension "Disable API checks", or with this link "https://www.opencart.com/index.php?rout ... _license=0"
It is free.
Thanks for app developer.
Just install extension "Disable API checks", or with this link "https://www.opencart.com/index.php?rout ... _license=0"
It is free.
Thanks for app developer.
go to system -> users -> API and make sure the default is enabled and save it.
go to system -> settings -> options and scroll down to Checkout and make sure that the API User is set to Default from the dropdown list and save it.
when you get the warning click on add IP.
that's it enjoy...
go to system -> settings -> options and scroll down to Checkout and make sure that the API User is set to Default from the dropdown list and save it.
when you get the warning click on add IP.
that's it enjoy...
_______________________
FOXRIG OpenCart Support
https://foxrig.com
I had the same problem and I was using a Local Host!
So Basically The Error I got is : Warning: You do not have permission to access the API
What I done is added the IP Address to the API.
System -> Users -> API ->Edit -> IP Address Tab.
After That I Have Added my IP Address " ::1 "And Saved!
The Problem Solved!. Now I Can Complete The Order Requests!
So Basically The Error I got is : Warning: You do not have permission to access the API
What I done is added the IP Address to the API.
System -> Users -> API ->Edit -> IP Address Tab.
After That I Have Added my IP Address " ::1 "And Saved!
The Problem Solved!. Now I Can Complete The Order Requests!
Hi, so I am still running 2.3.0.2 and have tried the solutions posted via the Dashboard with NO SUCCESS.
I have a second domain site using 3.2.0 and do NOT have this issue.
I do believe this is an OC issue?
Short of upgrading, which I am not in a real rush to do with the 2 extensions I have installed has anyone really found the work around.
In this string the question was asked Why is this API check really needed as we are logged in as ADMIN?
Did anyone find the way to disable it?
If so a file path and configuration text please!
I have a second domain site using 3.2.0 and do NOT have this issue.
I do believe this is an OC issue?
Short of upgrading, which I am not in a real rush to do with the 2 extensions I have installed has anyone really found the work around.
In this string the question was asked Why is this API check really needed as we are logged in as ADMIN?
Did anyone find the way to disable it?
If so a file path and configuration text please!
Hi, so I am still running 2.3.0.2 and have tried the solutions posted via the Dashboard with NO SUCCESS.edster353 wrote: ↑Wed Nov 19, 2014 5:49 amWhen going into sales and editing a sale I get "Warning: You do not have permission to access the API!". This is when I click continue on the customer details page of an order.
Any ideas on what is going on?
I am running Opencart 2 with default theme.
Under user groups I have made the admin able to view and modify all the options. I am also using the admin account when trying to edit the order.
Thanks in advance if anyone knows how to fix it
I have a second domain site using 3.2.0 and do NOT have this issue.
I do believe this is an OC issue?
Short of upgrading, which I am not in a real rush to do with the 2 extensions I have installed has anyone really found the work around.
In this string the question was asked Why is this API check really needed as we are logged in as ADMIN?
Did anyone find the way to disable it?
If so a file path and configuration text please!
Who is online
Users browsing this forum: No registered users and 216 guests