Webmastersite.net

Search    Register    Log In   


By on May 30, 2015 at 5:53 AM

Came upon an annoying little bug that only affects WSNs which were originally installed more than a decade ago and upgraded to 9.1. The category parent field was originally a tinyint instead of an int field, and this caused it to be treated as a boolean by the fairly recently added field normalization code, resulting in categories becoming subcategories of category #1 when editing them. Fortunately I'm probably the only one who was affected, but I've added a field type fix to the upgrade script.

Added a processing time check to the unused files cleanup utility so that it splits itself into multiple pages when it's running slowly (as can happen on sites with very large numbers of file attachments).

Fixed a template visual mistake on the listing settings page. Also improved a couple more bootstrap template spots. Probably WSN 10 will default to bootstrap, but will of course continue supporting non-bootstrap themes as well.


By on May 28, 2015 at 10:56 AM

Today's first task was a long time coming. Using localStorage, I've finally got WSN 9.2 remembering the open or closed states of all the named boxes. When you click on a box title bar to minimize it, it now remembers that and stays minimized on future views. I'd previously considered doing this with cookies, but it risked running up against the maximum cookie length limit so I never implemented it.

The other major envevour of the day was to add automatic error reporting to the autosetup.php installer. Hopefully this allow me to find out why so many people abandon the installation process and determine what sort of less common server configurations I should aim to support.


By on May 27, 2015 at 6:01 AM

Fixed some issues with the helper queue system which were causing updates to not get applied when a robot was the one triggering the helper call for it. That's the main change in today's 9.1.29 release.

Just released 9.2.0 Beta 1. Most of the work in it is bootstrapification. I've made it so that when various images aren't present in the style images directory an appropriate bootstrap glyphicon is shown instead. This process entailed creating a new template function {FUNC_SHOWICON[iconname <,> label <,> cssclass]} which is now used to display a variety of icon-like images. I've also replaced the unicode ready to chat IM icon with an appropriate glyphicon when using the bootstrap theme.

Another little change is that {IMAGESURL} can now take a filename parameter, so you can
write {IMAGESURL[flag.png]} instead of {IMAGESURL}/flag.png.


By on May 26, 2015 at 5:32 AM (Edited May 26, 2015 at 5:55 AM)

Started work on the 9.2 series. Immediate plans include integrating the HTML 5 audio tag for WSN Gallery (will backport that to 9.1 too) and an HTML 5 video player. If the video player requires a custom component I may add a components subdirectory and move all of the external component scripts (including ckeditor and the bulk uploader) into that for easier tracking and less top level clutter.

In minor 9.1 work today: Added some caching in the selectlevels function for the level-based category selector which will improve the submit/edit page speeds for those with 50+ top level categories who have secondary categories switched on. Also added a cap of 500 options to the selector because a client had 1940 subcaegories in the same category (due to dumping all the bad city name data from an import into subcategories of an "uncategorized" category) which caused out of memory errors. Nobody's going to be able to scroll and choose amongst nearly 2000 options so it's better not to run out of memory trying to generate that selector.

In other recent work, I fixed the bulk uploader tool to respect the maximum image upload size limits and thus prevent memory exhaustion errors. Refactored a lot of uploader code and combined code for the two uploaders in the process.


By on May 23, 2015 at 12:08 AM

Noticed today just how huge the difference in memory use is between PHP versions. A WSN page that uses 5 megabytes of memory in PHP 5.6 can use 40 megabytes in PHP 5.3. If you're still on PHP 5.3, time to upgrade! Your overall server and database performance will improve a lot as there's more free memory.

I don't have any immediate plans to discontinue PHP 5.3 support, but the memory profile makes it more likely that I will. Memory is often capped at 32 M in php.ini so running PHP 5.3 can lead to a lot of out of memory errors. I'll look into ways I can reduce WSN's memory consumption, but don't want to spend too much time on something that only significantly affects legacy PHP versions.
<< January 2019 >>
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

Recent Comments