Skip Navigation

[Resolved] Error on pages with Views

This support ticket is created 2 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 15 replies, has 2 voices.

Last updated by karlP-2 2 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#2457203
error.jpg

I'm trying to figure out why The Events Calendar is rendering an error on pages where Views are displayed.

Link to a page where the issue can be seen: hidden link and hidden link

I expected to see: no error at the top

Instead, I got:

#2457511

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karl,

Thanks for getting in touch.

This is just a warning and not any critical issue. It could be a case where you have your wordpress debugging enabled. Can you checking in you wp-config.php in the root directory of your wordpress install.

Check to ensure that the line with wp_debug is set to false.

Thanks,
Shane

#2457531

Thanks. That doesn't appear to be the issue. There's no wp_debug in the wp-config file.

It's also happening on other sites as well (hidden link), I even added and set wp_debug to false to check 🙁

#2457555

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karl,

Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?

Please where applicable please provide me with a link to an example page where I can see the issue.

I've enabled the private fields for your next response.

I may need to grab a copy of your site to test here locally as well.
Thanks,
Shane

#2458357

Realizing now that the problem isn't limited to where Views are displayed. The error also displays on where custom post types are rendered. See the error on the bottom of hidden link

#2458523

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2022-09-15 at 10.30.24 AM.png

Hi Karl,

I took a copy of the website and deployed it locally here and I wasn't able to replicate the issue.

As you can see from my screenshot the grants page on my copy doesn't display the error.

Given that this issue also occurs on pages where views isn't active then I suspect some issue with the Events Calendar plugin itself.

My recommendation here is perhaps you can cycle through the available php versions on your server as it could be a compatibility issue with your php version or get in touch with the events calendar support team for them to provide you with additional information on this issue.

Thanks,
Shane

#2458541

Okay, thanks for looking. I'll check in with them to see.

Cheers

#2458669

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karl,

Thanks once you get an update from them you can let me know if they want anything from our side.

Thanks,
Shane

#2458693

Got it. I'm following their suggestions here - https://wordpress.org/support/topic/error-regarding-pre_get_posts/

My early suspicion is a conflict between The Events Calendar and Toolset, but I'll confirm in a bit.

#2458713

So, with most everything (plugins) turned off, the error disappears when I turn off the Blocksy Companion plugin (hidden link).

As such, the issue may be the combination of all three (Toolset Views, The Event Calendar and the Blocksy Companion plugin). I've reported this to the team at Blocksy as well.

#2459163

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karl,

Do you have any other php versions on your server as i'm running version 7.4.12 of php and the issue wasn't present there.

Hopefully The Events Calendar team can provide you with some updates on this given the error is referencing their plugin.

Thanks,
Shane

#2459209
Screenshot 2022-09-16 113207.jpg

Hi Shane,

Yes I have a few other versions available. This is running on 7.4.30, but it's been running fine on that version for a long while.

I've added a screenshot of the various versions available.

#2459357

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karl,

What you can do is to switch to PHP 8 to see if the issue remains as our Toolset plugins are compatible with PHP 8.

If there are any issues you can wait until you get a response from The Events Calendar team.

Thanks,
Shane

#2460913

Just following up - the team at The Events Calendar confirmed that it's on their end.

https://wordpress.org/support/topic/error-regarding-pre_get_posts/#post-16022118

Thanks again for looking into this.

Karl

#2460939

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karl,

Thanks for the update. Given they confirmed it on their end you can go ahead and mark this ticket as resolved.

Thanks,
Shane