Hi,

when we click on "Stripe Credit Card" in the "Add payment method" page in Payment, we get a 404 not found error.

The URL is then set at : http://example.com/admin/config/services/payment/method/add/\Drupal\stripe_payment\CreditCardController

I put the critical flag on it since the beta7 is marked as the recommended release and that issue completly block users from using the module.

EDIT : After writhing the issue, I figured out the problem was about the clean url. WHen I use http://ecample.com/index.php?q=admin/config/services/payment/method/add/\Drupal\stripe_payment\CreditCardController it works. I'm putting the issue to "Major", since it is a problem on websites using clean URL, but it is still accessible.

Comments

memsis created an issue. See original summary.

memsis’s picture

Priority: Critical » Major
Issue summary: View changes
torotil’s picture

Priority: Major » Normal

This doesn't seem to be the case for most users. What's your payment version? Might this be an issue with your clear_url rewriting?

Regardless of that it might be a good idea to use a better machine-name for the payment method (which became possible in more recent payment versions).

torotil’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB

Regardless of the above questions: Does this patch help?

torotil’s picture

Title: Cannot add a payment method » Cannot add a payment method (using clean-urls)
memsis’s picture

Payment version is 7.x-1.14

I have no other issue with the URL rewriting. I'm using the RewriteBase in htaccess since I'm using virtualdocumentroot in dev. But everything else works properly, even custom modules where I screwed up the URL at first...

The patch works for me! It removed the error, and I tested without clean URL and it works too.

  • torotil committed b940d1d on 7.x-1.x
    Issue #2574141 by torotil, memsis: Use a controller class alias - avoid...
torotil’s picture

Status: Needs review » Fixed

It seems the reason for your error is some problem with handling backslashes in the URL. That might be a browser, server or PHP issue. Anyway I've committed the patch and plan to make a new release in two weeks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.