Hey y’all - I’ve been getting this error (but only on mobile) on my site that’s using the 1.1.2 version of Patreon WordPress:
Notice: Undefined index: data in /path/to/wp-content/plugins/patreon-connect/classes/patreon_wordpress.php on line 180
The line in question is in the checkv2APIAccess() function:
What I am guessing is happening is that I am checking to see if someone is logged in or not, and I may not be using the most current sanctioned method to do so (I’ve been using this plugin for some time across its various incarnations). I believe how I’m doing it (and I don’t have time to chase this down right now to verify) is this bit of code:
global $Patreon_Wordpress; $ptrn_pledge=$Patreon_Wordpress->getUserPatronage();
If it returns zero, I mark them as not a Patreon backer. Is this not the way to do it?