Posts Tagged bugs

More bugs fixed, more testing

Thanks to Sergey for sending me his database for me to test with.

Noticed a few issues:

  • The required database table wasn’t being created
  • Category subdomain options weren’t being saved
  • Permalink ‘/%postname/’ doesn’t work, it causes subdomain page to display all posts

I’ve fixed the first two issues.

The plugin directory now has to be in the wp-content/plugins directory, before a symlink from wordpress-subdomains would work, not now. Now when you update the plugin and deactivate/reactivate it any upgrades and table changes should be done properly.

The issue with the options not being saved was down to me doing something in a poor way that got broken when WordPress changed. I’m now doing it the correct way.

The final one is a mystery and it’s too late for me to investigate tonight. I seem to remember spending a lot of time last year trying to get all combinations of permalinks to work but it seems /%postname/ stopped working at some point. I will investigate further tomorrow.

I’ve commited all the fixes to the development trunk so if you wish to try it out download here. Remember to deactivate and reactivate the plugin after you upgrade. This may fix a number of issues straight away.

Almost there… Stay on target…

Didn’t get latest release out the door this weekend as planned, but I now have it to a point where I think it’s ready but just needs some testing. This version is the one that’s currently running this site under WP 3.0.

I can’t test for every type of wordpress setup, so I’m hoping that some of you might be able to give me a hand. If you wish to help test you can download the latest version here. If you wish to report a bug it’s better to contact me here, or just email me if you already have my address.

Overall there has been quite a lot of code change in this since the last release. Most of it was just rewriting code to behave better. One major change is you no longer have to configure the Pages with custom variables but with proper input elements which should make it a lot nicer.

One thing this version wont fix is multisite. Once this one is out the door I will start working on that.

Testing on WP 3.0 and other issues

I finally found some time to load up my development environment and try out WP 3.0

I found that the development version of the plugin seems to work with WP 3.0. As this site is using the same version I decided to upgrade to WP 3.0 and see what happened. Well it all still works which is a good sign, so this weekend I’m going to go over the last few bugs I have in that version and release it.

If you’re having issues with the plugin where it seems to work, but shows all the posts when on a category subdomain rather than just that category’s posts then please can you contact me. I’m not sure, but I think the issue may be theme related, so wouldn’t mind getting a copy of your theme to test with.

WP Subdomains not working with WordPress 2.8

Thanks to everyone who informed me about the plugin not working with WordPress 2.8.

Clearly this is quite serious. Luckily I’ve just finished my teaching job and I will look at this problem this weekend and try my best to have it fixed for Monday.

Also now I’ve finished working for the next 4 months updates to this plugin should continue again.

Thanks for hanging in there.

Bug fix release soon, I promise

Well 0.6.0 was just crap basically.

My big mistake came in the form of moving from a bunch of SQL to the get_posts function. The move itself was the right one to make, querying the database myself when there are functions to give me the data I want is stupid. However my mistake was not realising that this function by default just selects the first 5 posts or pages.

This has caused a whole load of headaches with everything from people with many subdomain pages to redirects only working for the first 5 posts of a category.

There were other bugs in this release too which are now fixed, the latest being this morning. Testing will start again and I hope to make this release in the next day or so. For those who are eager and adventurous then I can email you the test version.

I’ll be finished with my holiday in the next week and a half and able to give this plugin the attention it needs.

And now the 0.6.0 bugs :(

So far I just spotted one bug. If you’re using the Date Archive filtering and you are on a Subdmain Category it may get the wrong count for the month. This happens if a post is linked to more than one category in that subdomain’s heirarchy (i.e that category and any of it’s children).

Apart from that, Adam Dempsey (one of the previous authors of this plugin) confirmed something that I suspected. The feature I added to keep links to pages on the subdomain you’re viewing could be bad in terms of SEO. I’ve decided I will release an update in the next few days to make this a configurable option. However if you want rid of it now then:

  1. Open plugin/filters.php
  2. Go to the function named wps_page_link( $link, $id )
  3. Look for the line $link = $wps_this_subdomain->changePostLink( $link );
  4. Remove or comment it out
  5. Save the file

That’s all for now. Anyone else spots anything then let me know.

Another bug, *sigh* (NOT!)

I’m starting to think all of the Christmas drinking has broken me. Found a bug that is something I swear I checked before I released.

If your permalink is set to default (/?p=123) then the subdomains just show what’s on the front page. Set it to another and all should be fine. Now to fix the bugger.

UPDATE: Woohoo!! NOTABUG!!!

Basically when you have it set to default you’re not using permalinks or rewrite rules which means this plugin can’t really work the way it’s supposed to. I will look to see if there is another way of setting the category but I’m taking this off the bug list :)

New Year Bug Fix release soon

I fixed the page parent bug easily and put the fix on the last post. I was going to just do a new release yesterday, so those not brave enough to fix the bug themselves could just download a new version. However I got a little carried away with cleaning up crappy code, adding some comments and fixing a few other issues that I’m now having to test it fully again.

I’ve deicided to release this as a very quick 0.5.2 in the next few days. If you need the page parent bug fixed before that and don’t want to change the PHP yourself then send me a message and I’ll send you a replacement php file.