EasyAffiliate & Autonami Integration issues
-
Hi! I am currently managing a website for a client, which uses EasyAffiliate and FunnelKit. I noticed a few periodic entries on the “error_log” file, but with no breaking issues. Because I have full access, I just did a small patch to the GamiPress plugin to stop the logs, but naturally with each new update to the plugin, I have to reapply the patch. I would like to report this on the appropriate place (if this is not where I should do this, please point me to the right direction).
The intention for this post is to maybe have an official fix for these, so I can stop doing the manual patch. 😁
The files in question are:
.\gamipress\integrations\easy-affiliate\includes\listeners.php
.\gamipress\integrations\autonami\includes\functions.phpFor EasyAffiliate, the three functions use a variable called $event_id that is not defined. So all actions fail.
The patch only returns early if $event_id is null (which is always true, so these actions never run).For Autonami, the function on line 80 (gamipress_autonami_get_contact_user_id) has a possible fail path. The call of get_user_by can possibly return a bool, which is the cause of some logs, on my case.
The patch just checks the variable $user if it is an instance of WP_User, else it returns the default value.That is all, thank you!
The topic ‘EasyAffiliate & Autonami Integration issues’ is closed to new replies.