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

#   Erreur 500 mise en page introuvable sur canonical

##

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

10 years 8 months ago -  10 years 8 months ago [\#234463](#234463) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[Erreur 500 mise en page introuvable sur canonical](/forum/5-support-en-francais-french-support-/883397-erreur-500-mise-en-page-introuvable-sur-canonical#234463 "-- HikaShop version -- : 261 -- Joomla version -- : 35 -- Error-message(debug-mod must be tuned on) -- : Erreur 500 Mise en page introuvable  Bonjour j'ai une serie d'erreurs 500 sur anciennes URL canonicale de produits qui n'existe plus  avec debug on ca donne  ligne 122 de show.php c'est  j'ai contourne le probleme avec  et dans show&#95;default.php j'ai une erreur  qui correspond a  comment éviter ça ?  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

-- HikaShop version -- : 261
-- Joomla version -- : 35
-- Error-message(debug-mod must be tuned on) -- : Erreur 500 Mise en page introuvable

Bonjour
j'ai une serie d'erreurs 500 sur anciennes URL canonicale de produits qui n'existe plus

avec debug on ca donne
Code:

17 JViewLegacy-&gt;loadTemplate() /public_html/templates/shoes/html/com_hikashop/product/show.php:122

ligne 122 de show.php c'est
Code:

$this-&gt;setLayout($this-&gt;productlayout); echo $this-&gt;loadTemplate();

j'ai contourne le probleme avec
Code:

if(isset($this-&gt;productlayout)){ $this-&gt;setLayout($this-&gt;productlayout); } else{ $this-&gt;setLayout('show_default'); } echo $this-&gt;loadTemplate();

et dans show_default.php j'ai une erreur
Code:

Call to a member function get() on array in templates/shoes/html/com_hikashop/product/show_default.php on line 232

qui correspond a
Code:

if (!$this-&gt;params-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; ($this-&gt;config-&gt;get('display_add_to_wishlist_for_free_products', 1) &amp;&amp; hikashop_level(1) &amp;&amp; $this-&gt;params-&gt;get('add_to_wishlist') &amp;&amp; $config-&gt;get('enable_wishlist', 1)) &#124;&#124; !empty($this-&gt;element-&gt;prices)))

comment éviter ça ?

merci

Last edit: 10 years 8 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

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

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

10 years 8 months ago -  10 years 8 months ago [\#234466](#234466) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Erreur 500 mise en page introuvable sur canonical](/forum/5-support-en-francais-french-support-/883397-erreur-500-mise-en-page-introuvable-sur-canonical#234466 "-- HikaShop version -- : 261 -- Joomla version -- : 35 -- Error-message(debug-mod must be tuned on) -- : Erreur 500 Mise en page introuvable  Bonjour j'ai une serie d'erreurs 500 sur anciennes URL canonicale de produits qui n'existe plus  avec debug on ca donne  ligne 122 de show.php c'est  j'ai contourne le probleme avec  et dans show&#95;default.php j'ai une erreur  qui correspond a  comment éviter ça ?  merci")*

j'ai redirige dans show.php
Code:

$app = JFactory::getApplication(); if(!isset($this-&gt;element)){ $app-&gt;redirect($link_archive);; }

Last edit: 10 years 8 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 8 months ago [\#234465](#234465) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Erreur 500 mise en page introuvable sur canonical](/forum/5-support-en-francais-french-support-/883397-erreur-500-mise-en-page-introuvable-sur-canonical#234465 "-- HikaShop version -- : 261 -- Joomla version -- : 35 -- Error-message(debug-mod must be tuned on) -- : Erreur 500 Mise en page introuvable  Bonjour j'ai une serie d'erreurs 500 sur anciennes URL canonicale de produits qui n'existe plus  avec debug on ca donne  ligne 122 de show.php c'est  j'ai contourne le probleme avec  et dans show&#95;default.php j'ai une erreur  qui correspond a  comment éviter ça ?  merci")*

Bonjour,

Il est normal que $this-&gt;productlayout soit vide dans ce cas vu que l'affichage est normalement bloqué au début de show.php et du coup ce problème ne peut normalement pas arrivé.

Pour l'erreur avec la fonction get, difficile à dire. Cela peut venir soit de $this-&gt;params soit de $config soit de $this-&gt;config. L'un d'eux doit être un array au lieu d'être un object.
Il faudrait les var_dump un à un pour voir lequel est le problème.
Si c'est $config, changez le en $this-&gt;config (et vice-versa).

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

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

10 years 8 months ago -  10 years 8 months ago [\#234510](#234510) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Erreur 500 mise en page introuvable sur canonical](/forum/5-support-en-francais-french-support-/883397-erreur-500-mise-en-page-introuvable-sur-canonical#234510 "-- HikaShop version -- : 261 -- Joomla version -- : 35 -- Error-message(debug-mod must be tuned on) -- : Erreur 500 Mise en page introuvable  Bonjour j'ai une serie d'erreurs 500 sur anciennes URL canonicale de produits qui n'existe plus  avec debug on ca donne  ligne 122 de show.php c'est  j'ai contourne le probleme avec  et dans show&#95;default.php j'ai une erreur  qui correspond a  comment éviter ça ?  merci")*

> nicolas wrote: Bonjour,
> Il est normal que $this-&gt;productlayout soit vide dans ce cas vu que l'affichage est normalement bloqué au début de show.php et du coup ce problème ne peut normalement pas arrivé.

J'ai mis ca a cause et pour eviter cette erreur justement

> Pour l'erreur avec la fonction get, difficile à dire. Cela peut venir soit de $this-&gt;params soit de $config soit de $this-&gt;config. L'un d'eux doit être un array au lieu d'être un object.
> Il faudrait les var\_dump un à un pour voir lequel est le problème.
> Si c'est $config, changez le en $this-&gt;config (et vice-versa)

ok merci

Last edit: 10 years 8 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

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

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