Post by ismystore » Thu Mar 10, 2016 3:14 am

when i press on order --> view --> Add Order History
i get this error: Warning: You do not have permission to access the API!
i have make clean install of Version 2.2.0.0.
i make a new api user, in setting i have choice this api i have created, in user group i have set permission and mark all in V.
and i do not find any answer for this problem, please help

Newbie

Posts

Joined
Wed Apr 08, 2015 9:08 pm

Post by pm-netti » Thu Mar 10, 2016 4:57 am

ismystore wrote:when i press on order --> view --> Add Order History
i get this error: Warning: You do not have permission to access the API!
i have make clean install of Version 2.2.0.0.
i make a new api user, in setting i have choice this api i have created, in user group i have set permission and mark all in V.
and i do not find any answer for this problem, please help
Are you added API to User > API ( this need also after upgrade from 2.0.x)?

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by ismystore » Thu Mar 10, 2016 5:58 am

as i say "i have choice this api i have created"
yes i have created and apply it in the setting

Newbie

Posts

Joined
Wed Apr 08, 2015 9:08 pm

Post by Burt65 » Thu Mar 10, 2016 9:35 am

ismystore wrote:as i say "i have choice this api i have created"
yes i have created and apply it in the setting
I have a similar issue when I login in Admin and my IP number has changed. I, like you, have setup the API username in the setting, but if your server doesn't use static IP number, you will have to click add to API every time your IP number does change...

Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...


User avatar
Active Member

Posts

Joined
Mon Nov 18, 2013 3:23 pm
Location - Oz

Post by ismystore » Thu Mar 10, 2016 1:47 pm

My ip is static also my server is.
I have added my ip to api.
And in the api in session i see that is created session with my ip
So its using the api but dont give access to add order history
I follow all guide in the enternet nuthing help
Please if you have any suggestions i will like to try
And find a solution.

Newbie

Posts

Joined
Wed Apr 08, 2015 9:08 pm

Post by Burt65 » Thu Mar 10, 2016 1:59 pm

This is not clear.. Can you click on Add IP red button with the + in the top right, when you get the message?

Then follow by the green message "Success: You have modified APIs!" ?

Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...


User avatar
Active Member

Posts

Joined
Mon Nov 18, 2013 3:23 pm
Location - Oz

Post by ismystore » Thu Mar 10, 2016 2:03 pm

Burt65 wrote:This is not clear.. Can you click on Add IP red button with the + in the top right, when you get the message?

Then follow by the green message "Success: You have modified APIs!" ?
ygalbrami
I already press the red button and i dont see it again after i have press it.

Newbie

Posts

Joined
Wed Apr 08, 2015 9:08 pm

Post by ismystore » Sat Mar 12, 2016 5:19 pm

any help please

Newbie

Posts

Joined
Wed Apr 08, 2015 9:08 pm

Post by labeshops » Tue Jun 21, 2016 7:29 pm

I am having this same issue with 2.2 - api user is set up but when I try to change order status I get: Warning: You do not have permission to access the API!

Have searched and not seeing a solution :(

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by straightlight » Tue Jun 21, 2016 9:04 pm

Depending on the server relative tracking path that you may have, most may believe that an IP address could be added into the database which may not be the case due to skipped thrown exception and due to page redirection. This topic provides a step-by-step correction codes regarding tracking path versus method names that needs to be properly addressed: http://forum.opencart.com/viewtopic.php ... od#p621811

After applying these fixes, try to see if the IP address can either be added or edited. Aftwerwards, do you notice the same message regarding not having permissions via the API?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Tue Jun 21, 2016 11:45 pm

Sorry but I do not understand your reply. Is there a way to fix this?

My ip address is in the api no problem. It is just that it will not let me update the order status. I can edit the status for an order I manually added to 2.2 via admin, but none of the others - the ones that were imported from 1.5.6.4 and new ones that customers placed directly in 2.2 I get the "you do not have permission...." api error when I try to update the status adn click save.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by straightlight » Tue Jun 21, 2016 11:48 pm

labeshops wrote:Sorry but I do not understand your reply. Is there a way to fix this?

My ip address is in the api no problem. It is just that it will not let me update the order status. I can upload the status for an order I manually added to 2.2, but none of the others - the ones that were imported from 1.5.6.4 and new ones that customers placed directly in 2.2
While you may not understand my above reply, I also included the possible fix link along with it ...

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Wed Jun 22, 2016 3:32 am

straightlight wrote:
labeshops wrote:Sorry but I do not understand your reply. Is there a way to fix this?

My ip address is in the api no problem. It is just that it will not let me update the order status. I can upload the status for an order I manually added to 2.2, but none of the others - the ones that were imported from 1.5.6.4 and new ones that customers placed directly in 2.2
While you may not understand my above reply, I also included the possible fix link along with it ...
Which I also did not understand.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by labeshops » Sat Jun 25, 2016 8:58 pm

Really, really need to figure this out as its getting very confusing as to which orders I've shipped and which I haven't. Tried adding the lines in straightlights other post - it didn't fix it.

Anyone know how to solve it?

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by straightlight » Sat Jun 25, 2016 9:26 pm

labeshops wrote:Really, really need to figure this out as its getting very confusing as to which orders I've shipped and which I haven't. Tried adding the lines in straightlights other post - it didn't fix it.

Anyone know how to solve it?
By providing more details on what happened after the fix above was implemented.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Sun Jun 26, 2016 7:09 am

nothing. no change. i get the same error.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by straightlight » Sun Jun 26, 2016 9:12 am

Try this new solution, it has been published momentarily: http://forum.opencart.com/viewtopic.php ... 20#p613358

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Sun Jun 26, 2016 8:19 pm

straightlight wrote:Try this new solution, it has been published momentarily: http://forum.opencart.com/viewtopic.php ... 20#p613358
my ip is shown correctly in the database. every other check that uses the api works fine - I can add new orders, edit orders, etc. I can do anything and everything EXCEPT change the order status and update the order history. That's the only time I get " Warning: You do not have permission to access the API! "

Seems to me the problem is somewhere in the api check for order history, but I don't know anything about how ajax works to know how to fix it.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by straightlight » Sun Jun 26, 2016 8:53 pm

labeshops wrote:
straightlight wrote:Try this new solution, it has been published momentarily: http://forum.opencart.com/viewtopic.php ... 20#p613358
my ip is shown correctly in the database. every other check that uses the api works fine - I can add new orders, edit orders, etc. I can do anything and everything EXCEPT change the order status and update the order history. That's the only time I get " Warning: You do not have permission to access the API! "

Seems to me the problem is somewhere in the api check for order history, but I don't know anything about how ajax works to know how to fix it.
Do you use openbay by changing the order status?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Sun Jun 26, 2016 9:04 pm

Technical steps removed due to undistinguished token query versus API ID query from the orders.
Last edited by straightlight on Sun Jun 26, 2016 9:41 pm, edited 1 time in total.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 2 guests