[Skip to main content](#vessel-content)

#   500 - View class not found \[class, file\]: categoryViewproduct

##

- **[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")**
- [![remotelyyours's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27477.png)](/forum/user/27477-remotelyyours "View remotelyyours's Profile") Topic Author
- [ Offline](/forum/user/27477-remotelyyours)

Less More

- Posts: 28
- Thank you received: 3
-
-

9 years 3 months ago -  9 years 3 months ago [\#274901](#274901) by [remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")  *[500 - View class not found \[class, file\]: categoryViewproduct](/forum/26-product-category-display/891320-500-view-class-not-found-class-file-categoryviewproduct#274901 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : 500 - View class not found &#91;class, file&#93;: categoryViewproduct, /home/alberta8/public&#95;html/components/com&#95;hikashop/views/product/view.html.php  I cannot reproduce this at my localhost. But the production web-site is affected.  My localhost has 7.1.6 php while the prod. server is under 7.1.7  I tried switching to the default template (means no HS overrides) - the same issue.  Enabling development error level doesn't change the output - I don't see any additional error information.  At my localhost here is ProductController (and it works) and at the broken product server here is CategoryController  The menu item is a HS product. So the prod. server wrongly defines the controller.    static.xscreenshot.com/2017/07/28/11/scr...728aeb9d5313e78bdb28  Another screenshot $view = JRequest::getCmd('view'); When works returns 'product', when not works - returns ''   static.xscreenshot.com/2017/07/28/12/scr...7473ac5e7c159e8249b0  I also tried recreating the menu item.  SEF links OFF - works.  I tired replacing all JRequest with $jinput (added $jinput = JFactory::getApplication()-&gt;input; at the top of the file) - and I can see the same error at my localhost).")* was created by *[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.4
-- PHP version -- : 7.1.7
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : 500 - View class not found [class, file]: categoryViewproduct, /home/alberta8/public_html/components/com_hikashop/views/product/view.html.php

I cannot reproduce this at my localhost. But the production web-site is affected.

My localhost has 7.1.6 php while the prod. server is under 7.1.7

I tried switching to the default template (means no HS overrides) - the same issue.

Enabling development error level doesn't change the output - I don't see any additional error information.

At my localhost here is ProductController (and it works)
and at the broken product server here is CategoryController

The menu item is a HS product. So the prod. server wrongly defines the controller.

[ static.xscreenshot.com/2017/07/28/11/scr...728aeb9d5313e78bdb28](http://static.xscreenshot.com/2017/07/28/11/screen_cc0f9deebd7c728aeb9d5313e78bdb28)

Another screenshot
$view = JRequest::getCmd('view');
When works returns 'product', when not works - returns ''
[ static.xscreenshot.com/2017/07/28/12/scr...7473ac5e7c159e8249b0](http://static.xscreenshot.com/2017/07/28/12/screen_5d30106ff9a57473ac5e7c159e8249b0)

I also tried recreating the menu item.

SEF links OFF - works.

I tired replacing all JRequest with $jinput (added $jinput = JFactory::getApplication()-&gt;input; at the top of the file) - and I can see the same error at my localhost).

Last edit: 9 years 3 months ago by [remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTEzMjAtNTAwLXZpZXctY2xhc3Mtbm90LWZvdW5kLWNsYXNzLWZpbGUtY2F0ZWdvcnl2aWV3cHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")**
- [![remotelyyours's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27477.png)](/forum/user/27477-remotelyyours "View remotelyyours's Profile") Topic Author
- [ Offline](/forum/user/27477-remotelyyours)

Less More

- Posts: 28
- Thank you received: 3
-
-

9 years 3 months ago [\#274914](#274914) by [remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")  Replied by *[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")* on topic *[500 - View class not found \[class, file\]: categoryViewproduct](/forum/26-product-category-display/891320-500-view-class-not-found-class-file-categoryviewproduct#274914 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : 500 - View class not found &#91;class, file&#93;: categoryViewproduct, /home/alberta8/public&#95;html/components/com&#95;hikashop/views/product/view.html.php  I cannot reproduce this at my localhost. But the production web-site is affected.  My localhost has 7.1.6 php while the prod. server is under 7.1.7  I tried switching to the default template (means no HS overrides) - the same issue.  Enabling development error level doesn't change the output - I don't see any additional error information.  At my localhost here is ProductController (and it works) and at the broken product server here is CategoryController  The menu item is a HS product. So the prod. server wrongly defines the controller.    static.xscreenshot.com/2017/07/28/11/scr...728aeb9d5313e78bdb28  Another screenshot $view = JRequest::getCmd('view'); When works returns 'product', when not works - returns ''   static.xscreenshot.com/2017/07/28/12/scr...7473ac5e7c159e8249b0  I also tried recreating the menu item.  SEF links OFF - works.  I tired replacing all JRequest with $jinput (added $jinput = JFactory::getApplication()-&gt;input; at the top of the file) - and I can see the same error at my localhost).")*

I can fix the issue by replacing JRequest by jInput and JRequest::setVar by $jinput-&gt;set
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 3.1.1 * @author hikashop.com * @copyright (C) 2010-2017 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php jimport('joomla.application.component.controller'); jimport('joomla.application.component.view'); $jinput = JFactory::getApplication()-&gt;input; $jinput-&gt;set('hikashop_front_end_main',1); if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'); if(defined('JDEBUG') &amp;&amp; JDEBUG){ error_reporting(E_ALL); @ini_set('display_errors', 1); } $config =&amp; hikashop_config(); if($config-&gt;get('store_offline')) { $app = JFactory::getApplication(); $app-&gt;enqueueMessage(JText::_('SHOP_IN_MAINTENANCE')); return; } global $Itemid; if(empty($Itemid)) { $urlItemid = $jinput-&gt;getInt('Itemid'); if($urlItemid) { $Itemid = $urlItemid; } } $view = $jinput-&gt;getCmd('view'); if(!empty($view) &amp;&amp; empty($jinput-&gt;getCmd('ctrl'))) { $jinput-&gt;set('ctrl', $view); $layout = $jinput-&gt;getCmd('layout'); if(!empty($layout)){ $jinput-&gt;set('task', $layout); } } if(HIKASHOP_J30) { $token = hikashop_getFormToken(); $isToken = $jinput-&gt;getVar($token, ''); if(!empty($isToken) &amp;&amp; !$jinput-&gt;checkToken('request')) { $app = JFactory::getApplication(); $app-&gt;input-&gt;request-&gt;set($token, 1); } } $session = JFactory::getSession(); if(is_null($session-&gt;get('registry'))) { jimport('joomla.registry.registry'); $session-&gt;set('registry', new JRegistry('session')); } $taskGroup = $jinput-&gt;getCmd('ctrl','category'); $className = ucfirst($taskGroup).'Controller'; if(!class_exists($className) &amp;&amp; (!file_exists(HIKASHOP_CONTROLLER.$taskGroup.'.php') &#124;&#124; !@include(HIKASHOP_CONTROLLER.$taskGroup.'.php'))) { if(!hikashop_getPluginController($taskGroup)) return JError::raiseError(404, 'Page not found : '.$taskGroup); } if($taskGroup != 'checkout') { $app = JFactory::getApplication(); $app-&gt;setUserState('com_hikashop.ssl_redirect',0); } $classGroup = new $className(); $jinput-&gt;set('view', $classGroup-&gt;getName() ); $classGroup-&gt;execute($jinput-&gt;getCmd('task')); $classGroup-&gt;redirect(); if($jinput-&gt;getString('tmpl') !== 'component'){ echo hikashop_footer(); } $jinput-&gt;set('hikashop_front_end_main',0);

But I meet another issue -
At the category lisitng page I cannot get to the list of producst. Both - with my hack and without it.

I go here [ albertatacticalrifle.com/hikashop-menu-for-categories-listing](https://albertatacticalrifle.com/hikashop-menu-for-categories-listing)
and click on a category - I see the same page. I don't go to subcategories as expected.
[ albertatacticalrifle.com/hikashop-menu-f...ategory/13-ar15-ar10](https://albertatacticalrifle.com/hikashop-menu-for-categories-listing/category/13-ar15-ar10)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTEzMjAtNTAwLXZpZXctY2xhc3Mtbm90LWZvdW5kLWNsYXNzLWZpbGUtY2F0ZWdvcnl2aWV3cHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")**
- [![remotelyyours's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27477.png)](/forum/user/27477-remotelyyours "View remotelyyours's Profile") Topic Author
- [ Offline](/forum/user/27477-remotelyyours)

Less More

- Posts: 28
- Thank you received: 3
-
-

9 years 3 months ago [\#274915](#274915) by [remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")  Replied by *[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")* on topic *[500 - View class not found \[class, file\]: categoryViewproduct](/forum/26-product-category-display/891320-500-view-class-not-found-class-file-categoryviewproduct#274915 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : 500 - View class not found &#91;class, file&#93;: categoryViewproduct, /home/alberta8/public&#95;html/components/com&#95;hikashop/views/product/view.html.php  I cannot reproduce this at my localhost. But the production web-site is affected.  My localhost has 7.1.6 php while the prod. server is under 7.1.7  I tried switching to the default template (means no HS overrides) - the same issue.  Enabling development error level doesn't change the output - I don't see any additional error information.  At my localhost here is ProductController (and it works) and at the broken product server here is CategoryController  The menu item is a HS product. So the prod. server wrongly defines the controller.    static.xscreenshot.com/2017/07/28/11/scr...728aeb9d5313e78bdb28  Another screenshot $view = JRequest::getCmd('view'); When works returns 'product', when not works - returns ''   static.xscreenshot.com/2017/07/28/12/scr...7473ac5e7c159e8249b0  I also tried recreating the menu item.  SEF links OFF - works.  I tired replacing all JRequest with $jinput (added $jinput = JFactory::getApplication()-&gt;input; at the top of the file) - and I can see the same error at my localhost).")*

Well, I rolled back to PHP 7.0.21
This seems to start working. But I'm pretty sure it must work at php 7.1.7 as well.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTEzMjAtNTAwLXZpZXctY2xhc3Mtbm90LWZvdW5kLWNsYXNzLWZpbGUtY2F0ZWdvcnl2aWV3cHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

9 years 3 months ago [\#274917](#274917) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[500 - View class not found \[class, file\]: categoryViewproduct](/forum/26-product-category-display/891320-500-view-class-not-found-class-file-categoryviewproduct#274917 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : 500 - View class not found &#91;class, file&#93;: categoryViewproduct, /home/alberta8/public&#95;html/components/com&#95;hikashop/views/product/view.html.php  I cannot reproduce this at my localhost. But the production web-site is affected.  My localhost has 7.1.6 php while the prod. server is under 7.1.7  I tried switching to the default template (means no HS overrides) - the same issue.  Enabling development error level doesn't change the output - I don't see any additional error information.  At my localhost here is ProductController (and it works) and at the broken product server here is CategoryController  The menu item is a HS product. So the prod. server wrongly defines the controller.    static.xscreenshot.com/2017/07/28/11/scr...728aeb9d5313e78bdb28  Another screenshot $view = JRequest::getCmd('view'); When works returns 'product', when not works - returns ''   static.xscreenshot.com/2017/07/28/12/scr...7473ac5e7c159e8249b0  I also tried recreating the menu item.  SEF links OFF - works.  I tired replacing all JRequest with $jinput (added $jinput = JFactory::getApplication()-&gt;input; at the top of the file) - and I can see the same error at my localhost).")*

Hello,

Would it be possible to have details about your menu configuration ?

Your issue is that you have neither "ctrl" or "view".
HikaShop consider that if you do not have the "view", you should have "ctrl" parameter instead.

Your issue looks like a routing issue. Do you use a SEF component or something which would change how Joomla is parsing the URL and the menus ?
So I'm afraid that it might not be related to HikaShop since it does just use Joomla core in order to get the parameters.
If JRequest do not have data but jinput does ; it means that there is a bug in Joomla core because components and plugins should be able to access to parameters via both.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTEzMjAtNTAwLXZpZXctY2xhc3Mtbm90LWZvdW5kLWNsYXNzLWZpbGUtY2F0ZWdvcnl2aWV3cHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")**
- [![remotelyyours's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27477.png)](/forum/user/27477-remotelyyours "View remotelyyours's Profile") Topic Author
- [ Offline](/forum/user/27477-remotelyyours)

Less More

- Posts: 28
- Thank you received: 3
-
-

9 years 3 months ago [\#274987](#274987) by [remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")  Replied by *[remotelyyours](/forum/user/27477-remotelyyours "View remotelyyours's Profile")* on topic *[500 - View class not found \[class, file\]: categoryViewproduct](/forum/26-product-category-display/891320-500-view-class-not-found-class-file-categoryviewproduct#274987 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : 500 - View class not found &#91;class, file&#93;: categoryViewproduct, /home/alberta8/public&#95;html/components/com&#95;hikashop/views/product/view.html.php  I cannot reproduce this at my localhost. But the production web-site is affected.  My localhost has 7.1.6 php while the prod. server is under 7.1.7  I tried switching to the default template (means no HS overrides) - the same issue.  Enabling development error level doesn't change the output - I don't see any additional error information.  At my localhost here is ProductController (and it works) and at the broken product server here is CategoryController  The menu item is a HS product. So the prod. server wrongly defines the controller.    static.xscreenshot.com/2017/07/28/11/scr...728aeb9d5313e78bdb28  Another screenshot $view = JRequest::getCmd('view'); When works returns 'product', when not works - returns ''   static.xscreenshot.com/2017/07/28/12/scr...7473ac5e7c159e8249b0  I also tried recreating the menu item.  SEF links OFF - works.  I tired replacing all JRequest with $jinput (added $jinput = JFactory::getApplication()-&gt;input; at the top of the file) - and I can see the same error at my localhost).")*

We don't use any routing software. Joomla native SEF.

What do I need to tell about the menu configuration?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTEzMjAtNTAwLXZpZXctY2xhc3Mtbm90LWZvdW5kLWNsYXNzLWZpbGUtY2F0ZWdvcnl2aWV3cHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

9 years 3 months ago [\#275034](#275034) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[500 - View class not found \[class, file\]: categoryViewproduct](/forum/26-product-category-display/891320-500-view-class-not-found-class-file-categoryviewproduct#275034 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : 500 - View class not found &#91;class, file&#93;: categoryViewproduct, /home/alberta8/public&#95;html/components/com&#95;hikashop/views/product/view.html.php  I cannot reproduce this at my localhost. But the production web-site is affected.  My localhost has 7.1.6 php while the prod. server is under 7.1.7  I tried switching to the default template (means no HS overrides) - the same issue.  Enabling development error level doesn't change the output - I don't see any additional error information.  At my localhost here is ProductController (and it works) and at the broken product server here is CategoryController  The menu item is a HS product. So the prod. server wrongly defines the controller.    static.xscreenshot.com/2017/07/28/11/scr...728aeb9d5313e78bdb28  Another screenshot $view = JRequest::getCmd('view'); When works returns 'product', when not works - returns ''   static.xscreenshot.com/2017/07/28/12/scr...7473ac5e7c159e8249b0  I also tried recreating the menu item.  SEF links OFF - works.  I tired replacing all JRequest with $jinput (added $jinput = JFactory::getApplication()-&gt;input; at the top of the file) - and I can see the same error at my localhost).")*

Hi,

Thanks for the feedback. We'll do the necessary modifications on our end to cope with that issue with the next version of HikaShop. Until then, you can keep your patches or stay with PHP 7.0.x

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTEzMjAtNTAwLXZpZXctY2xhc3Mtbm90LWZvdW5kLWNsYXNzLWZpbGUtY2F0ZWdvcnl2aWV3cHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
