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

#   Error when saving new product with images and missing required custom fields

##

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

Less More

- Posts: 9
- Thank you received: 8
- [](https://joomlamax.com)
-

5 months 2 weeks ago [\#372235](#372235) by [senioriz](/forum/user/68695-senioriz "View senioriz's Profile")  *[Error when saving new product with images and missing required custom fields](/forum/26-product-category-display/910591-error-when-saving-new-product-with-images-and-missing-required-custom-fields#372235 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6 -- PHP version -- : 8.3 -- Error-message(debug-mod must be tuned on) -- : An error has occurred.  0 Attempt to assign property &quot;product&#95;id&quot; on int JROOT/administrator/components/com&#95;hikashop/views/product/tmpl/form&#95;image.php:54  Hello HikaShop Team,  We found a bug when creating a new product in the Joomla administrator.  Issue: When we add a new product, fill in the product name, add product images, but forget to complete required custom fields, then click Save, the product form breaks and shows a fatal error page.  Steps to reproduce:  1-Go to HikaShop → Products Click New 2-Enter a product name 3-Add one or more product images 4-Leave some required custom fields empty, for example on our website:Year,Make,Vehicle Location 5-Click Save  Actual result: Instead of returning to the product form with validation messages, Joomla shows this error:  The page becomes broken after save.  Expected result: HikaShop should keep the user on the product edit form and show the required-field validation messages only, without triggering a fatal PHP error.  I have attached a screenshot showing the validation messages and the fatal error.  Could you please check this issue and provide a fix or patch?")* was created by *[senioriz](/forum/user/68695-senioriz "View senioriz's Profile")*

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 6
-- PHP version -- : 8.3
-- Error-message(debug-mod must be tuned on) -- : An error has occurred.

0 Attempt to assign property "product_id" on int
JROOT/administrator/components/com_hikashop/views/product/tmpl/form_image.php:54

Hello HikaShop Team,

We found a bug when creating a new product in the Joomla administrator.

**Issue:**
When we add a new product, fill in the product name, add product images, but forget to complete required custom fields, then click Save, the product form breaks and shows a fatal error page.

**Steps to reproduce:**

1-Go to HikaShop → Products Click New
2-Enter a product name
3-Add one or more product images
4-Leave some required custom fields empty, for example on our website:Year,Make,Vehicle Location
5-Click Save

**Actual result:**
Instead of returning to the product form with validation messages, Joomla shows this error:
Code:

An error has occurred. 0 Attempt to assign property "product_id" on int JROOT/administrator/components/com_hikashop/views/product/tmpl/form_image.php:54

The page becomes broken after save.

**Expected result:**
HikaShop should keep the user on the product edit form and show the required-field validation messages only, without triggering a fatal PHP error.

I have attached a screenshot showing the validation messages and the fatal error.

Could you please check this issue and provide a fix or patch?

---

Joomla &amp; Hikashop Dev - [ JoomlaMax.com](https://JoomlaMax.com)

- [ ![Screenshot 2026-06-15 at 19.08.21.png](/forum/attachment/63227) ](/forum/attachment/63227 "...t 19.08.21.png") [ ](/forum/attachment/63227?download=1 "...t 19.08.21.png")

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

5 months 2 weeks ago [\#372238](#372238) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error when saving new product with images and missing required custom fields](/forum/26-product-category-display/910591-error-when-saving-new-product-with-images-and-missing-required-custom-fields#372238 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6 -- PHP version -- : 8.3 -- Error-message(debug-mod must be tuned on) -- : An error has occurred.  0 Attempt to assign property &quot;product&#95;id&quot; on int JROOT/administrator/components/com&#95;hikashop/views/product/tmpl/form&#95;image.php:54  Hello HikaShop Team,  We found a bug when creating a new product in the Joomla administrator.  Issue: When we add a new product, fill in the product name, add product images, but forget to complete required custom fields, then click Save, the product form breaks and shows a fatal error page.  Steps to reproduce:  1-Go to HikaShop → Products Click New 2-Enter a product name 3-Add one or more product images 4-Leave some required custom fields empty, for example on our website:Year,Make,Vehicle Location 5-Click Save  Actual result: Instead of returning to the product form with validation messages, Joomla shows this error:  The page becomes broken after save.  Expected result: HikaShop should keep the user on the product edit form and show the required-field validation messages only, without triggering a fatal PHP error.  I have attached a screenshot showing the validation messages and the fatal error.  Could you please check this issue and provide a fix or patch?")*

Hi,

Thank you for your detailed feedback.
I was able to reproduce the issue and fixed it.
The patch is included on our end.
Download the install package of HikaShop on our website and install it on yours in order to get the patch.

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

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