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

#   Error on update to 6.5

##

- **[c-line](/forum/user/30778-c-line "View c-line's Profile")**
- [![c-line's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30778.jpg)](/forum/user/30778-c-line "View c-line's Profile") Topic Author
- [ Offline](/forum/user/30778-c-line)

Less More

- Posts: 206
- Thank you received: 7
-
-

4 months 6 days ago [\#372308](#372308) by [c-line](/forum/user/30778-c-line "View c-line's Profile")  *[Error on update to 6.5](/forum/25-install-update/910614-error-on-update-to-6-5#372308 "-- HikaShop version -- : 6.5 -- Joomla version -- : 6.1.1 -- PHP version -- : 8.3 -- Error-message(debug-mod must be tuned on) -- : Error: Cannot redeclare com&#95;install() (previously declared in /home/heleyupu/public&#95;html/tmp/hika/install.hikashop.php:27) Symfony&#92;Component&#92;ErrorHandler&#92;Error&#92; FatalError Show exception properties in /home/heleyupu/public&#95;html/administrator/components/com&#95;payzen/script.install.php (line 40) }}// Joomla 1.5.if (function&#95;exists('com&#95;install')) { function com&#95;install() { $installClass = new com&#95;payzenInstallerScript(); $installClass-&gt;install(); }}  hello i have a problem on update to 6.5 i have this error  thanks for any help")* was created by *[c-line](/forum/user/30778-c-line "View c-line's Profile")*

-- HikaShop version -- : 6.5
-- Joomla version -- : 6.1.1
-- PHP version -- : 8.3
-- Error-message(debug-mod must be tuned on) -- : Error: Cannot redeclare com_install() (previously declared in /home/heleyupu/public_html/tmp/hika/install.hikashop.php:27)
Symfony\Component\ErrorHandler\Error\
FatalError
Show exception properties
in /home/heleyupu/public_html/administrator/components/com_payzen/script.install.php (line 40)
}}// Joomla 1.5.if (function_exists('com_install')) { function com_install() { $installClass = new com_payzenInstallerScript(); $installClass-&gt;install(); }}

hello i have a problem on update to 6.5
i have this error
This message contains confidential information

thanks for any help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkxMDYxNC1lcnJvci1vbi11cGRhdGUtdG8tNi01P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

4 months 6 days ago [\#372311](#372311) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error on update to 6.5](/forum/25-install-update/910614-error-on-update-to-6-5#372311 "-- HikaShop version -- : 6.5 -- Joomla version -- : 6.1.1 -- PHP version -- : 8.3 -- Error-message(debug-mod must be tuned on) -- : Error: Cannot redeclare com&#95;install() (previously declared in /home/heleyupu/public&#95;html/tmp/hika/install.hikashop.php:27) Symfony&#92;Component&#92;ErrorHandler&#92;Error&#92; FatalError Show exception properties in /home/heleyupu/public&#95;html/administrator/components/com&#95;payzen/script.install.php (line 40) }}// Joomla 1.5.if (function&#95;exists('com&#95;install')) { function com&#95;install() { $installClass = new com&#95;payzenInstallerScript(); $installClass-&gt;install(); }}  hello i have a problem on update to 6.5 i have this error  thanks for any help")*

Hi,

This is a bug in the PayZen component (com_payzen), not in HikaShop. The HikaShop update is only what brings it to the surface.

The fatal error comes from this file on your site:
administrator/components/com_payzen/script.install.php

Around line 38 it has the old Joomla 1.5 installer function with a reversed test:
Code:

if (function_exists('com_install')) { function com_install() { ... } }

This declares com_install() only when a function of that name already exists, which is exactly the case where it must not declare it again. HikaShop's installer defines its own com_install() (correctly guarded with !function_exists), so during the update both files are loaded in the same request, PayZen's reversed test passes, and PHP stops with "Cannot redeclare com_install()".

The fix is to add the missing ! so the function is declared only when it does not already exist:
Code:

if (!function_exists('com_install')) { function com_install() { ... } }

Edit that single line, then run the HikaShop update again and it will complete normally. It is also worth reporting this to the PayZen / Lyra team so they correct it in their component, or updating com_payzen if a newer version is available.
I'll send them a message about it. I would recommend you do the same.

We'll also look at changing the code of HikaShop on our end for the next version so that this cannot happen even with this faulty code in place.

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

- **[c-line](/forum/user/30778-c-line "View c-line's Profile")**
- [![c-line's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30778.jpg)](/forum/user/30778-c-line "View c-line's Profile") Topic Author
- [ Offline](/forum/user/30778-c-line)

Less More

- Posts: 206
- Thank you received: 7
-
-

4 months 6 days ago [\#372312](#372312) by [c-line](/forum/user/30778-c-line "View c-line's Profile")  Replied by *[c-line](/forum/user/30778-c-line "View c-line's Profile")* on topic *[Error on update to 6.5](/forum/25-install-update/910614-error-on-update-to-6-5#372312 "-- HikaShop version -- : 6.5 -- Joomla version -- : 6.1.1 -- PHP version -- : 8.3 -- Error-message(debug-mod must be tuned on) -- : Error: Cannot redeclare com&#95;install() (previously declared in /home/heleyupu/public&#95;html/tmp/hika/install.hikashop.php:27) Symfony&#92;Component&#92;ErrorHandler&#92;Error&#92; FatalError Show exception properties in /home/heleyupu/public&#95;html/administrator/components/com&#95;payzen/script.install.php (line 40) }}// Joomla 1.5.if (function&#95;exists('com&#95;install')) { function com&#95;install() { $installClass = new com&#95;payzenInstallerScript(); $installClass-&gt;install(); }}  hello i have a problem on update to 6.5 i have this error  thanks for any help")*

thanks for your prompt support ! that works

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

- **[pole.cms.lyra](/forum/user/84418-pole-cms-lyra "View pole.cms.lyra's Profile")**
- [![pole.cms.lyra's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/84418-pole-cms-lyra "View pole.cms.lyra's Profile")
- [ Offline](/forum/user/84418-pole-cms-lyra)

Less More

- Posts: 2
- Thank you received: 1
-

2 months 3 weeks ago [\#372924](#372924) by [pole.cms.lyra](/forum/user/84418-pole-cms-lyra "View pole.cms.lyra's Profile")  Replied by *[pole.cms.lyra](/forum/user/84418-pole-cms-lyra "View pole.cms.lyra's Profile")* on topic *[Error on update to 6.5](/forum/25-install-update/910614-error-on-update-to-6-5#372924 "-- HikaShop version -- : 6.5 -- Joomla version -- : 6.1.1 -- PHP version -- : 8.3 -- Error-message(debug-mod must be tuned on) -- : Error: Cannot redeclare com&#95;install() (previously declared in /home/heleyupu/public&#95;html/tmp/hika/install.hikashop.php:27) Symfony&#92;Component&#92;ErrorHandler&#92;Error&#92; FatalError Show exception properties in /home/heleyupu/public&#95;html/administrator/components/com&#95;payzen/script.install.php (line 40) }}// Joomla 1.5.if (function&#95;exists('com&#95;install')) { function com&#95;install() { $installClass = new com&#95;payzenInstallerScript(); $installClass-&gt;install(); }}  hello i have a problem on update to 6.5 i have this error  thanks for any help")*

Hi,

A new version of PayZen component has been released, it fixes the problem reported on this thread, and other compatibility issues with Joomla 6.x.
The new version can be downloaded on the following link: [ github.com/lyra/plugin-hikashop/releases...p\_2.x-6.x\_v2.2.0.zip](https://github.com/lyra/plugin-hikashop/releases/download/v2.2.0/PayZen_HikaShop_2.x-6.x_v2.2.0.zip).

Best regards.

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkxMDYxNC1lcnJvci1vbi11cGRhdGUtdG8tNi01P3RtcGw9bWFya2Rvd24=) 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.274 seconds

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

[](#top)
