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"

New 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.

Regards,
Straightlight


Guru Member
Online

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.

New member

Posts

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

Users browsing this forum: No registered users and 14 guests