Oops! An Error Occurred The server returned a "405 Method Not Allowed". Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused

Hello, I’m using Stripe as a payment method on v5. But when making payment, the system requires the client to provide their Zip/Postal Code. When clicking continues the following error occurs.

Oops! An Error Occurred

The server returned a “405 Method Not Allowed”.

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Hi,

Thanks for reporting this!

cc @david @ben

405 indicates a method note allowed.

You may get more information from your browser console for any libraries that haven’t loaded. but i think this may be something unique to your installation.

It was an installation from softaculous. But if you visit the account & edit the profile. Enter the postal code etc., and return to payment gateway (stripe); it bypasses the form and the payment can be processed as usual.

@wanay0003

I think I know the issue on this:

In you .env file please remove the trailing slash from the APP_URL

Thanks for your suggestion, The .env file does not contain any trailing slash. The URL is as follows: https://billing.websiteaddress.tls/public

@wanay0003

If you check the browser console on the 405 error, you’ll see the error related to a Livewire path issue.

I’m getting this same error…not exactly sure how to fix this…someone on fiverr installed self hosted for me…I imported my api from stripe myself…what else can I do here to fix this?

I get the same error message when the customer saves profile data.

Entering the data during registration works without errors, but if the customer tries to change profile data afterwards (e.g. phone number or billing address), the error message 405 also appears.

According to the browser console, it is due to the following call:
https://invoice.roundaboutweb.net//livewire/message/profile.settings.name-website-logo

  • Where does “//” after the domain come from (APP_URL in .env is without trailing slash)?
  • Even without double slash the address is wrong.
  • How to fix it?

PHP: 7.4
Ninja: 5.2.19-C58

Since I entered the license key, the error no longer occurs.