Page 1 of 2

error when view orders

Posted: Fri Dec 04, 2015 6:24 am
by twd247
Hi when i open up an order i get the following message.

[Exception... "<no message>" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: https://flowcentre.co.uk/admin/view/jav ... 1.1.min.js :: .send :: line 4" data: no]

[Exception... "<no message>" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: https://flowcentre.co.uk/admin/view/jav ... 1.1.min.js :: .send :: line 4" data: no]

undefined

can anyony help.

Re: error when view orders

Posted: Fri Dec 04, 2015 8:19 pm
by David.Feldman
Did something change on your site recently? If so, what?

To start debugging, can you try to clear your caches?

Re: error when view orders

Posted: Tue Dec 15, 2015 6:42 am
by twd247
Hi Dave

The only 2 things i have added are

Fix Filter Opencart 2.x
sub_category_image_wall

I have clear my caches. but still no luck.

Cheers
Mark

Re: error when view orders

Posted: Tue Dec 15, 2015 12:48 pm
by daniGo
I received similar errors because of SSL, then i changed this in admin/controller/sale/order.php and the errors are not showing anymore.

in order list:

Code: Select all

$data['store'] = $this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG;
in order form:

Code: Select all

$data['stores'] = array();

$data['stores'][] = array(
	'store_id' => 0,
	'name'     => $this->language->get('text_default'),
	'href'     => ($this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG)
);

$results = $this->model_setting_store->getStores();

foreach ($results as $result) {
	$data['stores'][] = array(
		'store_id' => $result['store_id'],
		'name'     => $result['name'],
		'href'     => ($this->request->server['HTTPS'] ? $result['ssl'] : $result['url'])
	);
}
in order info:

Code: Select all

if ($this->request->server['HTTPS']) {
	$data['store_url'] = str_replace('http://', 'https://', $order_info['store_url']);
} else {
	$data['store_url'] = $order_info['store_url'];
}

Re: error when view orders

Posted: Wed Dec 16, 2015 2:55 am
by David.Feldman
You could give daniGo's suggestion a try, but it that fails, then can you send links to these two extensions:
twd247 wrote: Fix Filter Opencart 2.x
sub_category_image_wall
as I'm not sure what the second one is.

But first, you could try to disable each one, just temporarily, to see if that helps.

Re: error when view orders

Posted: Thu Dec 17, 2015 4:09 am
by twd247
Thank you daniGo work like a dream. your a star

Re: error when view orders

Posted: Thu Dec 17, 2015 4:21 pm
by iamdanieljs
Didn't work for me :(
Maybe I did something wrong...

Re: error when view orders

Posted: Sun Dec 20, 2015 5:13 am
by anoclothingcompany
daniGo wrote:I received similar errors because of SSL, then i changed this in admin/controller/sale/order.php and the errors are not showing anymore.

in order list:

Code: Select all

$data['store'] = $this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG;
in order form:

Code: Select all

$data['stores'] = array();

$data['stores'][] = array(
	'store_id' => 0,
	'name'     => $this->language->get('text_default'),
	'href'     => ($this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG)
);

$results = $this->model_setting_store->getStores();

foreach ($results as $result) {
	$data['stores'][] = array(
		'store_id' => $result['store_id'],
		'name'     => $result['name'],
		'href'     => ($this->request->server['HTTPS'] ? $result['ssl'] : $result['url'])
	);
}
in order info:

Code: Select all

if ($this->request->server['HTTPS']) {
	$data['store_url'] = str_replace('http://', 'https://', $order_info['store_url']);
} else {
	$data['store_url'] = $order_info['store_url'];
}
Which lines are these supposed to go?

I can't seem to find any of the above text

Re: error when view orders

Posted: Wed Dec 23, 2015 11:10 pm
by David.Feldman
anoclothingcompany, what version of OpenCart do you have? The code above is only valid for version 2.1.

Re: error when view orders

Posted: Mon Jan 11, 2016 12:52 am
by twd247
No still haveing the same problem.

Re: error when view orders

Posted: Tue Jan 12, 2016 12:10 am
by David.Feldman
twd247, it sounds like this problem went away and came back.

Is that correct? Did the issue go away with the fix from daniGo and then return again later?

Re: error when view orders

Posted: Sat Jan 16, 2016 9:16 am
by Randem
I had exactly the same issue.
This may help - http://forum.opencart.com/viewtopic.php ... 57#p598757
Also change all references to http to https in your config.php files if you are running SSL

Re: error when view orders

Posted: Wed Jan 20, 2016 5:22 am
by twd247
Yeh i did the change and it worked. but went to do it againg and it dont work.

Re: error when view orders

Posted: Wed Jan 20, 2016 5:33 am
by Randem
The change??? You HAVE to be very specific. We cannot read your mind to figure out what you mean EXACTLY.

Re: error when view orders

Posted: Wed Jan 20, 2016 5:44 am
by twd247
It look like it not with oc but with the internet explorer and firefox.

with firefox follow the step below and it should work it did for me. not sure about ie.

Re: error when view orders

Posted: Wed Jan 20, 2016 5:54 am
by Randem
Yes, I know all of that. you still did not explain

"The change"...

nor read from the link that I posted.

Re: error when view orders

Posted: Wed Jan 20, 2016 6:24 am
by twd247
Randem wrote:Yes, I know all of that. you still did not explain

"The change"...

nor read from the link that I posted.
Are you using Internet Explorer or Firefox.

Re: error when view orders

Posted: Wed Jan 20, 2016 6:35 am
by Randem
If you refuse to answer the question, I cannot help.
Yeh i did the change and it worked. but went to do it againg and it dont work.
This is requiring too much effort to get simple information... It makes no difference what i am using I do not have the problem... Well, actually I did and solved it a long while ago.

Re: error when view orders

Posted: Wed Jan 20, 2016 6:58 am
by twd247
Never mind I sorted it to hence the post above......

Re: error when view orders

Posted: Tue Feb 09, 2016 10:23 pm
by Gothic
Hello,
How did you fix it? i'm having the same problem???
I've not used this before so i'm not sure if i add to this post or create a new one????
I looked at your details of changing the order file but you don't quote any line numbers so no idea where the changes go.
Your help would be much appreciated.
Thank you
Gothic