Ross Wintle
Forum Replies Created
-
Forum: Plugins
In reply to: [Twitter Widget Pro] Twitter Widget Pro Still not UpdatingHi @roothost, I gather you got my version working now, is that right?
Of course.
I’ve done this in a bit of a hurry, so feedback welcome on my modification/contribution.
My change may not get added but I also submitted a Pull Request to Mark Jaquith for TLC Transients to add a “prevent-background-updates” option.
I can see why you might think it’s a bit daft using TLC transients and then having an option to turn off the background updates and lose all the efficiency, but it saves a plugin writer using TLC Transients writing two lots of transient-handling code.
I’ve uploaded a modified version of v2.3.8 to my website here if anyone wants to give it a try.
Hi Aaron,
OK, I think I’ve cooked up a version that will work for people experiencing this issue. It’s not as efficient at fetching Tweets as it does this “live” rather than as a background task, but it only refreshes Tweets every 5 minutes.
It can be invoked by changing your tlc_transient call in _getTweets to:
return tlc_transient( $key ) ->prevent_background() ->expires_in( 300 ) // cache for 5 minutes ->updates_with( array( $this, 'parseFeed' ), array( $widgetOptions ) ) ->get();So all that’s left to do is include an option in your default settings meta box and then make the correct tlc_transient call depending on that option.
Are you happy with me zipping up what I’ve done so far and releasing to people who have this issue?
Hi Aaron,
Thanks for the quick response.
On balance my host are actually VERY good. I’ve shopped around and tried different companies but they really are excellent. I will re-address this with them though as their policy does seem to break WordPress – and probably other CMS’ too.
I can see the benefits of TLC Transients, and I can see why you wouldn’t want to put a load of effort in to make things work for a small percentage of users.
I’m keen to help get this working though. I’ve invested quite a lot of time in styling TWP for various sites so for me the trade off might be helping re-work TWP vs re-working all my CSS for another plugin.
And there may be another, simpler, but less efficient way!
TLC Transients seems to have a ‘force_background_updates’ option. Perhaps it also needs a ‘suppress_background_updates’ option. If I can patch TLC Transients to add this then perhaps making an option in TWP is simpler?
Forum: Plugins
In reply to: [Twitter Widget Pro] [Plugin: Twitter Widget Pro] Tweets not updating – bugHi guys,
I’ve no idea if I’m allowed to cross-reference posts on these forums, but I’ve done some diagnosis of an issue which may be your problem and written it up. See this post.
In short it looks like TWP needs to make a “loopback” HTTP call, from the hosting server to itself, to update, and some hosts don’t allow this.
Worth checking out!
Hope that’s useful to some of you.
Forum: Plugins
In reply to: [Twitter Widget Pro] Twitter Widget Pro Still not Updating@everyone: I’ve just done some fruitful diagnosis on a non-updating TWP issue that I’ve written up. May be helpful to some of you.
A rollback to v2.2.4 (pre-TLC-Transients implementation) may help you.
@andydarley Your National Libraries Day site is on a Heart Internet server so you will definitely see the same problem as me. You’ll also find that WP Cron is not working (see my write up of that)!
@aaroncampbell: could we get some feedback on this? Is my analysis correct? Could TLC transients be removed or made an optional performance enhancement? I have no idea what kind of numbers of people will be having this issue.
Thanks
Forum: Networking WordPress
In reply to: Moving a single site to it's own WordPress installationI know this query is months old now but I’ve done this kind of migration several times now and just wrote up the process. I hope I’m allowed to post a link to my article here – I don’t see anything in the forum rules that prevents it, and it could be useful for people who stumble over this thread in future:
http://oikos.org.uk/2011/12/tech-notes-migrating-wordpress-multisite-sites-to-standalone-sites/
Hope that helps.
Forum: Everything else WordPress
In reply to: Core Dev Team Meetup Q&AWordPress is pretty good at what it does. I recommend it to people because of its great balance between ease of use and extensibility. I have seen other products suffer by trying to be all things to all men – this leads to bloat in the code and UI and could severely hamper ease of use.. Do the team envisage a point where the core functionality of WP is, essentially, complete, and development of major new features ceases (or at least reduces)?
Forum: Networking WordPress
In reply to: New sites giving 404's/empty indexes/archives after upgradeAha. Found it.
A dodgy, network-enabled plugin. (AStickyPostOrderER)
Still not clear why this worked for older sites created before the upgrade.
Oh well.
Thanks for your help – much appreciated.
Hi guys,
Can I just check…if I switch from AStickyPostOrderER to Q2W2 Post Order, will the new plugin inherit the settings from the old one?
Thanks
Forum: Networking WordPress
In reply to: New sites giving 404's/empty indexes/archives after upgradeHi,
Thanks for the response – sorry it’s taken a while to get back to you, I had to deal with some other things.1) I did a table check and nothing was wrong.
2) It’s not happening on all subsites, just on the ones that are created after the WP upgrade.I have found something different about the new sites: they don’t have entries in the
wp_blog_versionstable.Is that a known issue?
Forum: Plugins
In reply to: Users with new role created with add_role don't appear in author meta boxLooks like this was introduced in Trac ID 15871 and spotted in Trac ID 16841. Adding to those discussions.
Forum: Networking WordPress
In reply to: New sites giving 404's/empty indexes/archives after upgradeAh yes – the vital fact missing. They’re subfolders.
Can we get this tiny little bug fixed? I’ve just spent about 4-hours debugging it again, thinking it was an IE layout bug, but was actually a fresh install of the plugin exhibiting this exact fault.
I’d do it myself if I could!!
Thanks
A quick follow up.
So the problem is that to load my “posts” using AJAX I make a call to wp-admin/admin-ajax.php and pass my action and parameters. I then use an action hook to produce my dynamic lists:
add_action('wp_ajax_load_resources', 'im_load_resources' ); add_action('wp_ajax_nopriv_load_resources', 'im_load_resources' );I’ve been playing with this and looking at the plugin code. It looks like this is happening because the frontend.php isn’t being loaded. The problem is with the plugin loading. In gd-star-rating.php there is a test that forks one way for admin requests and another way for non-admin requests:
if (!defined("WP_ADMIN") || (defined("WP_ADMIN") && !WP_ADMIN))There must be other tests like this also as just changing this test was not sufficient to fix the problem. What I did was convince WordPress not to set WP_ADMIN for my specific call that I was making through admin-ajax.php. This helped, but I then also had to spit out a wp_head() with my AJAX response in order to allow the voting to work.
Obviously, I seem to be alone in making this request, but it would be really handy for me if I could use the plugin to at least render read-only ratings when making a call through /wp-admin/admin-ajax.php.
Thanks