agileware / wp-civicrm-ux

WordPress CiviCRM UX - User Experience enhancements
GNU General Public License v2.0
7 stars 12 forks source link

Notice when shortcode could not retrive data #10

Closed jbonlinea closed 3 years ago

jbonlinea commented 3 years ago

Hi there

again a very minor feedback but that might be good to know.

I use the plugin to display wp-users<=>civi-contact membership statut mostly, and it work's great ! thank's for that. Obviouly not all users are "members". When a user who is not a member browse a page where wp-civicrm-ux shortcode are present, php retunr a notice ; the folowing in my case, but it is related to the data I'm displaying.

Notice: Undefined variable: renewal_date_format in /home/html/wp-content/plugins/wp-civicrm-ux/includes/utils/class-civicrm-ux-membership-utils.php on line 293

Notice: Undefined variable: renewal_date_format in /home/html/wp-content/plugins/wp-civicrm-ux/includes/utils/class-civicrm-ux-membership-utils.php on line 293

edit : still using wp-civicrm-ux 1.1.2 as I can't activate the latest one

agileware-justin commented 3 years ago

Thanks for reporting, this has been fixed.

jbonlinea commented 3 years ago

:+1: :rocket: