Posted: January 29, 2016 at 7:51 am
|
Hi I’m finding that Events Espresso is causing my standard WordPress archive.php file to fail to display category items on an archive page. When I disable the Events Espresso plug in my archive page behaves as expected, when reenabled arcive page fails to show any posts in that category. Any suggestions? Thanks, Andrew Moreton |
Hi, is there anything appearing in the debug log if you temporarily turn on WordPress debugging with debug log or debug display on through your wp-config.php file? https://gist.github.com/848801a1173be464fbe7 — |
|
|
Thanks Lorenzo – I imagine it’s something I’ve done with my theme, or maybe overlapping post/event names maybe: Here’s the debug console error: Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.) in /Applications/MAMP/htdocs/amacl_new/wp-includes/functions.php on line 3792 Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/amacl_new/wp-includes/functions.php:3792) in /Applications/MAMP/htdocs/amacl_new/wp-content/plugins/event-espresso-core-reg/core/EE_Front_Controller.core.php on line 112 Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /Applications/MAMP/htdocs/amacl_new/wp-includes/functions.php:3792) in /Applications/MAMP/htdocs/amacl_new/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php on line 398 |
Hi Andrew, If you switch to a default theme such as twentyfourteen and retest the archive does it display correctly with EE activated? This is to confirm if this is an issue with the theme or another plugin. |
|
|
Hi Tony Thanks for getting back to me – unfortunatly I can know tell that the problem’s coming from my theme somewhere – so I’m off to try and work out where I’ve gone wrong here… thanks again, Andrew |
Hmm strange. Unless your doing something really odd on archives there should not be a problem. Please let us know what you find. |
|
|
Hi Tony, I think I’ve found the culprate – in my functions.php I’d added a code snippet from which I was using to filter out, you guessed it, expired events when I remove it my archives start to work again any idea? I’d still like to be able to filter out expired events, thanks, Andrew |
Hmm, strange. That code already checks if espresso_event posts are included in the query and does not add anything if they are not. I think this may be a symptom rather than the cause, again if you switch to a default theme and use that snippet it works on the archives correct? |
|
The support post ‘Event Espresso Breaking Category Archive Pages’ 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.