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

#   Page blanche (fatal error) avec plugin PayPlug v2

##

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

Less More

- Posts: 510
- Thank you received: 37
-
-

6 years 9 months ago -  6 years 9 months ago [\#315454](#315454) by [lesyeux](/forum/user/1216-lesyeux "View lesyeux's Profile")  *[Page blanche (fatal error) avec plugin PayPlug v2](/forum/5-support-en-francais-french-support-/899147-page-blanche-fatal-error-avec-plugin-payplug-v2#315454 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.15 -- PHP version -- : 7.3.14 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /plugins/hikashoppayment/payplug2/lib/Payplug/Payplug.php on line 11  Bonjour,  Je tente d'utiliser le nouveau plugin PayPlug v2.  Lors de la validation de la commande, j'ai une &quot;fatal error&quot;, avec page blanche.  Les autres modes de paiement fonctionnent, y compris l'ancien plugin PayPlug.")* was created by *[lesyeux](/forum/user/1216-lesyeux "View lesyeux's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.15
-- PHP version -- : 7.3.14
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /plugins/hikashoppayment/payplug2/lib/Payplug/Payplug.php on line 11

Bonjour,

Je tente d'utiliser le nouveau plugin PayPlug v2.

Lors de la validation de la commande, j'ai une "fatal error", avec page blanche.
Code:

Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /plugins/hikashoppayment/payplug2/lib/Payplug/Payplug.php on line 11

Les autres modes de paiement fonctionnent, y compris l'ancien plugin PayPlug.

Last edit: 6 years 9 months ago by [lesyeux](/forum/user/1216-lesyeux "View lesyeux's Profile").

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

Less More

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

6 years 9 months ago -  6 years 9 months ago [\#315476](#315476) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Page blanche (fatal error) avec plugin PayPlug v2](/forum/5-support-en-francais-french-support-/899147-page-blanche-fatal-error-avec-plugin-payplug-v2#315476 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.15 -- PHP version -- : 7.3.14 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /plugins/hikashoppayment/payplug2/lib/Payplug/Payplug.php on line 11  Bonjour,  Je tente d'utiliser le nouveau plugin PayPlug v2.  Lors de la validation de la commande, j'ai une &quot;fatal error&quot;, avec page blanche.  Les autres modes de paiement fonctionnent, y compris l'ancien plugin PayPlug.")*

Bonjour,

Cela vient de la façon dont la nouvelle librairie de PayPlug est écrite, et le fait que le système de packaging que nous utilisons pour générer les paquets d'HikaShop rajoute automatiquement un header PHP à tous les fichiers PHP, mais cela créé cette erreur.

Ci-joint, un zip du plugin sans passer par notre système de packaging (c'est le zip que j'ai utilisé pour faire mes tests en fait). Il suffit de l'installer sur le site et l'erreur disparaîtra.
*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 6 years 9 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

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

Less More

- Posts: 510
- Thank you received: 37
-
-

6 years 9 months ago [\#315536](#315536) by [lesyeux](/forum/user/1216-lesyeux "View lesyeux's Profile")  Replied by *[lesyeux](/forum/user/1216-lesyeux "View lesyeux's Profile")* on topic *[Page blanche (fatal error) avec plugin PayPlug v2](/forum/5-support-en-francais-french-support-/899147-page-blanche-fatal-error-avec-plugin-payplug-v2#315536 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.15 -- PHP version -- : 7.3.14 -- Error-message(debug-mod must be tuned on) -- : Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /plugins/hikashoppayment/payplug2/lib/Payplug/Payplug.php on line 11  Bonjour,  Je tente d'utiliser le nouveau plugin PayPlug v2.  Lors de la validation de la commande, j'ai une &quot;fatal error&quot;, avec page blanche.  Les autres modes de paiement fonctionnent, y compris l'ancien plugin PayPlug.")*

Bonjour et merci, cette version a réglé le problème.

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

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