Post by LZone » Sat Sep 22, 2018 5:27 pm

Dear Team I'm trying to login by API link https://www.jochaho.pk/admin/index.php?route=api/login but it shows ERROR:
You do not have permission to access this page, please refer to your system administrator. even I have given all access from "Access Permission" & "Modify Permission" .Also see attache file .Please guide how to resolve it.

Attachments

Screenshot_API.jpg

Screenshot_API.jpg (41.69 KiB) Viewed 188 times


Newbie

Posts

Joined
Sat Sep 22, 2018 5:16 pm

Post by straightlight » Sat Sep 22, 2018 8:51 pm

The API login will be decommissioned on the latest OC version once it becomes stable. Other simplified methods will be used in order to connect via the local API.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by LZone » Mon Sep 24, 2018 3:15 pm

https://www.jochaho.pk/index.php?route=api/login I have found some default bugs I have fixed those

1- catalog/model/account/api.php
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api` WHERE `username` = '" . $this->db->escape($username) . "' AND `key` = '" . $this->db->escape($key) . "' AND status = '1'");

2- catalog/controller/api/login.php
$session = new Session($config->get('session_engine'), $this->registry);

3- See attached file when I tried this it shows only [ ]. Can you guide why it shows only [ ]?

Attachments

Screenshot_S2.jpg

Screenshot_S2.jpg (15.18 KiB) Viewed 98 times

Screenshot_S1.jpg

Screenshot_S1.jpg (68.56 KiB) Viewed 98 times


Newbie

Posts

Joined
Sat Sep 22, 2018 5:16 pm

Post by straightlight » Mon Sep 24, 2018 7:54 pm

I wouldn't really bother with that since the API login controller is no longer supported. The best solution would be to await the stable release of OC v3.1.0.0 .

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by davidcropley » Mon Sep 24, 2018 10:45 pm

Apparently 3.1.0.0 has been released recently now. Still pluggin away with my old 2.3.0.2 system though - I really should sort it out sometime!
O0

New member

Posts

Joined
Thu Jul 12, 2012 2:18 am

Post by straightlight » Tue Sep 25, 2018 2:39 am

davidcropley wrote:
Mon Sep 24, 2018 10:45 pm
Apparently 3.1.0.0 has been released recently now. Still pluggin away with my old 2.3.0.2 system though - I really should sort it out sometime!
O0
It's still alpha at this time.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Users browsing this forum: OSWorX and 18 guests