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

#   Custom plugin : Erreur Fatal

##

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

Less More

- Posts: 99
- Thank you received: 3
-
-
-

8 years 6 months ago [\#292343](#292343) by [nilegoff](/forum/user/11694-nilegoff "View nilegoff's Profile")  *[Custom plugin : Erreur Fatal](/forum/5-support-en-francais-french-support-/894646-custom-plugin-erreur-fatal#292343 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.7 -- PHP version -- : 5.6.8 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method plgHikashopshippingMondialRelay::shippingMethods() in xxxxxx/www/administrator/components/com&#95;hikashop/classes/shipping.php on line 750  Bonjour,  Avec mon plugin personnel Mondial relay j'ai une erreur dans la fonction function getShippingName($shipping&#95;method, $shipping&#95;id) dans xxxxxx/www/administrator/components/com&#95;hikashop/classes/shipping.php  Dans la base de données, la commande est bien enregistrée.  Pouvez vous me dire ce qui est attendu ligne 750 pour ne pas avoir l'erreur. Je seche. Merci par avance Nicolas")* was created by *[nilegoff](/forum/user/11694-nilegoff "View nilegoff's Profile")*

-- HikaShop version -- : 3.4
-- Joomla version -- : 3.8.7
-- PHP version -- : 5.6.8
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method plgHikashopshippingMondialRelay::shippingMethods() in xxxxxx/www/administrator/components/com_hikashop/classes/shipping.php on line 750

Bonjour,

Avec mon plugin personnel Mondial relay j'ai une erreur dans la fonction
function getShippingName($shipping_method, $shipping_id) dans xxxxxx/www/administrator/components/com_hikashop/classes/shipping.php
Code:

print_r($shipping_method) -&gt; mondialrelay print_r($shipping_id) -&gt; 3-0

Dans la base de données, la commande est bien enregistrée.

Pouvez vous me dire ce qui est attendu ligne 750 pour ne pas avoir l'erreur. Je seche.
Merci par avance
Nicolas

---

Joomla 3

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

8 years 6 months ago [\#292357](#292357) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom plugin : Erreur Fatal](/forum/5-support-en-francais-french-support-/894646-custom-plugin-erreur-fatal#292357 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.7 -- PHP version -- : 5.6.8 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method plgHikashopshippingMondialRelay::shippingMethods() in xxxxxx/www/administrator/components/com&#95;hikashop/classes/shipping.php on line 750  Bonjour,  Avec mon plugin personnel Mondial relay j'ai une erreur dans la fonction function getShippingName($shipping&#95;method, $shipping&#95;id) dans xxxxxx/www/administrator/components/com&#95;hikashop/classes/shipping.php  Dans la base de données, la commande est bien enregistrée.  Pouvez vous me dire ce qui est attendu ligne 750 pour ne pas avoir l'erreur. Je seche. Merci par avance Nicolas")*

Bonjour,

Le soucis est que vous êtes requis d'avoir la fonction shippingMethods dans votre plugin de livraison.
Normalement, cette fonction retourne un array avec les différentes valeur possible pour order_shipping_id avec leur nom pour pouvoir afficher correctement le nom de la méthode de livraison.
Au pire vous pouvez faire cela pour contourner cela: Code:

function shippingMethods(&amp;$main){ $methods = array(); return $methods; }

Dans ce cas, le nom de la méthode de livraison sera le contenu de order_shipping_id

Nous allons rajouter une vérification pour éviter cette erreur lorsque la fonction est manquante de notre coté.

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

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

Less More

- Posts: 99
- Thank you received: 3
-
-
-

8 years 6 months ago [\#292504](#292504) by [nilegoff](/forum/user/11694-nilegoff "View nilegoff's Profile")  Replied by *[nilegoff](/forum/user/11694-nilegoff "View nilegoff's Profile")* on topic *[Custom plugin : Erreur Fatal](/forum/5-support-en-francais-french-support-/894646-custom-plugin-erreur-fatal#292504 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.7 -- PHP version -- : 5.6.8 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method plgHikashopshippingMondialRelay::shippingMethods() in xxxxxx/www/administrator/components/com&#95;hikashop/classes/shipping.php on line 750  Bonjour,  Avec mon plugin personnel Mondial relay j'ai une erreur dans la fonction function getShippingName($shipping&#95;method, $shipping&#95;id) dans xxxxxx/www/administrator/components/com&#95;hikashop/classes/shipping.php  Dans la base de données, la commande est bien enregistrée.  Pouvez vous me dire ce qui est attendu ligne 750 pour ne pas avoir l'erreur. Je seche. Merci par avance Nicolas")*

Merci beaucoup,

tout fonctionne parfaitement maintenant
Bonne fin de journée
Nicolas

---

Joomla 3

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