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

#   \[j4\] l'insertin de produit via le plugin fait planté mon site

##

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

Less More

- Posts: 252
- Thank you received: 17
-
-

4 years 6 months ago [\#341180](#341180) by [theomartin](/forum/user/31635-theomartin "View theomartin's Profile")  Replied by *[theomartin](/forum/user/31635-theomartin "View theomartin's Profile")* on topic *[\[j4\] l'insertin de produit via le plugin fait planté mon site](/forum/5-support-en-francais-french-support-/903271-j4-linsertin-de-produit-via-le-plugin-fait-plante-mon-site?start=20#341180 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 4.0.3  hello je viens de faire un test 1 j'ajoute un produit via l'appel produit 2 je lance ma page le template en template creator plante avec cassiopeda j'ai cette erreur  des idées ?")*

Bonjour,

Je rencontre le même problème.

WebAssetManager is locked, you came late
/home/seph8968/public_html/life4/libraries/src/WebAsset/WebAssetManager.php:273
Call stack
\# Function Location
1 () JROOT/libraries/src/WebAsset/WebAssetManager.php:273
2 Joomla\CMS\WebAsset\WebAssetManager-&gt;useAsset() JROOT/libraries/src/WebAsset/WebAssetManager.php:201
3 Joomla\CMS\WebAsset\WebAssetManager-&gt;__call() JROOT/libraries/src/HTML/Helpers/FormBehavior.php:98
4 Joomla\CMS\HTML\Helpers\FormBehavior::chosen() JROOT/libraries/src/HTML/HTMLHelper.php:297
5 Joomla\CMS\HTML\HTMLHelper::call() JROOT/libraries/src/HTML/HTMLHelper.php:145
6 Joomla\CMS\HTML\HTMLHelper::_() JROOT/administrator/components/com_hikashop/helpers/helper.php:2597
7 hikashopView-&gt;display() JROOT/components/com_hikashop/views/product/view.html.php:29
8 ProductViewProduct-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:864
9 hikashop_getLayout() JROOT/plugins/system/hikashopproductinsert/hikashopproductinsert_view.php:89
10 require() JROOT/plugins/system/hikashopproductinsert/hikashopproductinsert.php:474
11 plgSystemHikashopproductInsert-&gt;_processProduct() JROOT/plugins/system/hikashopproductinsert/hikashopproductinsert.php:123
12 plgSystemHikashopproductInsert-&gt;onAfterRender() JROOT/libraries/src/Plugin/CMSPlugin.php:285
13 Joomla\CMS\Plugin\CMSPlugin-&gt;Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
14 Joomla\Event\Dispatcher-&gt;dispatch() JROOT/libraries/src/Application/EventAware.php:111
15 Joomla\CMS\Application\WebApplication-&gt;triggerEvent() JROOT/libraries/src/Application/CMSApplication.php:1045
16 Joomla\CMS\Application\CMSApplication-&gt;render() JROOT/libraries/src/Application/SiteApplication.php:802
17 Joomla\CMS\Application\SiteApplication-&gt;render() JROOT/libraries/src/Application/CMSApplication.php:284
18 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/includes/app.php:63
19 require_once() JROOT/index.php:32

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTAzMjcxLWo0LWxpbnNlcnRpbi1kZS1wcm9kdWl0LXZpYS1sZS1wbHVnaW4tZmFpdC1wbGFudGUtbW9uLXNpdGU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86358
- Thank you received: 14293
-
-

4 years 6 months ago [\#341183](#341183) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[\[j4\] l'insertin de produit via le plugin fait planté mon site](/forum/5-support-en-francais-french-support-/903271-j4-linsertin-de-produit-via-le-plugin-fait-plante-mon-site?start=20#341183 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 4.0.3  hello je viens de faire un test 1 j'ajoute un produit via l'appel produit 2 je lance ma page le template en template creator plante avec cassiopeda j'ai cette erreur  des idées ?")*

Hi,

While the generic message is the same, the callstack actually points to a different problem.
And that's normal since the patch we added for the initial problem is already in HikaShop and you already have it.

The callstack points to the loading of the chosen library. So I suppose you have the "use chosen library" setting of the HikaShop configuration activated and that's what triggering the error as the content tag replacing plugin is trying to load chosen while the web asset manager is already locked.

Change the code: Code:

JHtml::_('formbehavior.chosen', 'select');

to:
Code:

try { JHtml::_('formbehavior.chosen', 'select'); } catch(Exception $e) { $doc = JFactory::getDocument(); $doc-&gt;addStyleSheet(JURI::base(true).'/media/vendor/chosen/chosen.css'); $doc-&gt;addScript(JURI::base(true).'/media/vendor/chosen/chosen.jquery.js'); }

at the two places of the file administrator/components/com_hikashop/helpers/helper.php where you find them and it should solve the problem.

Please confirm the resolution of the problem so that we can include the patch on our end.

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

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

Less More

- Posts: 252
- Thank you received: 17
-
-

4 years 6 months ago [\#341226](#341226) by [theomartin](/forum/user/31635-theomartin "View theomartin's Profile")  Replied by *[theomartin](/forum/user/31635-theomartin "View theomartin's Profile")* on topic *[\[j4\] l'insertin de produit via le plugin fait planté mon site](/forum/5-support-en-francais-french-support-/903271-j4-linsertin-de-produit-via-le-plugin-fait-plante-mon-site?start=20#341226 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 4.0.3  hello je viens de faire un test 1 j'ajoute un produit via l'appel produit 2 je lance ma page le template en template creator plante avec cassiopeda j'ai cette erreur  des idées ?")*

Bonjour,

JHtml::_('formbehavior.chosen', 'select'); est à deux endroits dans le fichier helper.php.

Le quel faut-il changer ?
Code:

$app = JFactory::getApplication(); if(hikashop_isClient('administrator')) { if($_REQUEST['option'] == HIKASHOP_COMPONENT &amp;&amp; !HIKASHOP_J40) { if($include_mootools) JHTML::_('behavior.framework'); if(@$_REQUEST['ctrl'] != 'massaction') JHtml::_('formbehavior.chosen', 'select'); } } else { $configClass =&amp; hikashop_config(); if($configClass-&gt;get('bootstrap_forcechosen', 0)) { if($include_mootools) JHTML::_('behavior.framework'); JHtml::_('formbehavior.chosen', 'select');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTAzMjcxLWo0LWxpbnNlcnRpbi1kZS1wcm9kdWl0LXZpYS1sZS1wbHVnaW4tZmFpdC1wbGFudGUtbW9uLXNpdGU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86358
- Thank you received: 14293
-
-

4 years 6 months ago [\#341230](#341230) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[\[j4\] l'insertin de produit via le plugin fait planté mon site](/forum/5-support-en-francais-french-support-/903271-j4-linsertin-de-produit-via-le-plugin-fait-plante-mon-site?start=20#341230 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 4.0.3  hello je viens de faire un test 1 j'ajoute un produit via l'appel produit 2 je lance ma page le template en template creator plante avec cassiopeda j'ai cette erreur  des idées ?")*

bonjour,

Pardon, en écrivant mon message, j'avais oublié qu'on était en Français...
Oui, il faut remplacer aux deux endroits, d'où le "at the two places" dans mon message précédent.

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

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

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

Less More

- Posts: 252
- Thank you received: 17
-
-

4 years 6 months ago [\#341251](#341251) by [theomartin](/forum/user/31635-theomartin "View theomartin's Profile")  Replied by *[theomartin](/forum/user/31635-theomartin "View theomartin's Profile")* on topic *[\[j4\] l'insertin de produit via le plugin fait planté mon site](/forum/5-support-en-francais-french-support-/903271-j4-linsertin-de-produit-via-le-plugin-fait-plante-mon-site?start=20#341251 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 4.0.3  hello je viens de faire un test 1 j'ajoute un produit via l'appel produit 2 je lance ma page le template en template creator plante avec cassiopeda j'ai cette erreur  des idées ?")*

Bonjour,

J'ai lu trop vite...

J'ai appliqué la modification indiquée et cela fonctionne sans problème.

Merci à vous.

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

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