logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
pdsteiner8198692  
#1 Posted : Thursday, November 17, 2022 9:23:43 AM(UTC)
pdsteiner8198692

Rank: Member

Groups: Authorized User
Joined: 12/30/2020(UTC)
Posts: 13

I installed AC test gateway to test the payments, when clicking Configure it returns the 500 server error (URL: https://testingstore.xyz...Payments/AcTest/Config). Has someone encountered it, could be a permission issue?

Thanks.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Katie S  
#2 Posted : Thursday, November 17, 2022 11:42:28 AM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 423

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
I have seen this issue come up before and we have an open bug report for it. The problem is that I've never been able to reproduce it.

It can happen if the gateway is installed twice. In a normal situation, this can't happen because the install button disappears once it's installed.

Open/edit the ac_PaymentGateways database table and check to see if there is a duplicate entry for "AbleCommerce Test Gateway". If so, remove the duplicate. You may need to recycle the application afterwards.

The duplicate Class ID can cause a 500 server error.
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
pdsteiner8198692  
#3 Posted : Thursday, November 17, 2022 12:00:23 PM(UTC)
pdsteiner8198692

Rank: Member

Groups: Authorized User
Joined: 12/30/2020(UTC)
Posts: 13

There is no duplicate entry, here is the only record in the ac_PaymentGateways table:

1 1 Gift Certificate Payment Provider CommerceBuilder.Payments.Providers.GiftC (...) NULL False

The name doesn't even match "AbleCommerce Test Gateway", are they the same thing?
Katie S  
#4 Posted : Thursday, November 17, 2022 1:35:04 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 423

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
That's something different...

With no entry for the AbleCommerce test gateway in the database, that would mean the Plugin is not installed.

Go to the Plugins page and try to install it again.

Thanks for your support!

Katie
Secure eCommerce Software and Hosting
pdsteiner8198692  
#5 Posted : Thursday, November 17, 2022 1:53:45 PM(UTC)
pdsteiner8198692

Rank: Member

Groups: Authorized User
Joined: 12/30/2020(UTC)
Posts: 13

It's not working. Is it normal to have different schemas in the database after upgrade succeeded. See image below:

Screen Shot 2022-11-17 at 21.51.45.png (39kb) downloaded 2 time(s).

Edited by user Thursday, November 17, 2022 2:05:03 PM(UTC)  | Reason: Not specified

judy at Web2Market  
#6 Posted : Friday, November 18, 2022 5:28:00 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
You can get different schema after an upgrade if your site is hosted with a control panel like Plesk. I just had that happen and we had to change the schema on those tables to dbo before the site would work.
pdsteiner8198692  
#7 Posted : Friday, November 18, 2022 10:13:57 AM(UTC)
pdsteiner8198692

Rank: Member

Groups: Authorized User
Joined: 12/30/2020(UTC)
Posts: 13

The issue persists each time a plugin is installed, clicking Configure results in a 500 server error. Do we need to apply folder permissions? I need to fix this in order to move on with testing the new version.
Katie S  
#8 Posted : Friday, November 18, 2022 12:31:40 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 423

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Have you fixed the database so the tables are all set to dbo?

Installing a payment plugin will add a record to the ac_PaymentGateways table. If it can't write the record, then you'll keep getting the 500 server error.
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
pdsteiner8198692  
#9 Posted : Friday, November 18, 2022 1:59:09 PM(UTC)
pdsteiner8198692

Rank: Member

Groups: Authorized User
Joined: 12/30/2020(UTC)
Posts: 13

Thanks Katie for your help.

Yes, but I finally managed to solve the issue by turning off custom errors in the web.config and see what's really going on. Hopefully it might help others who have the same hosting account type as us. Ours is a Windows Ultimate (Plesk) at GoDaddy in a shared environment, installing and running plugins are no-go because dynamic compilation is blocked by default. In order to bypass it, you need to precompile all of your cshtml files, including those created when a plugin is installed which requires a re-publishing of your website. For whatever reason global.asax must be present in the root otherwise the component of the service controllers won't be found (Castle complaining here).
pdsteiner8198692  
#10 Posted : Friday, November 18, 2022 2:08:45 PM(UTC)
pdsteiner8198692

Rank: Member

Groups: Authorized User
Joined: 12/30/2020(UTC)
Posts: 13

Katie, what card number, expire date and CVV should we use to test the payment? By the way, AC test gateway is installed.

Edited by user Friday, November 18, 2022 2:11:07 PM(UTC)  | Reason: Not specified

Katie S  
#11 Posted : Friday, November 18, 2022 2:15:10 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 423

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Thanks for the update and explanation. That should be very helpful for anyone else using GoDaddy hosting with Plesk.

For testing, using the AC gateway, you can pretty much use any credit card number that will pass checksum validation.

Visa - 4111111111111111
MC - 5454545454545454

Any month/yr in the future.
For CVV, use any 3 digit number like 123

Have a great weekend!
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.