• Resolved valekichia

    (@valekichia)


    Hello,

    I see this PHP error on my website:

    “Optional parameter $payer_alias declared before required parameter $callback is implicitly treated as a required parameter.”

    Location: wp-content/plugins/woo-swish-e-commerce/classes/api/woo-swish-api-functions.php:45

    Could you please help solving it?

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author carlericsson

    (@carlericsson)

    Hey @valekichia,

    Thanks for reaching out! Ahh good catch! I think I’ve managed to fix it now. Please try downloading and installing this version of the plugin – https://www.dropbox.com/s/aj5kmzlf8mwg7qx/woo-swish-e-commerce.zip?dl=1. The version number is the same but I’ve added a fix to the code. Once you’ve installed it try to do another test payment on the site. The error should not be triggered anymore. Let me know how it goes.

    /Carl

    Thread Starter valekichia

    (@valekichia)

    Hi @carlericsson,

    should I simply upload it or I need to delete the existing one before?

    Thank you,
    Valentina

    Plugin Author carlericsson

    (@carlericsson)

    Hey @valekichia ,

    I would suggest deleting the existing one first. Reason is that I’ve seen that sometimes you end up with two Swish installations on your site. So delete the old one first and then install the new one.

    /Carl

    Thread Starter valekichia

    (@valekichia)

    Hi @carlericsson ,

    today I had to switch the PHP version from 8.3 to 8.1 to solve an incompatibility with another plugin and the error from your plugin disappeared too.

    I hadn’t installed the update you sent yet.
    Should I do it anyways?

    Thank you

    Plugin Author carlericsson

    (@carlericsson)

    Hey @valekichia ,

    Ahh, interesting. No need to upgrade the version then. I will send out that change with the next official update of the Swish plugin anyways. But for now you don’t have to do anything.

    /Carl

    Thread Starter valekichia

    (@valekichia)

    Great!
    Thank you again and have a nice day!

    Hello all!

    When is this update releasing? We want to start using this plugin but as we install our plugins using Composer, replacing files isn’t an option.

    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.