HI,
I've recently created my first Opencart store and its been a pleasure to work with.
The site has been running for many years on OsCommerce, the site is working well but when I click on an old link form Google I get the following error message :-
Notice: Undefined index: route in /home/****/public_html/vqmod/vqcache/vq2-catalog_controller_common_header.php on line 7
Notice: Undefined index: route in /home/*****/public_html/vqmod/vqcache/vq2-catalog_controller_common_header.php on line 11
I presume it is something to do with the incoming link :- /index.php/cPath/69
I'd welcome any ideas.
Marty
You should be getting a "product not found" page in opencart but sounds like a vqmod you have is interfering in that. Not sure which one - you should try disabling each vqmod until you find it.
Do a search on creating 301 redirects from your old links to your new ones. I didn't do all my products, but made sure my most popular as well as any linked on pinterest, facebook, etc, were redirected to the new opencart seo urls.
Do a search on creating 301 redirects from your old links to your new ones. I didn't do all my products, but made sure my most popular as well as any linked on pinterest, facebook, etc, were redirected to the new opencart seo urls.
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
I have the exactly same error message in my log file.
Hoping someone know what's wrong with this.
Codes below are the extract from vq2-catalog_controller_common_header.php:
Hoping someone know what's wrong with this.
Codes below are the extract from vq2-catalog_controller_common_header.php:
Code: Select all
<?php
class ControllerCommonHeader extends Controller {
protected function index() {
$this->data['title'] = $this->document->getTitle();
$current_path = $this->request->get;
if (empty($current_path) || $current_path['route'] == 'common/home') {
$body_classes = 'home';
}
else {
$body_classes = explode('/', str_replace('product/', '', $current_path['route']));
unset($current_path['route']);
if (isset($current_path['_route_'])) {
$body_classes = array_merge($body_classes, explode('/', str_replace('-', '_', $current_path['_route_'])));
unset($current_path['_route_']);
}
Who is online
Users browsing this forum: 7cswinery, Semrush [Bot] and 63 guests