Blank page on displaying CB user profile

  • Posts: 4
  • Thank you received: 0
9 years 4 days ago #199582

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.10-1ubuntu3.17
-- Browser(s) name and version -- : Chrome 42.0.2311.90
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined function hikashop_loadUser() in /var/www/inyourhand/htdocs/components/com_comprofiler/plugin/user/plug_hikashopcbplugin/hikashop.php on line 43

CB plugin for HIkashop has been installed and enabled, a CB tab has been configured to display information on user profile. Upon opening user profile, the following error message appears and the page remains blank:

Thanks for your help.

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 4 days ago #199590

Hi,

Because the first line in the function of the plugin is:

include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php');
it is not possible that the function "hikashop_loadUser" does not exist unless you do not have HikaShop properly installed in your website.
But if the HikaShop helper was missing ; you won't be able to do anything in Hikashop, it is just the main core file.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
9 years 3 days ago #199677

HI Jerome,

thank you for your reply. So I have uninstall CB Hihashop plugin and Hikashop component from Joomla. I have installed it again successfully (see attachment) from the following zip file (com_hikashop_starter_v2.4.0_2015-04-17_17-28-46.zip). After that, I have checked that I can at least go to Hikashop Control panel and I have changed some basic information in Configuration. All the things are right. Next, I have enabled and displayed the CB plugin on user profile but the problem is still occuring. So I decided to check if the helper.php file exists on the system.

If I understand the syntax it should be installed in the following directory: <JOOMLA_ROOT_PATH>/components/com_hikashop/helpers

/var/www/inyourhand/htdocs/components/com_hikashop$ ls
controllers fields helpers hikashop.php index.html params router.php sef_ext.php views

/var/www/inyourhand/htdocs/components/com_hikashop$ ls helpers/
index.html route.php

The file is missing: I only have route.php file !

head route.php
<?php
/**
* @package HikaShop for Joomla!
* @version 2.4.0
* @author hikashop.com
* @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php

Many thanks for your help!

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
9 years 3 days ago #199678

I have understood that the previous path is wrong so I have founded the helper.php file in following directory.

/var/www/inyourhand/htdocs$ sudo find . -name helper.php -type f | grep hikashop
./administrator/components/com_hikashop/helpers/helper.php

The hikashop_loadUser function exits at line 3412

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
9 years 3 days ago #199711

Hi,

I still don't see how that's possible.
The helper file is loaded with the code:

include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')
at the beginning of the file.
As you can see, the path 'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php' is searched in the administrator folder of your website thanks to the JPATH_ADMINISTRATOR constant which is a standard Joomla constant for the administrator folder path.
So I don't see why it wouldn't be able to find the helper.
You can try to add that code ( include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'); ) just before the line 43, but I don't see why it would change anything.

The following user(s) said Thank You: llinty

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
9 years 2 days ago #199809

Hi,

my probem has been solved by downloading a new CB plugin (see post 195344). The code is slightly different but it works now! For the moment I connot see the tab but it seems that it only appears if I buy something on Hikashop. Many thanks for you help and maybe you can put this release for public downloading.

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 2 days ago #199878

Hi,

Thanks for the report.
Xavier didn't update the plugin on the FTP after applying his patch.
I just fixed it.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum