Plugin Status: Busy with work :(

All quiet on the western front recently. I started a new freelance web development job in April and have been quite busy with that and my teaching job, so development on Wordpress Subdomains has ground to a halt.

I hope to get back on it sometime this week. I’ve decided that 0.6.2 will be mainly fixing bugs and other minor issues. New features will come in 0.7.0 which will probably be the next release after 0.6.2.

One thing has come to my attention is that the use of the wordpress get_posts function was a big mistake. Using less custom SQL and more wordpress API calls seemed like the right thing to do. Unfortunately they didn’t have a function that gave me exactly what I wanted and get_posts is basically overkill. My use of it has caused memory problems and increased SQL queries quite a bit. I suspect a lot of the extra sql calls are actually caused by other plugins that make use of the filters whenever posts are fetched. They think I’m using the get_posts to fetch posts to generate a page, not that I’m fetching posts to make use of their data. I’ve already run into this problem with one plugin which I pointed out to the developer and now has a fix in it’s development trunk. I can’t investigate every plugin, so I’m just going to have to go back to using custom SQL and drop my use of get_posts. If you’re experiencing problems due to this then search for WPS_CUSTOM_GET_POSTIDS in the readme file.

Another problem is that attachments to posts end up being linked back to the main domain even if clicked on in a subdomain. I’ve had a request that these be kept on the subdomain you’re on. I think I’ll make this an option as it may lead to duplicate content (which may cause SEO issues).

I’ll try and get these two pieces fixed in the next week and see if there are any other things that need fixing out there. Please let me know if you can think of anything.

Comments (7)

Paul KaiserMay 9th, 2009 at 5:35 am

What a fantastic plugin!
I have set up some subdomains, though, and pointed them to my main blog directory, and have one issue I don’t understand how to fix.

If you follow subone.gogorooter.com, the server will correctly send you to gogorooter.com/beta/ – which is the WordPress root and what the subdomain is told to go to.

However, the URL will lose the “subone.” part… and just become “gogorooter.com.”
At that point, the subdomains plugin won’t work any more, presumably because the subdomain text has been removed from the url??

I noticed in the examples on your website that the subdomain part DOES stay intact in the URL.

My server is on shared hosting and uses the “CPanel” interface – where I set up the subdomain redirection.

Anyway, if something pops out as a likely fix, please let me know. I understand you are busy and may not be able to reply… Just thought I’d give it a shot.

Take care,
Paul

Lodewijk BosMay 24th, 2009 at 8:26 pm

Alex,

You’re right about the get_posts. I made a new design of my site (www.icmcc.org) and tested it with the “debug Queries” plugin. And some pages show more than 20 calls from your plugin some taking a “very” long time.

BTW another issue. in 0.6.1 you solved the category filter in wp-admin/edit which now works fine. However, I can’t use the regular search box (right top corner) anymore.

Looking forward to your next release!

Lodewijk

Alex StansfieldMay 28th, 2009 at 11:54 am

Hi Lodewijk,

Should finally have time for this plugin again (my teaching job finishes next week) and the get_posts is first on my list to remove. That “debug Queries” plugin sounds very useful I’ll stick that on my development site.

Which search are you refering to, one on your main site or in the admin section?

Regards,

Alex

Lodewijk BosMay 28th, 2009 at 1:41 pm

Hi Alex,

that plugin is really a revelation!!

I mean the search in the admin, the edit post section.

Good luck with the plugin, it’s a really great tool. I recently added a 6th subdomain and it makes an enormous difference!!

Best regards,

Lodewijk

OliverJune 12th, 2009 at 2:49 am

Just wanted to say that this plugin is no longer working with WP 2.8.. :(

Great work on it though.

PaulJune 12th, 2009 at 4:35 am

Subdomains do not work with the latest Wordpress Upgrade – is there a quick fix for 2.8?

a1234myJune 12th, 2009 at 8:06 am

is 0.6.1 good for wp 2.8? I GET THIS
Warning: Invalid argument supplied for foreach() in /home/name/public_html/mydomain.com/blog/wp-includes/query.php on line 1401
when plugin activate. Or course by other ?
tq

Leave a comment

Your comment