I am getting the following error.
PHP Notice: Undefined index: key in xxx/catalog/controller/api/login.php on line 11
I am using OC 2.2.0.0
I noticed this error when i logged in and went to update an order and started getting Undefined Error when logging into the order page.
Travis
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Admin page: Back-end interface of Opencart for administrative purposes.
Store-front end: For customers to visit your shop.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
It would definitely affect if the defined key has not been properly defined from the installed contribution. Even though you might simply do it from the order page, it does not prevent the installed contribution to authenticate to the API. More information would be needed on that end regarding installed contributions you might be using for the orders or if you do not use any contributions for the orders.veritas75 wrote:I am not sure how that would effect what is happening.
All I am doing is going into orders, going to view an order and getting a pop up that states undefined error.
I check the error log and that is what I see??
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
jquery-2.1.1.min.js:4 XMLHttpRequest cannot load httpss://www.site.com/index.php?route=api/login. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
If you notice there is an extra 's' in the https request.
In the order php file, you will find this line.
Code: Select all
$data['store_url'] = $this->request->server['HTTPS'] ? str_replace("http", "https", $order_info['store_url']) : $order_info['store_url'];
Code: Select all
$data['store_url'] = $this->request->server['HTTPS'] ? str_replace("https", "https", $order_info['store_url']) : $order_info['store_url'];
Reason: Added code tags.
VQMod Enable SSL with fix
Current VQMods: http://www.opencart.com/index.php?route ... mobilewill
Blog: http://www.mobilewill.us
Shop: http://friedcircuits.us
I was able to reproduce this problem with dots on the URL with opencart-3 (not officially updated with these changes). It also messes up the database for some reason. This was already reported on Github Opencart recently but, due to the fact that web hosting services have a hard time accepting forward slashes to reach the methods as well as the: '|' character, the dot took the place but isn't going any better on that side unfortunately.ndim_pro wrote: ↑Thu Oct 27, 2022 3:13 pmJust to let everyone know. In my case, I tried everything but nothing worked and finally after looking more carefully, I noticed that in config.php file I had one more dot in the url. That was causing all trouble. So, check again thoroughly your settings in both config.php files.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 53 guests