ollyb
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Calendar grid displaying 1st day onlyWorking now.
Had the GeoMashup plugin installed, deactivating it fixed the issue. They released a new version and going from 1.5.2 to 1.5.3 fixed it.
Thanks for your time on this.
Forum: Plugins
In reply to: [The Events Calendar] Calendar grid displaying 1st day onlyHI
Thanks for the responses. I haven’t had chance to test these out on the live site. I will probably need to make a copy and create a dev site in order to test out the various plugins/themes.
Thanks for the suggestions, I hope to be able to try them in the next 48 hours.
Forum: Plugins
In reply to: [The Events Calendar] Calendar grid displaying 1st day onlyI set WP_DEBUG to true, but there was nothing different in the output.
I’m open to any other suggestions!
Forum: Plugins
In reply to: [The Events Calendar] Calendar grid displaying 1st day onlyHi Jonah
Thanks for the reply. I’ll have a go with WP_DEBUG and let you know how we get on. We’ve not tried disabling any other plugins as yet – unfortunately 9 plugins were accidentally updated at the same time, so I’m surprised more hasn’t broken!
Will be in touch when I’ve had a chance to look at the debugging.
Thanks
Olly
Forum: Plugins
In reply to: [The Events Calendar] Calendar grid displaying 1st day onlyHi
Thanks for getting back to me. The page is at https://yabangee.com/events/month/
We went from version 2.0.9 to 2.0.11.
Let me know if you need any further info!
Many thanks
Olly
Forum: Plugins
In reply to: [The Events Calendar] get categories for single eventThanks for the reply!
I actually worked round it.
I’ve ended up using SQL to get the info I need, and found the categories using the taxonomy and terms tables.
Keeping everything in one query makes it a bit easier actually!
Cheers
It just needs to go in place of the existing “set_transient” line. So take that line out, and put the 5 lines from the snippet above in its place.
Hope that helps!
If the updated code doesn’t work right away, you might not have to deactivate the plugin. The twitter number is cached by default for an hour. Even when it fails, it looks to me like it’s caching an empty string.
I updated my code, and it’s working fine. Occasionally though, when the server can’t get through to twitter for whatever reason, it caches the empty string for an hour. We don’t want that, nor do we want the server hammering twitter. So I set mine to cache for just 1 minute in the event that a non-numeric response is received from twitter (or, not at all):
if(is_numeric($followers)){ set_transient('social_subscribers_counter_twitter', $followers, 3600); }else{ set_transient('social_subscribers_counter_twitter', $followers, 60); }