Fatal error on checkout

Permalink Browser Info Environment
Hi, Just installed SagePay but I am getting this error after adding address and proceeding to next checkout window:

Fatal error: Call to a member function getAddress1() on a non-object in /var/sites/t/taxpersonal.co.uk/public_html/packages/sagepay_form/models/core_commerce/payment/methods/sagepay_form/controller.php on line 92

Type: Pre-Sale
Status: Resolved
RussellFinneran
View Replies:
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

We'll try to look into this.

Can you possibly send us screenshots on the checkout form you filled-out?

Thanks,
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

We tried it on our end and we did not encounter any error. Have you somehow modified the billing information form?

Thanks,
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

Any feedback on this?

Thanks,
RussellFinneran replied on at Permalink Reply
RussellFinneran
Dear concrete5 team

I have only selected UK only for billing and shipping in order attributes, other than this no other changes from initial installation of e-commerce have been made.

Do I need to re-install e-commerce and SagePay or have you any other suggestions for how I can resolve the issue as I am still getting the error?

Kind regards

Russell
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

Did you input all the necessary required information on both the Billing and Shipping Information more specifically the Address, City, Country, Postal Code fields? As these are required on Sage Pay.

Thanks,
RussellFinneran replied on at Permalink Reply
RussellFinneran
Dear concrete5 team

I have gone through the process again this morning with no further changes to attributes made, all appears to be working as expected, so thank you for the support.

Kind regards

Russell
datasouth replied on at Permalink Reply
datasouth
Hi Russell,

That's good to know. Please do let us know if you encounter any other issues.

Thanks,
JM
RussellFinneran replied on at Permalink Reply
RussellFinneran
I have only specified 'United Kingdom' in 'Order Attrubues' for Billing and Shipping addresses, no other modifications have been made.

I have cleared cash but I am still getting the error after adding address and proceeding to next checkout window.

Regards

Russell
datasouth replied on at Permalink Reply
datasouth
Hi Russell,

Hmmmm did you supply all the required address information on the Biling and Shipping form?

Namely:
Address1
City
State/Province
Country
Postal Code

Thanks,
JM
RussellFinneran replied on at Permalink Reply
RussellFinneran
Yes, just tried again with new address details, still getting error.
datasouth replied on at Permalink Reply
datasouth
That seems weird because it's working perfectly on our end. Can you possibly give us a link to your website so we can check?

And can you give more information regarding the Browser you are using, Concrete5 version so we can try to replicate the issue.

Thanks,
JM
RussellFinneran replied on at Permalink Reply
RussellFinneran
This is the website

http://www.taxpersonal.co.uk.gridhosted.co.uk/...

Browser:
Firefox 4.0 and Chrome
on mac

# concrete5 Version
5.6.3.1

# concrete5 Packages
Bootstrap (3.1.1.4), Downloadable File Purchase (1.2.2), eCommerce (2.8.12), Sage Pay eCommerce Payment Provider (0.9.3), Whale Nivo Image Slider (1.1).

Regards

Russell
datasouth replied on at Permalink Reply
datasouth
Hi Russell,

Can you try updating to our latest version 1.0.1 as we have made some fixes before regarding some values on the form not being parsed correctly.

This might as well fix the bug you are currently experiencing.

Thanks,
JM
RussellFinneran replied on at Permalink Reply
RussellFinneran
How do I update? There are no updates available on my updates page.
datasouth replied on at Permalink Reply
datasouth
You may download the latest version 1.0.1. Try following the steps below to manually update the add-on:

- To download the original zip folders, you need to "release" them from your project page.

- They will then appear for downloading in your list of licences (my account - transactions - licenses).

- Once you've downloaded them, you can re-attach them to your project page.

- Load the unzipped contents of the download to the upper level "Packages" folder in your installation.

Or you may also use the link below as guide.

http://www.concrete5.org/marketplace/how_to_install_add_ons_and_the...

Thanks,
JM
RussellFinneran replied on at Permalink Reply
RussellFinneran
After updating, my secondary browser 'Chrome' appears to be working, but Firefox is still giving the error, I will let you know how I go on

Regards

Russell
datasouth replied on at Permalink Reply
datasouth
Try clearing cache on firefox or refresh the add-on.

Just keep me posted.

Thanks,
JM
RussellFinneran replied on at Permalink Reply 2 Attachments
RussellFinneran
Firefox browser returning a new error after filling in Billing Information and selecting next.

Fatal error: Call to a member function getCountry() on a non-object in /var/sites/t/taxpersonal.co.uk/public_html/packages/sagepay_form/models/core_commerce/payment/methods/sagepay_form/controller.php on line 80

I also asked a friend to try from her PC using Firefox and Chrome, same error, see attached screen shots

Any suggestions on what I may be doing wrong?
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

Our apologies for the late response. I'll try to replicate the issue using firefox.

Please keep posted.

Thanks,
datasouth replied on at Permalink Reply 2 Attachments
datasouth
Hi Russel,

I tried testing the issue on your website and I have noticed that you are using numbers for the values of the Billing Country and Shipping Destination drop downs as you can see on the screenshot (issue1.jpg). Whereas on Concrete5, the default Country Code values are using the ISO 3166-1 alpha-2 code standard (ie. UK, US, PH etc) as you can see on the screenshot (codes.jpg).

Try using the default Billing and Shipping Country values of Concrete5 and let me know how it goes.

Thanks,
JM
RussellFinneran replied on at Permalink Reply
RussellFinneran
Hi

This is the website in question:

http://www.taxpersonal.co.uk.gridhosted.co.uk/...

It will replace the current live site when finished

Russell
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

Ah I see. Can you confirm that you are now currently using the latest version?

Thanks,
datasouth replied on at Permalink Reply 1 Attachment
datasouth
Hi Russel,

The latest version should have the Notes field in place under the Post Code field on the Billing Information form as seen on the attachment

Thanks,
JM
RussellFinneran replied on at Permalink Reply 1 Attachment
RussellFinneran
Thanks JM

The notes section is not on the billing form, I think I have version 1.0.1, see attachment

Regards

Russell
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

That seems weird since on the latest versions the notes field should have been in place.
If I may just ask, have you somehow modified the default Billing Information form of the Ecommerce plugin?

Thanks,
JM
RussellFinneran replied on at Permalink Reply
RussellFinneran
I have been asked this before, I wouldn't no how ti do this, unless by accident.

Would re-installing e-commerce help, as there are only 8 products at this stage?

Russell
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

Our apologies for asking this again. Please disregard.

I now have found the under lying problem and it is due to the product as being downloadable and no shipping address is being passed.

I try to see what I can do and upload a new version of this plugin to support this scenario.

I'll keep you posted on the progress.

Thanks,
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

I may be needing some time to make the necessary adjustments to support downloadable products wherein no shipping address is required.

My estimate would be before end of day tomorrow 5:00pm.

I'll keep you posted.

Thanks,
JM
datasouth replied on at Permalink Reply
datasouth
Hi Russel,

I think I may now have found the problem. It is causing errors for the downloadable products, since no Shipping Address is specified.

I tried checking out an item that is not downloadable and was able to go through without errors.

I'll try to see what we can do here. I'll keep you posted.

Thanks,
datasouth replied on at Permalink Reply
datasouth
Hi Russell,

We have now added support for downloadable products wherein Shipping address is not required.

Kindly update to our latest version(1.0.2) following the steps before. And let us know how it goes on your end.

Thanks,
JM
RussellFinneran replied on at Permalink Reply
RussellFinneran
Thank you JM

I will keep you informed

Regards

Russell
senshidigital replied on at Permalink Reply 1 Attachment
senshidigital
HI. not sure if it is related but we are getting a problem when clicking 'next' to submit the payment. I have attached a screenshot of the error.

Is this related? All we changed was the default to UK too I beleive.
senshidigital replied on at Permalink Reply
senshidigital
Ok. Our error seems to happen when a '£' is added to a product name. So like:

£20 Gift Voucher does to work and causes the error.
datasouth replied on at Permalink Reply
datasouth
Hi Senshdigital,

Can you open a different ticket for this issue so as to avoid confusions.

As for the issue, i'll try to replicate it on my end.

Thanks,
JM
datasouth replied on at Permalink Reply
datasouth
Hi senshidigital,

This is an issue on the latest Protocol version of Sage Pay v3.00 wherein the £ symbol is not confirmed in the Basket field.

A possible workaround maybe is just use the word "pounds" instead as Sage Pay throws an error whenever the £ symbol is being used on the basket field.

Thanks,
JM
senshidigital replied on at Permalink Reply
senshidigital
Thanks. Will I open a ticket or is this a Sage Pay problem?
datasouth replied on at Permalink Reply
datasouth
Hi,

Not entirely an issue but more of a constraint on the new implementation of Sage Pay's v3.00 protocol, wherein the £ sysmbol is no longer confirmed in the Basket field upon Crypt generation.

Thanks,
JM
datasouth replied on at Permalink Reply
datasouth
Hi Senshidigital,

We have updated our codes to just stripped out the £ symbol on the Product names to avoid errors upon redirection to the Sage Pay website.

You may update to our latest version 1.0.3 to have this reflected.

If you have any other concerns, just let us know.

Thanks,
JM

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Bootstrap (3.1.1.4), Downloadable File Purchase (1.2.2), eCommerce (2.8.12), Sage Pay eCommerce Payment Provider (0.9.3), Whale Nivo Image Slider (1.1).

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:39.0) Gecko/20100101 Firefox/39.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.