Page 1 of 1

Undefined Error Pop-Ups Not giving me enough information

Posted: Sun Oct 08, 2017 11:08 pm
by Tulip
VERSION 2.1.0.1

When I try to view or add order history, I get a pop up that says "Error Undefined".....I cannot add history.

That's IT. I look in the logs and find nothing. I look in the server logs, nothing.
(Log Errors is turned on)

There has to be some way to see what the heck this means?

Re: Undefined Error Pop-Ups Not giving me enough information

Posted: Wed Oct 11, 2017 1:41 am
by bumcarks
Please check API Key added in admin->sysytem->users->api if not then generate new and add in admin->system->setting under server tab

Re: Undefined Error Pop-Ups Not giving me enough information

Posted: Wed Oct 11, 2017 2:46 am
by Tulip
Thanks BunCakes.
I tried that many times.

What finally, actually worked was this......

In admin/controller/sale/order.php Find this line:

$data['store_url'] = $order_info['store_url'];

You'll notice it pulls the url from the order, and not from your browsing context.
I'm not sure if I'm over riding some other functionality, but I added this:

$data['store_url'] = $order_info['store_url'];
# add the following
if( isset($_SERVER['HTTPS'] ) ) {
$data['store_url'] = str_replace('http://','https://',$data['store_url']);
}


Found in this thread......
viewtopic.php?f=191&t=153203