-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: Your IP * is not allowed to access this API! #3554
Comments
fixed in latest commit |
what is the fix if i want to make it work without installing the latest (unstable) version from Github, but want to patch 2.1.0.1 ? |
BUMP- same as Guntis- what is the fix if i want to make it work without installing the latest (unstable) version from Github, but want to patch 2.1.0.1 ? Urgent help PLEASE!!! |
Its very simple first go into System > User > API Click on API Addressees Click on Save Then Go to System > Setting > Edit Your main Store > Click on Option tab |
i have a great solution about the order that cannot be edit and delete. Actually the database was missing a file which is oc_api_session 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! |
Warning: Your IP is not allowed to access this API!Hello Guy I make like the tambyq said but it is no working. Help, please!!!!!! Thanks for you attention me. |
Guys i cant believe how simple i solved this error. Just go to your hosting cPanel and scroll down to where it says select php version. set the version to 5.4. go back to your opencart dashboard delete all default orders and all the unnecessary sales. refresh page make sure they are all gone. then go back to your cPanel select the latest version of PHP which as of now is 5.6. many of opencart errors is only due to different php versions. |
Also this guy who provided this solution:
Sir you solution is on every forum online and IT DOES NOT WORK |
tambyq's solution worked fine for me without changing to php version 5.6 Are you guys sure you did the last part? I thought it didnt work until I noticed I forgot that last part adding the API user in the store setting (option) page. Good luck!
|
Hi! I have a little solution, you can do it better but it's good for a fast patch. You can edit this file : admin/controller/common/login.php OR , with vqmod: Add this node to a existing or new vqmod xml
$this->session->data['token'] = token(32); ;) |
@indefesso thanks! Updated the SQL query just a bit to avoid inserting duplicates: |
Go to Users and then Under API section Name your api e.g., Main API and in IP tab put your current IP and then generate key and make sure to enable it. Viola. |
Hi. I'm getting really tired of API/IP request several times every day: the internet here is ADSL so my IP is not fixed. Guess that too many OC's admin users share this situation. Moreover, the API is almost unuseful today (but it could be a great feature... in the unknown future, I know) so... today, it is no really useful to ask for valid IP at each login. Then, I was looking for an extension to disable the API/IP, but with no luck. Some help? Since the ISP give us variable IP but in a range, guess than a practical solution will be to set up the OC allowed IPs in the mask form of Kindly, |
ok coming up with a solution
…On 11 March 2017 at 10:14, Nyrk0 ***@***.***> wrote:
Hi.
I'm getting really tired of API/IP request several times every day: the
internet here is ADSL so my IP is not fixed. Guess that too many OC's admin
users share this situation.
Moreover, the API is almost unuseful today (but it could be a great
feature... in the unknown future, I know) so... it is no really useful to
ask for valid IP at each login.
Then, I was looking for an extension to disable the API/IP, but with no
luck.
Some help?
A cool developer can set a mask for IP validate?
Since the ISP give us variable IP but in a range, guess than a practical
fix will be to set up OC IP in the mask form of ###.###.*.*
Kindly,
Alex
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#3554 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2CzINIYEajgjFQLrHybjRwEZ63cladks5rkgOdgaJpZM4GVcfa>
.
|
Hello Alex, This is quick fix which i have added myself on my store. Basically when i login and login is successful i add ip to database. So i am never asked again on order list page. Go to this file via ftp: And find this line: After that add below code:
|
API IP check is something, which should be removed at all. With DSL IP's - if it changes multiple times a day and you are switching workplaces, then at the end your admin API sections will be filled with millions of IP's anyway. API permissions check should have different approach to check permissions, not IP's in the future. E.g. How about:
|
I am getting "Error permission" on live server but local is ok. What is the problem ? I am using shared server for shop and other site for displaying product using api calling. |
You can check out this OpenCart OCMOD extension named Disable API checks |
@danielkerr is this considered safe to use? thanks |
After upgrading to 2.1.0.1 when I try to work with orders "Warning: Your IP ... is not allowed to access esta API!" appears me
I deleted the tables related to the API and I have re-created, I've added my IP and continuous error.
The text was updated successfully, but these errors were encountered: