When u call a module in sp page, then visit it in frontend and facing this error
Possible Reason:
-Incorrect Class Reference – The module tries to use a Hikashop class.
-Cache issues
U can try below method to fix it
File location : ( modules -> mod_moduleName -> mod_moduleName.php )
====================================================
if (!class_exists('hikashop')) {
$hikashopPath = JPATH_ADMINISTRATOR . '/components/com_hikashop/helpers/helper.php';
if (file_exists($hikashopPath)) {
require_once $hikashopPath;
} else {
JFactory::getApplication()->enqueueMessage('Hikashop is not installed or the helper file is missing.', 'error');
return;
}
}
======================================================
You can manually add hikashop path for it, and build condition to check whether the path exist, if not exist then return.
This method should able fix the issues
Now you will able to visit the module in sp page