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

#   Ajax upload not working on Joomla 4 / PHP 8

##

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

Less More

- Posts: 515
- Thank you received: 22
-
-

4 years 2 months ago [\#344547](#344547) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[Ajax upload not working on Joomla 4 / PHP 8](/forum/27-checkout/904981-ajax-upload-not-working-on-joomla-4-php-8#344547 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : chrome  Hi,  We planned the upgrade for our livesite to Joomla 4 / PHP 8.0.  On the testsite I found a smal bug with the Ajax upload field. On PHP 8 it doesn't add the order to the shoppingbasket. With PHP 7.4 it's working fine. Tried both Ivee template as the default Cassiopeia.")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.2
-- PHP version -- : 8.0
-- Browser(s) name and version -- : chrome

Hi,

We planned the upgrade for our livesite to Joomla 4 / PHP 8.0.

On the testsite I found a smal bug with the Ajax upload field. On PHP 8 it doesn't add the order to the shoppingbasket. With PHP 7.4 it's working fine. Tried both Ivee template as the default Cassiopeia.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDk4MS1hamF4LXVwbG9hZC1ub3Qtd29ya2luZy1vbi1qb29tbGEtNC1waHAtOD90bXBsPW1hcmtkb3du) 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: 14327
-
-

4 years 2 months ago [\#344588](#344588) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ajax upload not working on Joomla 4 / PHP 8](/forum/27-checkout/904981-ajax-upload-not-working-on-joomla-4-php-8#344588 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : chrome  Hi,  We planned the upgrade for our livesite to Joomla 4 / PHP 8.0.  On the testsite I found a smal bug with the Ajax upload field. On PHP 8 it doesn't add the order to the shoppingbasket. With PHP 7.4 it's working fine. Tried both Ivee template as the default Cassiopeia.")*

Hi,

I'm not able to reproduce the issue nor on my end nor on your website.
Are you able to reproduce the issue on the link you provided ? Or maybe you switched back to PHP 7.4 ?

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

4 years 2 months ago [\#344632](#344632) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[Ajax upload not working on Joomla 4 / PHP 8](/forum/27-checkout/904981-ajax-upload-not-working-on-joomla-4-php-8#344632 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : chrome  Hi,  We planned the upgrade for our livesite to Joomla 4 / PHP 8.0.  On the testsite I found a smal bug with the Ajax upload field. On PHP 8 it doesn't add the order to the shoppingbasket. With PHP 7.4 it's working fine. Tried both Ivee template as the default Cassiopeia.")*

Hi,

Yes, just tested again on 3 different computers/Mac/iPhone, same issue. Don't know if I provided the right testlink:

[ herinneringsbord.nl/naambord-wit-aluminium-met-eigen-foto-1](https://herinneringsbord.nl/naambord-wit-aluminium-met-eigen-foto-1)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDk4MS1hamF4LXVwbG9hZC1ub3Qtd29ya2luZy1vbi1qb29tbGEtNC1waHAtOD90bXBsPW1hcmtkb3du) 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: 14327
-
-

4 years 2 months ago [\#344638](#344638) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ajax upload not working on Joomla 4 / PHP 8](/forum/27-checkout/904981-ajax-upload-not-working-on-joomla-4-php-8#344638 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : chrome  Hi,  We planned the upgrade for our livesite to Joomla 4 / PHP 8.0.  On the testsite I found a smal bug with the Ajax upload field. On PHP 8 it doesn't add the order to the shoppingbasket. With PHP 7.4 it's working fine. Tried both Ivee template as the default Cassiopeia.")*

Hi,

Thank you for the URL. I had tried another product and didn't had the problem there but I do see it on this link.
And I even got the error message when looking at the AJAX request for the add to cart:
[ i.imgur.com/D5rsX2r.png](https://i.imgur.com/D5rsX2r.png)
Change the line: Code:

$oldfiles = explode('&#124;',$oldvalue);

to: Code:

if(is_string($oldvalue)) $oldfiles = explode('&#124;',$oldvalue); else $oldfiles = $oldvalue;

in the file administrator/components/com_hikashop/classes/field.php and it will fix the problem.

We'll add the patch on our end too.

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

4 years 2 months ago [\#344659](#344659) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[Ajax upload not working on Joomla 4 / PHP 8](/forum/27-checkout/904981-ajax-upload-not-working-on-joomla-4-php-8#344659 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.2 -- PHP version -- : 8.0 -- Browser(s) name and version -- : chrome  Hi,  We planned the upgrade for our livesite to Joomla 4 / PHP 8.0.  On the testsite I found a smal bug with the Ajax upload field. On PHP 8 it doesn't add the order to the shoppingbasket. With PHP 7.4 it's working fine. Tried both Ivee template as the default Cassiopeia.")*

Hi,

Thanks Nicolas, that indeed solved the problem.

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

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