Hello @sevenkader,
I have tested GiveWP along with our plugin on a local instance and everything seemed to work correctly.
Could you please describe the exact issues that arise when using our plugin along side GiveWP and how to reproduce them?
You mentioned not seeing any errors regarding our plugin in the logs. Could you please take a screenshot of the GiveWP errors that appear in your PHP error logs and send them to me? In case you do find any errors related to our plugin when checking again, please send screenshots of those as well.
You can use a site like https://snipboard.io/ to share the screenshots.
Thread Starter
Noon
(@sevenkader)
Here’s the entire error I get for GiveWP, I turned off all plugins except for GiveWP and Paid Members Subscription, this only happens when PMS is activated
Critical Uncaught TypeError: Give\MultiFormGoals\ProgressBar\Model::getDonationCount(): Return value must be of type int, null returned in /home/asdfasdfasd/public_html/wp-content/plugins/give/src/MultiFormGoals/ProgressBar/Model.php:161
Additional context
{
"error": {
"type": 1,
"file": "/home/asdfasdfasd/public_html/wp-content/plugins/give/src/MultiFormGoals/ProgressBar/Model.php",
"line": 161
},
"remote-logging": true,
"backtrace": [
"",
"#0 /home/asdfasdfasd/public_html/wp-content/plugins/give/src/DonationForms/AsyncData/AsyncDataHelpers.php(18): Give\MultiFormGoals\ProgressBar\Model->getDonationCount()",
"#1 /home/asdfasdfasd/public_html/wp-content/plugins/give/src/DonationForms/AsyncData/Actions/GetAsyncFormDataForListView.php(58): Give\DonationForms\AsyncData\AsyncDataHelpers::getFormDonationsCountValue(577704)",
"#2 [internal function]: Give\DonationForms\AsyncData\Actions\GetAsyncFormDataForListView->__invoke('')",
"#3 /home/asdfasdfasd/public_html/wp-content/plugins/give/src/Helpers/Hooks.php(43): call_user_func_array(Array, Array)",
"#4 /home/asdfasdfasd/public_html/wp-includes/class-wp-hook.php(324): Give\Helpers\Hooks::Give\Helpers\{closure}('')",
"#5 /home/asdfasdfasd/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)",
"#6 /home/asdfasdfasd/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)",
"#7 /home/asdfasdfasd/public_html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_givewp_...')",
"#8 {main}",
"thrown"
]
}
Hello @sevenkader,
We need to be able to reproduce this issue. So can you tell us the exact steps to do this and configuration that you have? Which action do you do exactly? Is this front-end or back-end?
Looking at that stack trace, there is nothing relevant to our plugin. I’ve checked their code as well and they do an internal query. I don’t know why it breaks at this point.
Let me know.
Best Regards.
Thread Starter
Noon
(@sevenkader)
Use the [give_form_grid] shortcode anywhere and check while the pms plugin in activated
Hello @sevenkader,
Thank you for the details, I managed to reproduce the issue. I’ve also noticed some additional notices being thrown in the logs because the Stripe Library version they use is very old.
Our plugin tries to make use of what’s already available instead of crashing. I will try to contact their support and suggest a library upgrade as it’s generally seamless and easy to do.
Both the issue you reported and the additional notices I mentioned will be fixed in the next update of the plugin for better compatibility.
Best Regards.
Thread Starter
Noon
(@sevenkader)
Is there any type of functions.php code that you can give for the moment that’ll allow for us to be able to use the plugin as this gets fixed? We’ve waiting for a long while and trying to use the plugin to help some people.
Any type of code that disables PMS on pages that the givewp plugin uses like /donations/ /give/ or pms on that specific shortcode, that you can test and give.
@sevenkader
I don’t really have a functions.php snippet that I could give you but please go to our website, open a pre-sale ticket, add a link to this conversation and I can share with you something else to get this working right now.
Thread Starter
Noon
(@sevenkader)
I’ve done that, let me know.
Version 2.15.5 that was just released contains fixes for GiveWP compatibility.
Please note that the saving and reusing of cards feature is not available when the plugin is used alongside Give because they use a very old version of the Stripe library.
Best Regards.