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

#   Problem with eway checkout

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 8 months ago [\#41455](#41455) by [otrain](/forum/user/5426-otrain "View otrain's Profile")  *[Problem with eway checkout](/forum/3-bug-report/41455-problem-with-eway-checkout#41455 "Hello,  I have the following php error message when I try to insert the credit card details and try to checkout.  There was an error while processing your transaction:  Warning: xml&#95;error&#95;string() expects parameter 1 to be long, resource given in /home/otrainco/public&#95;html/plugins/hikashoppayment/eway/eway.php on line 437  I would really appreciate some assistance with this.  Thanks")* was created by *[otrain](/forum/user/5426-otrain "View otrain's Profile")*

Hello,

I have the following php error message when I try to insert the credit card details and try to checkout.

**There was an error while processing your transaction:

Warning: xml\_error\_string() expects parameter 1 to be long, resource given in /home/otrainco/public\_html/plugins/hikashoppayment/eway/eway.php on line 437**

I would really appreciate some assistance with this.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQ1NS1wcm9ibGVtLXdpdGgtZXdheS1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 8 months ago [\#41610](#41610) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem with eway checkout](/forum/3-bug-report/41455-problem-with-eway-checkout#41610 "Hello,  I have the following php error message when I try to insert the credit card details and try to checkout.  There was an error while processing your transaction:  Warning: xml&#95;error&#95;string() expects parameter 1 to be long, resource given in /home/otrainco/public&#95;html/plugins/hikashoppayment/eway/eway.php on line 437  I would really appreciate some assistance with this.  Thanks")*

Hi,

Please change the line:
$this-&gt;myErrorMessage = xml_error_string( $this-&gt;parser );

to:
$this-&gt;myErrorMessage = xml_error_string( xml_get_error_code( $this-&gt;parser ) );

in the file plugins/hikashoppayment/eway/eway.php
That should display the correct error message which should help you/us understand why it doesn't work.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQ1NS1wcm9ibGVtLXdpdGgtZXdheS1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 8 months ago [\#41794](#41794) by [otrain](/forum/user/5426-otrain "View otrain's Profile")  Replied by *[otrain](/forum/user/5426-otrain "View otrain's Profile")* on topic *[Re: Problem with eway checkout](/forum/3-bug-report/41455-problem-with-eway-checkout#41794 "Hello,  I have the following php error message when I try to insert the credit card details and try to checkout.  There was an error while processing your transaction:  Warning: xml&#95;error&#95;string() expects parameter 1 to be long, resource given in /home/otrainco/public&#95;html/plugins/hikashoppayment/eway/eway.php on line 437  I would really appreciate some assistance with this.  Thanks")*

Hi,

Thanks, I figured the issue. It was with the customer ID.

The customer ID was wrong.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQ1NS1wcm9ibGVtLXdpdGgtZXdheS1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 217
- Thank you received: 1
-
-

14 years 4 months ago -  14 years 4 months ago [\#54591](#54591) by [Mat](/forum/user/4216-mat "View Mat's Profile")  Replied by *[Mat](/forum/user/4216-mat "View Mat's Profile")* on topic *[Re: Problem with eway checkout](/forum/3-bug-report/41455-problem-with-eway-checkout#54591 "Hello,  I have the following php error message when I try to insert the credit card details and try to checkout.  There was an error while processing your transaction:  Warning: xml&#95;error&#95;string() expects parameter 1 to be long, resource given in /home/otrainco/public&#95;html/plugins/hikashoppayment/eway/eway.php on line 437  I would really appreciate some assistance with this.  Thanks")*

--

Last edit: 14 years 4 months ago by [Mat](/forum/user/4216-mat "View Mat's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQ1NS1wcm9ibGVtLXdpdGgtZXdheS1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.075 seconds

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