Home › Toolset Professional Support › [Resolved] GiveWP and Toolset conflict
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Our next available supporter will start replying to tickets in about 2.38 hours from now. Thank you for your understanding.
This topic contains 21 replies, has 3 voices.
Last updated by Christopher Amirian 1 year, 3 months ago.
Assisted by: Christopher Amirian.
I am trying to:
Delete a failed or abandoned (or any) donation in GiveWP
Link to a page where the issue can be seen:
in WP Admin, Donations->Donations then choose a donation and try to delete.
I expected to see:
The donation deleted.
Instead, I got:
Your site is experiencing a technical issue.
If I disable Toolset. I can delete donations properly.
Toolset has not been used with any of GiveWP's post types or taxonomies. It is used for other things on the site.
This happens on multiple sites, not just this one.
GiveWP is available for free in the WordPress repository. This site uses some premium add-ons but I don't believe they matter for this error.
Hi there,
We have a report regarding the GiveWP and Toolset compatibility. Would you please check and see if it is the same scenario?
If no, I created a clean installation of WordPress, Toolset and GiveWP. I'd appreciate it if you replicate the issue there and give us the steps to check ourselves:
hidden link
Thank you.
On the surface that sounds like a different issue but the underlying cause could be the same.
I will try to setup the scenario on your sandbox server tomorrow.
I imported some donations and cannot reproduce the error. The PHP version may be an issue. Can you change the sandbox site to PHP 8.1?
Hi there,
Thank you. I moved the same website to a server that uses PHP 8:
hidden link
Would you please check and see if you can replicate the problem there?
Thanks.
Interesting. No error but if I look in Donations->Tools->System Info, it says it is still on PHP 7.4.33.
Looks like it isn't on PHP 8 yet.
Hi there,
Thank you. Yes for some reason we had to enable PHP 7 for that server too. I moved the website to another server which uses PHP 8.
Would you please check?
hidden link
Thanks.
Same problem on PHP 8. Donations->Donations then try to delete any donation. Critical error.
Hi there,
Thank you very much, I escalated this to second-tier support. I will get back to you as soon as I have an update.
Thanks.
Hi there,
I have an answer:
- Access your website files via FTP.
- Go to this file: wp-content/plugins/toolset-blocks/backend/Services/ViewParsingService.php
- Change the function scan_for_view_before_deletion on line 213.
- Change this:
if ( count( $data ) > 0 && $data[0]['general']['preview_id'] != $post_id ) {
- To this:
if ( is_array( $data ) && count( $data ) > 0 && $data[0]['general']['preview_id'] != $post_id ) {
See if it fixes the issue. This will be fixed in upcoming releases of Toolset Blocks plugin.
Thank you.
Hi there,
I have an answer:
- Access your website files via FTP.
- Go to this file: wp-content/plugins/toolset-blocks/backend/Services/ViewParsingService.php
- Change the function scan_for_view_before_deletion on line 213.
- Change this:
if ( count( $data ) > 0 && $data[0]['general']['preview_id'] != $post_id ) {
- To this:
if ( is_array( $data ) && count( $data ) > 0 && $data[0]['general']['preview_id'] != $post_id ) {
See if it fixes the issue. This will be fixed in upcoming releases of Toolset Blocks plugin.
Thank you.
Yes, that does fix the issue on the test site. I need this fix on several client sites so I'll wait for the official toolset blocks update for the live sites.
Hi there,
Thanks. As there is no set date at the moment for the future release we suggest that you follow the workaround for now to avoid interruption on your current workflow.
Thank you.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Scott
I wanted to share some feedback with you from the developers. They have marked the ticket as won't fix, as the issue arises in the GiveWP codebase, whereby they use a core WordPress filter to modify the behaviour of the core get_post_meta function such that it returns an empty string rather than false, as documented by WordPress itself.
Our developers decided not to modify our code to catch possible scenarios where other plugins break core WordPress behaviour.
We reported our findings to GiveWP authors who will look into it as part of their work on PHP 8 compatibility (with prior PHP versions it would have produced nothing more than a warning), but I don't know when that will translate into an update.
You can keep using the workaround shared above in the meantime, but bear in mind that if you update Blocks it will overwrite the changes.
Thanks Nigel. Hopefully GiveWP will fix this before Toolset Blocks needs an update. I have a good relationship with the team at GiveWP so I'll contact them and see if I can get some priority on this issue.
Scott