Fatal Error on editing joomla articles

  • Posts: 12
  • Thank you received: 0
11 years 7 months ago #134418

-- url of the page with the problem -- : glasgowcreative.co.uk
-- HikaShop version -- : 1.5.4 - business version
-- Joomla version -- : 2.5
-- PHP version -- : 5.3.22
-- Browser(s) name and version -- : firefox 25.0.1


When I try to edit any article in Joomla, I get a short set of Edit Article options on a white screen and then the following:
" Call to undefined function hikashop_getFormToken() in /home/glasgowc/public_html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php line 103 "

Line 103 in the file is:
$link = 'index.php?option=com_hikashop&ctrl=plugins&task=trigger&function=productDisplay&tmpl=component&cid='.$plugin->extension_id.'&'.hikashop_getFormToken().'=1';

Any help is much appreciated.
Regards,
Christy

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

  • Posts: 84142
  • Thank you received: 13647
  • MODERATOR
11 years 7 months ago #134428

Hi,

Please add the code:
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;

before the line:
if(version_compare(JVERSION,'1.6.0','<')){

in the file plugins/editors-xtd/hikashopproduct/hikashopproduct.php and that will fix the problem.

PS: please only post your questions in one place.

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

  • Posts: 12
  • Thank you received: 0
11 years 7 months ago #134432

Thanks for the response Nicolas,

I have done that, but it's giving me the same error. This is what I now have for lines 24-30 of the PHP doc:

function onDisplay($name, $asset='', $author=''){
$extension = JRequest::getCmd('option');
if ($extension=='com_content'){
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR);
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
if(version_compare(JVERSION,'1.6.0','<')){


Thanks,
Christy

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

  • Posts: 84142
  • Thank you received: 13647
  • MODERATOR
11 years 7 months ago #134484

It's not possible that you have the same error if you added that code. Please copy/paste the new error message.

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

  • Posts: 12
  • Thank you received: 0
11 years 7 months ago #134523

Hi Nicolas,
This is the error I am getting now. The previous error was line 103, now it's 106, but I'm thinking it's because I added the 3 lines of code.

Fatal error: Call to undefined function hikashop_getFormToken() in /home/glasgowc/public_html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php on line 106

Thanks,
Christy

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #134537

Hi,

Can you download the last Hikashop version through our website, install it, and test it again ?

Note that making a backup is always a good security.

The following user(s) said Thank You: glasgowcreative

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

  • Posts: 12
  • Thank you received: 0
11 years 7 months ago #134554

Thank you, that has fixed the issue.

Cheers,
Christy

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

Time to create page: 0.066 seconds
Powered by Kunena Forum