Home › Toolset Professional Support › [Resolved] Toolset Blocks v.1.6.3 causes error with The Events Calendar v.6.0.0
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.
This topic contains 14 replies, has 2 voices.
Last updated by Christopher Amirian 1 year, 10 months ago.
Assisted by: Christopher Amirian.
The Events Calendar v6.0.0 does not like Toolset Blocks v. 1.6.3
when both are active, the following errors are thrown
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Tribe__Events__Query' does not have a method 'pre_get_posts' in /home/qwoyhamy/public_html/fc4/staging/1331/wp-includes/class-wp-hook.php on line 307
The function pre_get_posts was removed from the Tribe__Events__Query class. Sounds like there is some old code that needs to be updated. Either a custom theme or custom plugin, or one of the TEC plugins needs to be updated.
This may be seen at hidden link
attached is the response from The Events Calendar folks ...
Hi there,
Thank you for the details. To be able to report this to the dev team we need to make sure that the same issue is happening on a clean installation without possible environmental factors.
I created a clean installation of WordPress and Toolset and you can login with the link below:
hidden link
Kindly follow the steps below:
- Install The event calendar plugin
- Add an event and replicate the issue.
We will follow up with the report to the dev team.
Thanks
Sorry for the lack of a reply. I have been out sick for the past week. I’ll get back to this tomorrow
Thx
Hi there,
Sure thanks. Jut please make sure that you click the link that I provided for the dashboard of the clean installation periodically because if there is no action within 7 days it will be automatically deleted.
Thanks.
ok ... I have added the event calendar and created an event at /events/
Hi there,
Thank you. I checked and I could not find any trace of the warning below:
Warning: call_user_func_array() expects parameter 1 to be a valid callback
Did you manage to replicate the issue on the clean installaiton?
Unfortunately no. All i can tell you is that KadenceWP, Memberpress, and the Events Calendar DEVs all traced the problem back to Toolset. My skill at this stuff is much more limited than actual professional DEVs so I am not sure how to successfully replicate the problem
Hi there,
As we established that in isolation there is no issue with the events calendar and toolset we can now check to see if there is a combination of factors causing the issue.
Is it ok if we copy your website to our server for further investigation?
Yes. Please do. Let me know if you have any issues accessing the site.
Thx
Gordon
Hi there,
I spent a lot of time and found out that there must be a block on your homepage that causes the issue as the other pages do not have such a problem and there is no way to replicate the same issue on a clean installation.
I'd appreciate it if you follow the steps below:
- Delete the Rows one by on on the homepage (or a copy of homepage to avoid losing content)
- Save and check the front end to see if the error is still there.
- That way you will find which block is causing the issue.
- Kindly get back to us with the name of the block.
Thank you.
ok. I have found the problem.
with issue:
hidden link
without issue:
hidden link
Offending blocks:
hidden link
Two views are involved. I have no idea why these cause this issue with the events calendar, but as you can see from the links above, they are the problem.
I will go ahead and remove them from the site's live home page ... and I will leave the staging server running so y'all can diagnose the problem further.
please let me know if there is anything you need from me
thx
Gordon
Thank you. I escalated the issue to the second tier and will get back to you as soon as I have an update.
Hi there,
Thank you for your patience. The second-tier support managed to replicate the issue. It is happening if there are two queries at the same time.
I will inform you if there is an update but there is no ETA at the moment.
Kindly follow the steps below to avoid showing the warning for now: (PHP warning is not a show stopper and your website will work normally)
Would you please access your website files and edit the "wp-config.php" file on the root folder of your WordPress installation and add the code below into the file:
define( 'WP_DEBUG', false ); define( 'WP_DEBUG_DISPLAY', false );
Please add the code above the line below:
/* That's all, stop editing! Happy blogging. */
That will make sure the warning will not show in the front end of the website.
Thanks.