• Resolved Marcel Oerlemans

    (@marceloerlemans)


    Hello,
    I tried to make this plugin work with Mollie payments (Dutch). Before I used Pay for payment it worked fine, when I set P4P i got an error (Fatal error: Unsupported operand types in /home/ateconnl/public_html/web/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay-admin.php on line 259). And since then I can’t even get Mollie to work anymore!
    I’ve tried deactivating P4P, uninstalling, deactivating Mollie and reactivating, nothing worked. Everything is up to date on the website.
    Please tell me how I can fix this!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Marcel Oerlemans

    (@marceloerlemans)

    I think I resolved the issue, for me at least.
    On line 259 stood:
    $options += $extra;
    This has to be:
    $options = $extra;

    Thread Starter Marcel Oerlemans

    (@marceloerlemans)

    resolved

    Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    Hi Marcel,

    this is maybe solving your problem, but causing many others. This $options += $extra; means union of array $options and array $extra, quite basic stuff. If you remove the + sign, you have lost all other payment gateway settings (such as name, title etc.).

    Basically, it’s super weird that your gateway have no options, could you please add following lines before line 259 and try to save the field and paste here what it print out?

    		echo '<pre>';
    		var_dump( $options );
    		var_dump($extra);
    		echo '</pre>';

    Could you please let me know, which PHP version you run?

    Thread Starter Marcel Oerlemans

    (@marceloerlemans)

    Hi Karolina,
    Sorry, that’s how much I know about PHP programming ?? I thought the + sign was an error because after deleting the error didn’t show anymore, may be coincidence..
    Thanks for your response, I put the + sign back and the settings are now good, so I won’t edit them anymore.
    Mollie does however still work, but I couldn’t see it in a certain delivery method.
    The PHP version is 5.4.35

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    *Reads. Cringes.*

    Nuts. Now I’ll need to review and redact all of the author’s replies…

    @vyskoczilova I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    https://make.www.ads-software.com/support/handbook/forum-welcome/#the-bad-stuff

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us asking you to repeatedly stop before escalating up to the plugins team.

    Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    @jdembowski, I understand. I’m really sorry and promise to never do it again. Is it ok to ask for a test site?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Is it ok to ask for a test site?

    No, it’s not and I do thank you for asking. ??

    There are many ways to get information you need and accessing the user’s site, even a test installation, is not one of them.

    You get the idea.

    Volunteer support is not easy. But these forums need to a safe place for all users, experienced or new. Accessing their system that way isn’t appropriate or safe for all users.

    Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    @jdembowski, thanks a lot!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Payment broken…’ is closed to new replies.