Post by Dunald » Tue Jun 05, 2018 8:50 am

Clean install of latest Opencart Version 3.0.2.0
Get this error when I first visit my catalog and look at some of the default products and then visit Admin "Products viewed report" and reset that report.

Notice: Undefined variable: url in /customers/4/4/c/mysite.com/httpd.www/admin/controller/extension/report/product_viewed.php on line 147Warning: Cannot modify header information - headers already sent by (output started at /customers/4/4/c/mysite.com/httpd.www/admin/controller/startup/error.php:34) in /customers/4/4/c/mysite.com/httpd.www/system/library/response.php on line 36

Any idea how to fix this?

Have visited my site using diffrent IPs but when I visit my site using another IP I can not see any visitors in the report "Who´s online" or at the Dashboard "People online"
How can I see the IP of people that visit my site?

Active Member

Posts

Joined
Tue Mar 15, 2011 9:05 pm

Post by Dunald » Wed Jun 06, 2018 7:40 am

Anyone?

Active Member

Posts

Joined
Tue Mar 15, 2011 9:05 pm

Post by sw!tch » Wed Jun 06, 2018 8:22 am

You can backup and try this at your own risk. :choke:

In admin/controller/extension/report/product_viewed.php

On line 147

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:

Code: Select all

$this->response->redirect($this->url->link('report/report', 'user_token=' . $this->session->data['user_token'] . '&code=product_viewed', true));
Untested, I see $url is not defined anywhere in that method and makes zero sense why it would be there. Above, should resolve the issue.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Who is online

Users browsing this forum: Ahrefs [Bot] and 42 guests