• Resolved niburu

    (@niburu)


    Hello,

    PaybyBank doesnt really work for me. I now checked my eroor.log and found this:

    [10-Jun-2026 13:43:33 UTC] PHP Fatal error: Uncaught TypeError: str_split(): Argument #1 ($string) must be of type string, null given in ************wp-content/plugins/mollie-payments-for-woocommerce/src/PaymentMethods/InstructionStrategies/PaybybankInstructionStrategy.php:34

    I checked with AI and it tells me the file is full of logical error:

    1. PHP Fatal error caused by str_split() receiving null.
      In PaybybankInstructionStrategy.php, the code calls str_split($payment->details->bankAccount, 4), but in some cases bankAccount is null. On PHP 8+, this causes a fatal TypeError because str_split() requires a string.
    2. Missing null checks for payment detail fields.
      The code assumes that fields like bankAccountbankNamebankBic, and transferReference are always available. If any of these values are missing, the instruction generation can fail or produce invalid output.
    3. Broken block structure / malformed logic in the original file.
      The original code appears to contain missing closing braces and inconsistent if conditions, which can lead to syntax or logic errors. This makes the function unreliable and harder to maintain.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter niburu

    (@niburu)

    The error seems to be not with the mollie plugin. some files were lbocked by server level firewall.

    We have the same error on our site.

    PHP Fatal error: Uncaught TypeError: str_split():
    Argument #1 ($string) must be of type string, null given
    in /wp-content/plugins/mollie-payments-for-woocommerce/src/PaymentMethods/InstructionStrategies/PaybybankInstructionStrategy.php:34

    Relevant stack:

    #0 PaybybankInstructionStrategy.php(34): str_split()

    #1 OrderInstructionsManager.php(23): PaybybankInstructionStrategy->execute()

    #2 OrderInstructionsManager.php(49): OrderInstructionsManager->executeStrategy()

    #3 Gateway/inc/services.php(266): OrderInstructionsManager->displayInstructions()

    #7 woocommerce/templates/checkout/thankyou.php(81): do_action()

    #9 breakdance-woocommerce/builders/checkout.php(138): wc_get_template()

    #10 Breakdance CheckoutBuilder: thankYou()

    This fatal error happens while rendering the order-received page. It may not reject the payment itself, but it breaks the confirmation page, hides payment instructions, and can make customers believe checkout failed and retry.

    Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @matmayer

    I believe this may be related to the other issue you reported in a separate thread on the same day. However, the original reporter found that this fatal error was ultimately caused by a server-level firewall blocking required requests or files.

    Could you please ask your hosting provider to check whether a server firewall, ModSecurity rule, or similar security layer is blocking anything required by Mollie Payments? If possible, please have them temporarily disable the relevant protection for testing or whitelist the affected requests, and then place another test order.

    Please let us know the results. In the meantime, I reached out to devs with all the details.

    Kind Regards
    Krystian

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.