If I understand it correctly, there are (at least) 2 ways how a product page can be navigated to:
http://www.shopURL.com/productURL.html (URL rewrite) or http://www.shopURL/catalog/product/id/[productID] ("direct" access)
http://www.shopURL.com/category/productURL.html (URL rewrite) or http://www.shopURL/catalog/product/id/[productID]/category/[categoryID] ("direct" access)
Lately, we have moved all our products into a new category structure. Everything works fine, including navigating to a product page as described under no. 2.) - but navigating to a product page using URL format no. 1) does now only work under one condition - that I have opened the respective product category in the browser before I enter the URL. The same is valid if I try to get to the page through the search function: The search returns the result as an overview page, but I can only access the product pages which are in the category which was open at the time I used the search. If I click on one of the other products (the search returns URLs in format 1), I get one of two results:
A blank page under the URL http://shopURL/report/?id=838783926088&s;=default (where the report-id is a different one each time I click)
A shop page which displays the error message: Fatal error: Call to a member function getData() on a non-object in /app/design/frontend/[shopname]/default/template/catalog/navigation/top.phtml on line 101
It seems as if the product can only be accessed under URL format 1.) if it has been somehow “accessed” or “loaded into the session” (?) before entering the URL or clicking on it in the search results.
Any help with this issue will be greatly appreciated!
We are using Magento 1.1.6.