strangerstudios / paid-memberships-pro

WordPress membership plugin to restrict access to content and charge recurring subscriptions using Stripe, PayPal, and more. Fully open source. 100% GPL.
https://www.paidmembershipspro.com
Other
457 stars 357 forks source link

Warnings of undefined key "SERVER_NAME" when using WPCLI commands. #2993

Closed andrewlimaza closed 1 month ago

andrewlimaza commented 3 months ago

A warning is thrown whenever a WPCLI command is run and while this shouldn't cause any functionality issues it can be annoying and fill up any logs that are storing these.

The following warning is thrown - Warning: Undefined array key "SERVER_NAME" in home/xxxx/html/wp-content/plugins/paid-memberships-pro/includes/email.php on line 31

We could look at getting the site's URL from the database instead if there is no SERVER_NAME parameter available.

andrewlimaza commented 3 months ago

PR - https://github.com/strangerstudios/paid-memberships-pro/pull/2996

andrewlimaza commented 1 month ago

This has been merged in.