Announcement

Collapse
No announcement yet.

How to fix the "The file(s) uploaded were too large to process" error in payment gateway

Collapse
This is a sticky topic.
X
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Free Mod How to fix the "The file(s) uploaded were too large to process" error in payment gateway

    If you created a new payment gateway and if that gateway sends JSON data instead of POST data to your server when processing a subscription payment, you would get that error when the gateway sends request to <forumbaseurl>/core/payment_gateway?method=xxxxxxxx. It is because vBulletin checks if POST data is available and if not, it throws that error. To fix the issue, you have to edit the /core/includes/init.php file.

    Find this line:
    PHP Code:
    die('The file(s) uploaded were too large to process.'); 
    And replace it with:
    PHP Code:
    if (stripos($_SERVER['REQUEST_URI'], '/core/payment_gateway.php?method=xxxxxxxx') === FALSE) {
        die(
    'The file(s) uploaded were too large to process.');

    Replace xxxxxxxx with the appropriate payment gateway name.

    I did this change when I created a Stripe payment gateway which sends JSON data when sending Webhook notification requests to the server.

    Note: This is a core hack so you should re-apply this change every time you upgrade.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

Users Viewing This Page

Collapse

There is 1 user viewing this forum topic.

  • Guest Guest

Latest Posts

Collapse

Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.

Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
There are no results that meet this criteria.
Search Result for "|||"