Page 1 of 1

Soft 404's errors

Posted: Wed Aug 06, 2014 2:41 pm
by werepair
i have this error message in webmastertools, any idea how i can fix it?

The target URL doesn't exist, but your server is not returning a 404 (file not found) error.

index.php?route=product/category&path=
index.php?route=product/category&page=3
index.php?route=product/category
index.php?route=product/category&page=2
index.php?route=product/category&page=1

Re: Soft 404's errors

Posted: Wed Aug 06, 2014 10:20 pm
by werepair
i see opencart 1.5.6.4 has the following code added to the controller files
$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');

Code: Select all

catalog/controller/account/download.php 
	Line 130: 			$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
catalog/controller/account/order.php 
	Line 424: 			$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
catalog/controller/account/return.php 
	Line 280: 			$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
catalog/controller/error/not_found.php 
	Line 50: 		$this->response->addheader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 not found');
catalog/controller/information/information.php 
	Line 74: 			$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
catalog/controller/payment/pp_express.php 
	Line 1542: 			$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
catalog/controller/product/category.php 
	Line 440: 			$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
catalog/controller/product/manufacturer.php 
	Line 411: 			$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
catalog/controller/product/product.php 
	Line 542: 			$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
I am running 1.5.5.1 and my controller files do not have this line of code
Can i just add it to my stores 1.5.5.1 controller files?
Any input would be greatly appreciated.

Best Regards

Re: Soft 404's errors

Posted: Fri Aug 15, 2014 3:55 pm
by werepair
Surely someone must know how to fix this issue
index.php?route=product/category&path=

Re: Soft 404's errors

Posted: Fri Sep 05, 2014 2:39 am
by Dhaupin
Late reply, but this should work for you :)

This is a forum beta, but this should work for any 1.5-2.0 OC on products, categories, information, manufacturers, etc. Has "skip" support for OpenShop news module and Grouped Product Ultimate+all its submods. Hit us up if something doesnt work :)

Re: Soft 404's errors

Posted: Fri Sep 05, 2014 3:04 am
by werepair
Thanks for the file and the reply, it is appreciated, what's that saying "better late than never" :)
Thank you and
best regards

Re: Soft 404's errors

Posted: Sat Sep 27, 2014 2:36 pm
by liewzy
Thanks Dhaupin, it work greats.