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

#   Error when trying to edit product after Joomla 4.2 update

##

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5807_2014-05-02.jpg)](/forum/user/5807-jazzmang "View jazzmang's Profile") Topic Author
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

4 years 2 months ago [\#343939](#343939) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  *[Error when trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#343939 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")* was created by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")*

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.0
-- PHP version -- : 8.1.9
-- Browser(s) name and version -- : Any
-- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla\CMS\Form\Field\TagField

Just opening up a product in the administration area of Hika causes this error:

Database not set in Joomla\CMS\Form\Field\TagField

[ ![allpool-j4.2-product-edit-error.jpg](/forum/attachment/55391) ](/forum/attachment/55391 "...edit-error.jpg")

It doesn't happen when editing or updating anything else like a category.

It also seems to scramble the HikaShop administrator menu (but just when you get that error).

Fortunately, this is not on a production site.

- [ ![allpool-j4.2-product-edit-error.jpg](/forum/attachment/55391) ](/forum/attachment/55391 "...edit-error.jpg") [ ](/forum/attachment/55391?download=1 "...edit-error.jpg")

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

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

Less More

- Posts: 88
- Thank you received: 20
-
-

4 years 2 months ago [\#343940](#343940) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  Replied by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")* on topic *[Error when trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#343940 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")*

I get the same error. It seems related to /administrator/components/com_hikashop/helpers/tags.php:82
If I disable that line I can edit the product again.

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

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5807_2014-05-02.jpg)](/forum/user/5807-jazzmang "View jazzmang's Profile") Topic Author
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

4 years 2 months ago [\#343941](#343941) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[Error when trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#343941 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")*

Did you disable a plugin or just rename tags.php file?

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

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

Less More

- Posts: 88
- Thank you received: 20
-
-

4 years 2 months ago [\#343942](#343942) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  Replied by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")* on topic *[Error when trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#343942 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")*

> jazzmang wrote: Did you disable a plugin or just rename tags.php file?

I edited the file and uncommented line 82.

Line 82 edited: Code:

//return $fieldTag-&gt;input;

This is just a temporary fix to get access back to the edit page. I'm sure Hikashop will fix the underlying issue ASAP.

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

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

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

Less More

- Posts: 609
- Thank you received: 13
-

4 years 2 months ago [\#343943](#343943) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Error when trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#343943 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")*

Getting exactly the same issue?

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

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5807_2014-05-02.jpg)](/forum/user/5807-jazzmang "View jazzmang's Profile") Topic Author
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

4 years 2 months ago [\#343944](#343944) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[Error when trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#343944 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")*

Thanks, can confirm that does the job at least temporarily until HikaShop fixes it right.

FYI noticed the Tags field is now no longer usable so your mileage may vary.

We don't use tags, so hopefully won't be an issue for us.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDg1Ni1lcnJvci13aGVuLXRyeWluZy10by1lZGl0LXByb2R1Y3QtYWZ0ZXItam9vbWxhLTQtMi11cGRhdGU/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14267
-
-

4 years 2 months ago [\#343952](#343952) 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 trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#343952 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")*

Hi,

Instead of deleting the line Code:

return $fieldTag-&gt;input;

of the file /administrator/components/com_hikashop/helpers/tags.php what you can do is add this code before it in that same file: Code:

if(method_exists($fieldTag, 'setDatabase')) { $db = JFactory::getDBO(); $fieldTag-&gt;setDatabase($db); }

That way, it will fix the problem and the tags system will work again.
We've added the fix in the 4.6.1 on our end.
So for anyone having the issue and reading this :
- if you have HikaShop 4.6.1 you can download it again on our website and install it on yours to get the hot fix
- if you have a previous version of HikaShop, you can just update your HikaShop or apply the patch as explained above

The following user(s) said Thank You: [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile"), [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile"), [yumasan](/forum/user/12271-yumasan "View yumasan's Profile"), [grafixpress](/forum/user/29205-grafixpress "View grafixpress's Profile"), [Philip](/forum/user/34318-philip "View Philip's Profile"), [imcom](/forum/user/43456-imcom "View imcom's Profile"), [SEKME](/forum/user/50233-sekme "View SEKME's Profile"), [khashiz](/forum/user/61259-khashiz "View khashiz's Profile"), [levelup](/forum/user/61801-levelup "View levelup's Profile"), [Akdag](/forum/user/66581-akdag "View Akdag's Profile")

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

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 2 months ago [\#344010](#344010) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Error when trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#344010 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")*

how can a person have solutions for all questions ??

you are a magician Nicolas

thank you

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

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

Less More

- Posts: 35
- Thank you received: 2
-
-

4 years 1 month ago [\#344562](#344562) by [grafixpress](/forum/user/29205-grafixpress "View grafixpress's Profile")  Replied by *[grafixpress](/forum/user/29205-grafixpress "View grafixpress's Profile")* on topic *[Error when trying to edit product after Joomla 4.2 update](/forum/25-install-update/904856-error-when-trying-to-edit-product-after-joomla-4-2-update#344562 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  Just opening up a product in the administration area of Hika causes this error:  Database not set in Joomla&#92;CMS&#92;Form&#92;Field&#92;TagField  It doesn't happen when editing or updating anything else like a category.  It also seems to scramble the HikaShop administrator menu (but just when you get that error).  Fortunately, this is not on a production site.")*

Thank you for your quick response, Nicolas.
Reinstalling with the hot fixed file worked!

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

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

[](#top)
