Skip to content

Fix: Fatal parse error in nowpayments gateway class preventing dropdown load - #41

Open
abrarhasandev wants to merge 1 commit into
PipraPay:mainfrom
abrarhasandev:fix-gateway-parse-error
Open

abrarhasandev wants to merge 1 commit into
PipraPay:mainfrom
abrarhasandev:fix-gateway-parse-error

Conversation

@abrarhasandev

Copy link
Copy Markdown

Description

Fixed a PHP parsing error in pp-content/pp-modules/pp-gateways/nowpayments/class.php.

There was unexpected text/characters before the <?php opening tag in the nowpayments module. This syntax error was causing the directory scanner to fail silently, which resulted in the "New Gateway" dropdown list appearing completely empty in the Admin Panel for all gateways.

Changes Made

  • Removed the invalid characters before the <?php tag in the nowpayments class file to ensure valid PHP syntax.

Steps to Test

  1. Go to Admin -> Gateways -> New Gateway.
  2. Click on the Gateway dropdown.
  3. Verify that the dropdown successfully populates with the list of all available gateways (e.g., bKash, SSLCommerz, Stripe) without failing.

@abrarhasandev abrarhasandev changed the title Fix: Fatal parse error in nowpayments gateway class preventing dropdown loadFix: Remove invalid characters before PHP opening tag in nowpayments … Fix: Fatal parse error in nowpayments gateway class preventing dropdown load Jun 4, 2026
SmZamil1 added a commit to SmZamil1/PipraPay that referenced this pull request Sep 1, 2026
The doc comment sat outside <?php, so require_once emitted 281 bytes of
raw text. The admin gateway modal requires each class inside the <select>
element, so that output corrupted the select and emptied the gateway
dropdown for all 48 gateways. Upstream issues PipraPay#41 / PipraPay#56.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant