Conflict with another plugin
-
Dear Michael,
I have recently installed Kudos on our website and I have to say it’s by far the best plugin that uses Mollie as payment processor. So thank you very much for making it free.
We are still in the process of testing donations as our website is not yet fully operational. There are several things that I need your help with. Let me know if I should start individual discussions for each of them.
The main problem is a conflict with the Matomo Analytics plugin which causes an error for archiving reports in Matomo. I’ve checked all the other plugins and the Kudos plugin is the only one that is causing the issue. Below screenshot is the error message I get from Matomo diagnostics. Would you be able to assist with fixing this issue?
Thank you so much for your help with this, as I would really like to use your plugin.
Suzana
-
Hi Suzana,
Apologies for the delay in getting back to you.
I am glad you like Kudos and I hope I can resolve some, if not all of your questions.
The conflict with Matomo could be down to a number of possibilities, so I will need more information to help figure out where the conflict lies. It sounds like you have tested Matomo with all other plugins/themes disabled except for Kudos, is this correct?
The first thing to do (if not already done) is to check this page on Matomo: https://matomo.org/faq/wordpress/matomo-for-wordpress-is-not-showing-any-statistics-not-archiving-how-do-i-fix-it/
They seem to offer a number of options for obtaining more information about what has gone wrong and how to fix it.
If nothing there seems to work then a log of the error (obtained by following step 6 in the above link) may offer some insight into where the conflict lies.
Kind regards
Mike
Dear Mike,
Many thanks for your response. Yes, you are correct. I have tested Matomo with all plugins disabled except Kudos and this is where the issue occurs.
I have already checked the page you’ve suggested before even contacting you and I followed all the steps as suggested by Matomo.
As far as I can determine, the archiving works (both manually and as a cron job) and I do get statistics when the Kudos plugin is disabled. When I enable Kudos I still get statistics, but the archiving no longer works and I get an error that starts like this:
‘Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=day&date=2024-01-22&format=json&trigger=archivephp. Response was \’ <html lang=”en-US” prefix=”og: https://ogp.me/ns#…..
and ends with this:
’18 total errors during this script execution, please investigate and try and fix these errors.’ => ScheduledTasks.php:351; class-wp-hook.php:322; class-wp-hook.php:348; plugin.php:565; wp-cron.php:191;
I have also enabled the debug log as they suggest and the only thing I get is this:
[22-Jan-2024 10:42:14 UTC] Matomo: Scheduled tasks archive data
I am not very good at the backend side of website maintenance so not exactly sure how to read this. I thought of contacting you first before contacting Matomo and see whether the issue is on their side.
Grateful for any further assistance you may give.
Suzana
Hi Suzana
Would you be able to obtain the full debug log by following step 6 here. Once debug logging is enabled, perform the archiving action (with Kudos enabled) which should hopefully generate the relevant error messages. Then send the log file to [email protected] so that I can look for any clues as to what the conflict is.
Kind regards
Mike
Dear Mike,
I’ve sent the debug log as requested. I hope you’ll be able to figure something out to resolve this issue.
On a different note, there are few other things that I need your help with.
- Description on the Mollie payment page and bank statement – at the moment it says Kudos donation…. This can be very confusing for the donors especially because they don’t see the name of the organisation they donated to. I saw that there was already a thread on this. Would you be able to implement that filter so it can be changed? That would really be helpful.
- Donation receipt – it’s very confusing for donors to receive an email from Kudos donations. Furthermore, the way the email is presented it does not mention the organisation to which they donate unless they scroll all the way down to the bottom of the email. I saw that there was a thread about this but I am not sure whether a solution has been made available. Would it be possible to customize the email so that the sender in the subject line is the name of the organisation and not Kudos Donation? Also would it be possible to add the logo of the organisation and change the text to say “Thank you for donating to [name of organisation]. This email is a receipt for your records.” Maybe in the footer you can add something like “Powered by Kudos Donations” with a link to your website so we can give credit for your work ??
- How do the recurring donations get cancelled? I am not sure how it works because we are still in test mode. I made a test donation and received two emails, one after the other, but the subscription link didn’t work. (I am guessing that subscription means in this case recurring donations). I would appreciate if you can explain that so we can decide whether we include this option on the form.
- And finally a small request for the placeholder text for the name field. would it be possible to change the placeholder text from “Name” to “Full Name” or add another field for “Last Name”? We feel it’s important to have the full name of the donor for reporting purposes.
I am not sure how much of the above can be resolved, but I would appreciate any help you may provide.
Best,
SuzanaHi Suzana
I will take each point in turn to try and answer your questions. Keep in mind that most of these issues will be addressed in an upcoming release, however since this is a complete rewrite of the plugin it is taking a bit longer. In the meantime, the current version of the plugin will only receive occasional security updates etc:
- I agree that this can be confusing. There is currently a hook for changing this called
kudos_payment_description
. Here is an example of how to use this:
add_filter('kudos_payment_description', function($description, $frequency_text, $order_id) { return sprintf( 'My charity (%1$s) - %2$s', $frequency_text, $order_id ); }, 10, 3);
IMPORTANT: The payment description is used by Mollie and must be unique. Therefore you need to include the
order_id
in the description as I have in the example above. In the future I will make it so that the order_id is not optional and only the bit before it can be changed.2. I agree here too and luckily there is another filter for you to use to change the email from name called
kudos_email_from_name
. Apart from that the email content is not yet editable, however that is something on the roadmap for later. Here is an example for using the above filter:add_filter('kudos_email_from_name', function($text) { return 'New name!'; });
3. Subscriptions are controlled by Mollie. Kudos Donations is used to tell Mollie what kind of subscription to create. When setting up a subscription the initial payment is seen as the first subscription payment, all other payments will occur after that depending on the frequency. In test mode, regardless of the type of subscription, Mollie will only take one other payment a few minute later just to show it working. For security purposes the link to cancel a subscription by the customer only lasts for about 24 hours. Canceling subscriptions can always be done by you by visiting the Mollie dashboard or by canceling from the subscriptions table in Kudos Donations.
4. Happy to look into making this change!
Hope that answers your questions and apologies it took a while to get back to you.
Kind regards,
Mike
- This reply was modified 10 months ago by iseardmedia.
Dear Mike,
Thanks for your response and solutions offered. I will test everything and get back to you if I have any more questions.
Best,
Suzana
Dear Mike,
Greetings again. I have an issue with the cancellation of a subscription. We have gone live and I have made a recurring donation to test the link for cancellation. But I am afraid that the link doesn’t work. I know you said that the link is open for 24 hours and I tried to cancel the subscription within that period, but when I click on the link in the email receipt, I get a popup message saying that the link has expired. Not sure what the issue is. If the link doesn’t work, then we won’t be able to use the recurring donation as we would like our donors to have the possibility to cancel the subscriptions themselves.
Thanks for looking into this matter. I hope it will be fixed because this is a very important feature for us.
Suzana
Hi Suzana,
I am sorry to hear you are having issues with the subscriptions. Thanks for reporting your experience and the subscription bug.
As a result of your suggestion I am looking at adding a way to remove the time restriction on when someone can cancel a subscription. This has now been implemented in the upcoming major release (Kudos 4) however since that is still in heavy development I am thinking of implementing this into Kudos 3 so that it is available sooner (along with fixing the bug you are currently experiencing with it).
Look out for an update that fixes the issue (I am currently away and hope to be able to look at this next week sometime).
Kind regards,
Mike
Hi Suzana,
Just to let you know I have released a new version (3.2.0) which fixes the subscription cancellation process and removes the time restriction for users to cancel their subscription.
Kind regards,
Mike
Dear Mike,
Many thanks for releasing the update. I just checked and the subscription link works perfectly. That is a big relief ??
I have another question though, would it be possible for the popup to appear on the donation page rather than the front page? This way the donors will be taken to a familiar page where they’ve donated so it links nicely. The reason I am also asking is because we have a slider on our front page and once the slider finishes that popup is gone. It’s all very confusing ??
Would you be able to help me with a custom made filter so the popup can be redirected to the donate page?
Thanks so much for all your help on this!
Suzana
Hi Suzana,
Glad that works now!
When using the pop-up, the return URL should be the page that the user was on before being redirected to Mollie’s payment gateway. If the user is being redirected to your front page even though the payment is being made on a different page then there is a problem somewhere.
Could you confirm the return URL for me by going to the page with Kudos on it and using your browsers console (usually right-click on page and press “inspect”), then go to the console tab and type/paste this code into the tab (it may not let you paste for security reasons, but this code is safe to run).
document.querySelector('[id^="kudos-form"] [name="return_url"]').value
If you get a result that is not the current page then we will need to investigate further.
edit: Alternatively you can login to your Mollie dashboard and check what the
Redirect URL
is for one of your test payments (all the way at the bottom).Kind regards
Mike
- This reply was modified 8 months, 1 week ago by iseardmedia.
- This reply was modified 8 months, 1 week ago by iseardmedia.
Dear Mike,
This is the URL I get when I paste the code in the console:
https://www.paradisoperduto.org/donate/
This is the donation page where a donor would make the donation, however this is not the page where the cancellation pop-up appears. It appears on our home page https://www.paradisoperduto.org/.
Just to clarify, when the donor makes a donation, the “Thank you for your donation” popup does appear on the donate page and that’s good. But when I click on the link in the receipt email to cancel the subscription, it takes me to the front page and not the donate page. We would like that unsubscribe popup to appear also on the donate page.
Hope this clarifies,
Thanks for all your help
SuzanaHi Suzana,
Thanks for the information, that is very helpful. I think the best thing indeed would be to create a filter for this. I will look into it and hopefully release a new update in the next few days.
Kind regards,
Mike
Thanks Mike, looking forward to the update.
Best
Suzana
Hi Suzana,
A new update has added the requested feature. Here is an example of how to use the new filter:
add_action('kudos_cancel_subscription_url', function ($url) { return 'https://www.example.com/donate/'; });
Let me know how it goes and thanks again for the feedback!
Kind regards,
Mike
- The topic ‘Conflict with another plugin’ is closed to new replies.