Broken links since update to 2.6.2

  • Posts: 93
  • Thank you received: 3
9 years 4 months ago #235970

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Chrome

We use google webmaster tools and since updating I've been sent a lot of emails regarding crawl errors. Since the update to 2.6.2 some links seem to of broken? For example if you go to Link to a Product then you get nothing. If you look at the source code for this page you get two lines of hikashop layout and that's it. What's causing this? It's happening to a large quantity of our links. Another Example is Link to another Product

EDIT: Also after upgrading we had to remove ALL canonical URLs using mass action due to the search on our site appending /component/search on the end of every product link giving a 404 error.

Thanks
Jamie

Last edit: 9 years 4 months ago by bettston. Reason: Added detail about canonical urls

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 4 months ago #235995

Hi,

1. For both links your provided I just see a blank page. Turn on the "error reporting" of the Joomla configuration and when you access these links, you'll get an error message which will also us to better understand what's going on.

2. That's something we had fixed in a previous version of HikaShop so I'm suprised you had to remove the canonical URLs. Did you add them again ? Or do you let the system add them ? O you left them empty ?

Please Log in or Create an account to join the conversation.

  • Posts: 93
  • Thank you received: 3
9 years 4 months ago #236037

Morning,

With the error reporting turned on I get "Notice: Trying to get property of non-object in /home/sites/chs-ironmongerydirect.co.uk/public_html/components/com_hikashop/views/category/tmpl/listing_list.php on line 386 Fatal error: Call to a member function get() on a non-object in /home/sites/chs-ironmongerydirect.co.uk/public_html/components/com_hikashop/views/category/tmpl/listing_list.php on line 386"

and regarding canonical URLs we removed them and set the setting to No, generate the urls although looking at products they have been regenerated automatically.

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 4 months ago #236064

Hi,

1. Change the code:

$hkParams = $menuItem->params->get('hk_product',false);
						if(isset($hkParams->category))
							$cid = $hkParams->category;
to:
if(is_object($menuItem)){
						$hkParams = $menuItem->params->get('hk_product',false);
						if(isset($hkParams->category))
							$cid = $hkParams->category;
					}
in the file "listing_list" of the view "category" via the menu Display>views and that will fix the problem. We'll add a patch on that on our end.

2. That's really weird as the "no, generate the urls" shouldn't generate them automatically.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum