[Skip to main content](#vessel-content)

#   Fatal Error on editing joomla articles

##

- **[glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")**
- [![glasgowcreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile") Topic Author
- [ Offline](/forum/user/3850-glasgowcreative)

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 2 days ago [\#134418](#134418) by [glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")  *[Fatal Error on editing joomla articles](/forum/25-install-update/863956-fatal-error-on-editing-joomla-articles#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: &quot; Call to undefined function hikashop&#95;getFormToken() in /home/glasgowc/public&#95;html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php line 103 &quot;  Line 103 in the file is: $link = 'index.php?option=com&#95;hikashop&amp;ctrl=plugins&amp;task=trigger&amp;function=productDisplay&amp;tmpl=component&amp;cid='.$plugin-&gt;extension&#95;id.'&amp;'.hikashop&#95;getFormToken().'=1';  Any help is much appreciated. Regards, Christy")* was created by *[glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")*

-- url of the page with the problem -- : [ glasgowcreative.co.uk](http://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&amp;amp;ctrl=plugins&amp;amp;task=trigger&amp;amp;function=productDisplay&amp;amp;tmpl=component&amp;amp;cid='.$plugin-&gt;extension_id.'&amp;amp;'.hikashop_getFormToken().'=1';

Any help is much appreciated.
Regards,
Christy

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzk1Ni1mYXRhbC1lcnJvci1vbi1lZGl0aW5nLWpvb21sYS1hcnRpY2xlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

13 years 2 days ago [\#134428](#134428) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fatal Error on editing joomla articles](/forum/25-install-update/863956-fatal-error-on-editing-joomla-articles#134428 "-- 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: &quot; Call to undefined function hikashop&#95;getFormToken() in /home/glasgowc/public&#95;html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php line 103 &quot;  Line 103 in the file is: $link = 'index.php?option=com&#95;hikashop&amp;ctrl=plugins&amp;task=trigger&amp;function=productDisplay&amp;tmpl=component&amp;cid='.$plugin-&gt;extension&#95;id.'&amp;'.hikashop&#95;getFormToken().'=1';  Any help is much appreciated. Regards, Christy")*

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','&lt;')){

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzk1Ni1mYXRhbC1lcnJvci1vbi1lZGl0aW5nLWpvb21sYS1hcnRpY2xlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")**
- [![glasgowcreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile") Topic Author
- [ Offline](/forum/user/3850-glasgowcreative)

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 2 days ago [\#134432](#134432) by [glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")  Replied by *[glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")* on topic *[Fatal Error on editing joomla articles](/forum/25-install-update/863956-fatal-error-on-editing-joomla-articles#134432 "-- 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: &quot; Call to undefined function hikashop&#95;getFormToken() in /home/glasgowc/public&#95;html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php line 103 &quot;  Line 103 in the file is: $link = 'index.php?option=com&#95;hikashop&amp;ctrl=plugins&amp;task=trigger&amp;function=productDisplay&amp;tmpl=component&amp;cid='.$plugin-&gt;extension&#95;id.'&amp;'.hikashop&#95;getFormToken().'=1';  Any help is much appreciated. Regards, Christy")*

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','&lt;')){

Thanks,
Christy

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzk1Ni1mYXRhbC1lcnJvci1vbi1lZGl0aW5nLWpvb21sYS1hcnRpY2xlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

13 years 1 day ago [\#134484](#134484) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fatal Error on editing joomla articles](/forum/25-install-update/863956-fatal-error-on-editing-joomla-articles#134484 "-- 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: &quot; Call to undefined function hikashop&#95;getFormToken() in /home/glasgowc/public&#95;html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php line 103 &quot;  Line 103 in the file is: $link = 'index.php?option=com&#95;hikashop&amp;ctrl=plugins&amp;task=trigger&amp;function=productDisplay&amp;tmpl=component&amp;cid='.$plugin-&gt;extension&#95;id.'&amp;'.hikashop&#95;getFormToken().'=1';  Any help is much appreciated. Regards, Christy")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzk1Ni1mYXRhbC1lcnJvci1vbi1lZGl0aW5nLWpvb21sYS1hcnRpY2xlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")**
- [![glasgowcreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile") Topic Author
- [ Offline](/forum/user/3850-glasgowcreative)

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 1 day ago [\#134523](#134523) by [glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")  Replied by *[glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")* on topic *[Fatal Error on editing joomla articles](/forum/25-install-update/863956-fatal-error-on-editing-joomla-articles#134523 "-- 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: &quot; Call to undefined function hikashop&#95;getFormToken() in /home/glasgowc/public&#95;html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php line 103 &quot;  Line 103 in the file is: $link = 'index.php?option=com&#95;hikashop&amp;ctrl=plugins&amp;task=trigger&amp;function=productDisplay&amp;tmpl=component&amp;cid='.$plugin-&gt;extension&#95;id.'&amp;'.hikashop&#95;getFormToken().'=1';  Any help is much appreciated. Regards, Christy")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzk1Ni1mYXRhbC1lcnJvci1vbi1lZGl0aW5nLWpvb21sYS1hcnRpY2xlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 1 day ago [\#134537](#134537) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Fatal Error on editing joomla articles](/forum/25-install-update/863956-fatal-error-on-editing-joomla-articles#134537 "-- 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: &quot; Call to undefined function hikashop&#95;getFormToken() in /home/glasgowc/public&#95;html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php line 103 &quot;  Line 103 in the file is: $link = 'index.php?option=com&#95;hikashop&amp;ctrl=plugins&amp;task=trigger&amp;function=productDisplay&amp;tmpl=component&amp;cid='.$plugin-&gt;extension&#95;id.'&amp;'.hikashop&#95;getFormToken().'=1';  Any help is much appreciated. Regards, Christy")*

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](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzk1Ni1mYXRhbC1lcnJvci1vbi1lZGl0aW5nLWpvb21sYS1hcnRpY2xlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")**
- [![glasgowcreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile") Topic Author
- [ Offline](/forum/user/3850-glasgowcreative)

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 1 day ago [\#134554](#134554) by [glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")  Replied by *[glasgowcreative](/forum/user/3850-glasgowcreative "View glasgowcreative's Profile")* on topic *[Fatal Error on editing joomla articles](/forum/25-install-update/863956-fatal-error-on-editing-joomla-articles#134554 "-- 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: &quot; Call to undefined function hikashop&#95;getFormToken() in /home/glasgowc/public&#95;html/plugins/editors-xtd/hikashopproduct/hikashopproduct.php line 103 &quot;  Line 103 in the file is: $link = 'index.php?option=com&#95;hikashop&amp;ctrl=plugins&amp;task=trigger&amp;function=productDisplay&amp;tmpl=component&amp;cid='.$plugin-&gt;extension&#95;id.'&amp;'.hikashop&#95;getFormToken().'=1';  Any help is much appreciated. Regards, Christy")*

Thank you, that has fixed the issue.

Cheers,
Christy

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzk1Ni1mYXRhbC1lcnJvci1vbi1lZGl0aW5nLWpvb21sYS1hcnRpY2xlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.064 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
