Error after upgrade when customer purchases

  • Posts: 20
  • Thank you received: 0
  • Hikashop Business
1 week 4 days ago #304746

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.4
-- PHP version -- : 7.1.14
-- Browser(s) name and version -- : safari 10.1.2
-- Error-message(debug-mod must be tuned on) -- : "0 call to a member function get() on string"

"0 call to a member function get() on string"- is the error that appears when someone has successfully purchased anything from the store. They get the email, they are able to buy but instead of the final thank you page (return url) appearing, they get this error. I have a photo we can upload for you of the error a customer sent us. How do we fix it please?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 65159
  • Thank you received: 9465
  • MODERATOR
1 week 4 days ago #304748

Hi,

First, please activate the "error reporting" and "debug mode" settings of the Joomla configuration in order to get more information on that error and provide the addtional information you see on that screen.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
  • Hikashop Business
1 week 2 days ago #304809

This is getting even stranger. My customers are now receiving an email telling them their order was cancelled. When they get a notification from Hikashop about the cancellation, is says this, "Hello, A stripe notification was received with the status cancelled. The order is now cancelled. " and those are the first two lines but the payment was good, it shows as good in stripe (successful). We are using version 2 of Stripe payment. This has been happening since we did the last upgrade of Hikashop.

We also noticed that our coupon system (where people can get a discounted price) isn't working as it normally does. It usually has a correct count and we're absolutely certain that the count is off. It says it has had one use, but it's had several uses. This is new as this count was reliable prior to this always.

Last edit: 1 week 2 days ago by notnilla.

Please Log in or Create an account to join the conversation.

  • Posts: 65159
  • Thank you received: 9465
  • MODERATOR
1 week 1 day ago #304818

Hi,

Wait, what happened to your initial error ?
Do you still have it ?
What about the error message with the debug activated ?

Regarding the payment notification email, I don't see how the customer could receive it. That email is sent to the email address you entered in the "payment notification email address" setting of the HikaShop configuration. Please double check.
Also, please note that you can check all the emails sent by HikaShop via the menu Customers>Emails history.

Regarding the fact that you get a cancelled notification, I wouldn't be able to say much besides the fact that it indicates that either the Stripe library used in the plugin returned some kind of error during the notification, or the charge object returned was marked as failed.
I've added some logging to the plugin.
Go here: github.com/HikaShop/hikashoppayment-stripe
Click on the "clone or download" button and download the zip of the plugin. Then, install it on your Joomla website and try again to reproduce the issue (or wait someone else to have the issue on your website). Then, check the end of the "payment log file" in the Hikashop configuration. It will provide debug information to help understand why the payment was marked as failed.

Regarding your coupon issue, I suppose that it's linked to your payment notification issue. If the order is cancelled, then the coupon wouldn't be counted as used. And then, if you change the status from cancelled to confirmed, that's not a standard workflow procedure so it's not counted either. It would if the order goes from created to confirmed.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
  • Hikashop Business
22 hours 8 minutes ago #305062

Okay, I have a ton of information. All of this began after I uploaded the newest version. Everything had been working smoothly prior to that.

This might be overkill but I want to give you as much information as possible. I talked with Stripe for a number of hours. They are saying that there is something in the software which now is setting off Radar alarms and telling their system that all of our cards are high risk. We've been here for 24 years, our people aren't high risk. So the cards end up being declined or sent back because the systems aren't talking appropriate and then my people get sent an email that their order has been cancelled. I'll attach an email that shows that. What is interesting is in the email the URL of our site has been shortened. I noticed that, it's www.seleatherfest.com instead of secure.seleatherfest.com

I made a new user acct, made an order in test mode (stripes test api's and not the live ones) and got a page full of errors when I clicked the last button to finish the purchase. I'll attach that also. I have also attached the High Risk email I'm getting from Stripe.

There are payment logs and all sorts of debugging reports but it has information that I need to put somewhere secure. Does this help at all?

Attachments:
Last edit: 21 hours 24 minutes ago by notnilla. Reason: adding more attachments.

Please Log in or Create an account to join the conversation.

  • Posts: 65159
  • Thank you received: 9465
  • MODERATOR
9 hours 57 minutes ago #305073

Hi,

1. Regarding the error at the end of the checkout, it indicates that HikaShop was not able to load the settings of the HikaShop group plugin and that the order that is created is changing the user groups of the customer.
I've added a patch on our end to avoid that.
Download again the install package on our website and install it on yours and it will add the patch and remove the error.

2. Regarding the Stripe payments, that's really strange as this payment plugin is not included in HikaShop.
So either you're using the plugin on our github or the stripe v3 plugin of our marketplace, and both would have to be updated manually if you want to update them by reinstalling the latest install package on your website.
So you're still using the old version of the stripe plugin you were using before the update of your HikaShop.
Either the issue is linked to the error at the end of the checkout (but I don't see why ?) and thus it will be okey after you add the patch of point 1, or I don't know why it would do that ? Now maybe updating the stripe plugin might help ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum