Title: PHP error deprecated
Last modified: October 30, 2024

---

# PHP error deprecated

 *  Resolved [valekichia](https://wordpress.org/support/users/valekichia/)
 * (@valekichia)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-error-deprecated/)
 * 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](https://wordpress.org/support/users/carlericsson/)
 * (@carlericsson)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-error-deprecated/#post-18105089)
 * Hey [@valekichia](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/valekichia/)
 * (@valekichia)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-error-deprecated/#post-18105314)
 * Hi [@carlericsson](https://wordpress.org/support/users/carlericsson/),
 * should I simply upload it or I need to delete the existing one before?
 * Thank you,
   Valentina
 *  Plugin Author [carlericsson](https://wordpress.org/support/users/carlericsson/)
 * (@carlericsson)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-error-deprecated/#post-18105787)
 * Hey [@valekichia](https://wordpress.org/support/users/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](https://wordpress.org/support/users/valekichia/)
 * (@valekichia)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-error-deprecated/#post-18113287)
 * Hi [@carlericsson](https://wordpress.org/support/users/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](https://wordpress.org/support/users/carlericsson/)
 * (@carlericsson)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-error-deprecated/#post-18113316)
 * Hey [@valekichia](https://wordpress.org/support/users/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](https://wordpress.org/support/users/valekichia/)
 * (@valekichia)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-error-deprecated/#post-18113331)
 * Great!
   Thank you again and have a nice day!
 *  [hirngesicht](https://wordpress.org/support/users/hirngesicht/)
 * (@hirngesicht)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/php-error-deprecated/#post-18145483)
 * 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)

The topic ‘PHP error deprecated’ is closed to new replies.

 * ![](https://ps.w.org/woo-swish-e-commerce/assets/icon.svg?rev=3345162)
 * [BjornTech Swish for WooCommerce](https://wordpress.org/plugins/woo-swish-e-commerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-swish-e-commerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-swish-e-commerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-swish-e-commerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-swish-e-commerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-swish-e-commerce/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 7 replies
 * 3 participants
 * Last reply from: [hirngesicht](https://wordpress.org/support/users/hirngesicht/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/php-error-deprecated/#post-18145483)
 * Status: resolved