跳至内容

欢迎!

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.

此问题已终结
作为版主,您可以批准或拒绝该答案。
接受 拒绝

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

形象
丢弃

您的回复

请大家尽量给个实质性的回答。如果您想回答这个问题或发表评论,只需 使用评论工具。请记住,您可以随时修改您的答案。 - 不用重复回答同样的问题。另外,请不要忘记投票 - 它确实有助于选择最好的问题和答案!

相关帖文 回复 查看 活动
0
9月 24
63
0
8月 24
104
0
6月 24
72
1
2月 24
59
1
1月 24
131