Skip to Content

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

This question has been flagged
As a moderator, you can either validate or reject this answer.
Accept Reject

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

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Related Posts Replies Views Activity
0
Sep 24
63
0
Aug 24
104
0
Jun 24
71
1
Feb 24
58
1
Jan 24
131