Support

Home Forums Event Espresso Premium Error code when viewing event page before registration.

Error code when viewing event page before registration.

Posted: August 20, 2021 at 10:02 am

Viewing 3 reply threads


Alltech

August 20, 2021 at 10:02 am

On our event pages, right above where the details and ticket quantity is located, I’m displaying the following error code:

Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/toalltech.com/public_html/wp-includes/post-template.php on line 319

EE is updated and WP is updated to latest version.


Tony

  • Support Staff

August 23, 2021 at 8:04 am

Hi there,

Is this happening on every event?

Can you link me to the event so I can see if anything stands out there?

I can’t reproduce this on my test sites so I’m guessing something is hooking in and changing the global post to something unexpected.

Do you have a development copy of the site?


Alltech

August 23, 2021 at 11:12 am

Yes, it’s happening with every event.

Here’s the link to our course listings page:
https://www.toalltech.com/training-courses-list/

Here’s the link to an example of a course:
toalltech.com/events/mould-awareness-3/

Unfortunately I do not have a development copy of the site.


Tony

  • Support Staff

August 24, 2021 at 3:09 am

I can’t reproduce this on my tests sites and the error is from a WP core file so it’s likely either the theme (or another plugin) is doing something unexpected here.

First, create a database backup before moving forward (just to be safe).

As you don’t have a development copy, one way to confirm if this is the case is to use the WP Health Check & Troubleshooting plugin:

https://wordpress.org/plugins/health-check/

Install and activate it on the site, then go to Tools -> Health Check -> Troubleshooting. Enable Troubleshooting mode.

That will deactivate all plugins and switch you to a default theme, but only for you (the logged in admin).

In the admin bar go to troubleshooting mode and Manage Active Plugins.

Enable Event Espresso.

Now view the event page, does it show an error there? (It shouldn’t)

Then, try switching to your theme (In troubleshooting mode on the admin bar again Themes -> select your theme)

Test again, does it show the error?

If yes, then its something within your theme causing it.

If not, enable each of the plugins you use on your site (again from troubleshooting mode) and test between activating each one until it shows the error. Then let me know which plugin.

To deactivate Troubleshooting mode go to the Admin Bar -> TroubleShooting Mode -> Disable Troubleshooting Mode.

Viewing 3 reply threads

The support post ‘Error code when viewing event page before registration.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso