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?
You can backup and try this at your own risk.
In admin/controller/extension/report/product_viewed.php
On line 147
Find:
Replace:
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.
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));
Code: Select all
$this->response->redirect($this->url->link('report/report', 'user_token=' . $this->session->data['user_token'] . '&code=product_viewed', true));
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Who is online
Users browsing this forum: No registered users and 35 guests