Post by mrblond » Wed Nov 22, 2017 1:21 am

On the admin side panel in the Reports section in the table "Products Viewed Report", when I click on the Reset button some error message appears:
"Notice: Undefined variable: url in /home/studiole/philarooms.com/admin/controller/extension/report/product_viewed.php on line 147Warning: Cannot modify header information - headers already sent by (output started at /home/studiole/philarooms.com/admin/controller/startup/error.php:34) in /home/studiole/philarooms.com/system/library/response.php on line 36"

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by straightlight » Wed Nov 22, 2017 1:30 am

A clue. In admin/controller/extension/report/product_viewed.php file,

find:

Code: Select all

$this->response->redirect($this->url->link('report/report', 'user_token=' . $this->session->data['user_token'] . '&code=product_viewed' . $url, true));
replace with:

Code: Select all

$this->response->redirect($this->url->link('report/report', 'user_token=' . $this->session->data['user_token'] . '&code=product_viewed', true));
This should rectify the problem.

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 mrblond » Wed Nov 22, 2017 4:20 am

Good! It works.
Thanks.

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm
Who is online

Users browsing this forum: No registered users and 19 guests