herb miller

WordPress plugin specialist

  • Home
  • About
    • Online CV
    • Contact
    • Find me
  • Shop
    • Seriously Bonkers – softback book
    • Seriously Bonkers – signed book
    • Seriously Bonkers – PDF
  • Dev env
    • Local development
    • WordPress plugins
    • Server environments
    • Development hardware
    • WAMP configuration
    • Tools and languages
    • What’s not in my development environment?
    • Anything else in your development toolkit?
  • Sites
programming

Languages

1. First (proper) language: Algol W 2. Had difficulties: Simula 3. Most used: Pascal 4. Totally hate: LISP 5. Loved: Pascal 6. For beginners: n/a

Categories: programming

Published: October 9, 2019 | Last updated: October 11, 2019

43 years in IT

ROSS User Group 1975-1976

43 years ago, at the tender age of 16 years and 11 months, I entered the IT industry. My salary was £1690 per annum; £65 a fortnight.

Categories: programming, Work

Published: June 30, 2018 | Last updated: July 1, 2018

How I’m testing the internationalization and localization of my WordPress plugins

A few months ago, having resolved to internationalize, localize and test my WordPress plugins, I started busily beavering away at a solution that will enable me to automatically deliver UK English versions of my plugins.

Now that Global WordPress Translation Day #3 is fast approaching it seems timely to write up an outline of my approach.
The solution involves a number of fairly well defined processes, and a lot of repetition.

Categories: plugins, programming, WordPressTags: i18n, internationalization, l10n, localization, PHPUnit, testing

Published: September 27, 2017 | Last updated: November 7, 2017

Migrating to PHP 7.1

Today I updated the version of PHP I use in my development environment, from PHP 7.0.7 to PHP 7.1.1.

Categories: PHP, programming, WordPressTags: $this, Illegal string offset, PHP 7.1

Published: February 8, 2017 | Last updated: March 13, 2017

Disable caching of style.css when developing a Genesis child theme

If you’re developing a Genesis child theme and making quite a few changes to your style.css file you may want a quick and easy method of ensuring the style file is reloaded every time it gets changed.
One way is to ensure that the ver parameter on the stylesheet definition changes each time you update the file.

Categories: Genesis, programming, WordPressTags: style.css

Published: November 19, 2016 | Last updated: November 19, 2016

Learning Pro React including node.js and other stuff

This post documents my experiences of getting started with React.js. Note: this is a work in progress.

Categories: programmingTags: react.js, webpack

Published: September 5, 2016 | Last updated: September 25, 2016

Installing node.js on Windows – pre-requisite to Pro React

This is a work in progress post, cloned rather prematurely from my development machine so I can refer to from my iPad when my development machine is not available.

Categories: programmingTags: node.js

Published: September 5, 2016 | Last updated: September 12, 2016

How to run PHPUnit tests for WordPress plugins in situ

For every new release of WordPress, plugin and theme developers are expected to test that their products are compatible with the new version, and to update their “Compatible up to” status. But if you have lots and lots of plugins, how do you test them all? WordPress uses a tool called PHPUnit. Plugins and themes can do the same. This post discusses the solution that I’ve been developing to PHPUnit test my WordPress plugins in situ.

Categories: programming, WordPressTags: oik-batch, PHPUnit, wordpress-develop-tests

Published: August 21, 2016 | Last updated: March 21, 2019

Site recovered – sorry for the inconvenience

Sometime on the 12th my site started to produce a series of PHP Fatal errors saying “Allowed memory size of 41943040 bytes exhausted.”. This was a bit of a surprise. It means that my memory limit was 40M, a lot lower than the expected value of 256M.

Other times the response was

[13-Jul-2016 02:54:59 UTC] PHP Fatal error:  Unknown: 
Cannot use output buffering in output buffering display handlers in Unknown on line 0

Problem recovery

To recover from this problem I used ftp to rename Jetpack to Jetpack-f.
I was then able to access the site.

Problem explanation

  • The site was migrated from one host to another.
  • The PHP version on the new host was 5.4.45.
  • The memory_limit was set to 25M.
  • For PHP 5.3, 5.5 and 5.6 the memory_limit would have been 256M; a much nicer number.
  • By the time WordPress started up the memory limit became 40M.
  • It’s WordPress that sets this limit, depending on the site. For WPMS it’s 64M.
    See wp_initial_constants().

I’ve yet to track down the specific plugin/module combination that causes WP to exceed the 4OM limit.

Other notes

  • My oik-bwtrace plugin reports the memory limit on its admin page.
  • This is 256M, since WordPress sets it higher in admin pages. Using admin_memory_limit in wp-admin/admin.php.
  • I’ve changed my [wp] shortcode to display the memory limit on the front-end.
  • For this site the memory_limit has already been set by the hosting company to a high value.

    WordPress 5.3. PHP: 7.3.7. Memory limit: 768M
  • I’m also experimenting with code that displays the current memory_limit in trace records produced by oik-bwtrace. They already optionally display current and peak memory usage, so adding the current memory limit is no big deal.

Categories: PDIW, plugins, WordPressTags: jetpack, memory exhausted, memory limit

Published: July 15, 2016 | Last updated: July 18, 2016

Google Maps once again requiring an API key

I’ve been porting a site from Drupal to WordPress recently but it wasn’t until I loaded it onto hosting with 1&1 that I noticed some problems with my [bw_show_googlemap] shortcode.
I’ve fixed the problem in oik v3.0.2. The new solution requires you to obtain a Google Maps API key, and enter it in oik options.

Categories: plugins, programming, WordPress, WorkTags: API key, bw_show_googlemap, Google maps, oik

Published: June 27, 2016 | Last updated: June 27, 2016

  • 1
  • 2
  • 3
  • …
  • 9
  • Next Page »

Products

  • Seriously Bonkers - signed book £8.99 £5.99
  • Seriously Bonkers - PDF £1.00
  • Seriously Bonkers - softback book £8.99 £4.99

Recent Posts

  • Languages
  • Ten years after IBM
  • Apostrophes
  • Top 10 WordPress Misconceptions
  • Inateck BK2003 – what do the keys do?

Recent Comments

  • Richard Cagle on Installing Imagick for PHP 7 on Windows 10
  • WordCamp Birmingham on bucket list – WordCamp Birmingham UK 2015 (#wcbrum)
  • mick on WordPress capabilities: How to restrict Add New while allowing Edit
  • mick on WooCommerce 2.2.4 – Dynamic API Reference
  • How to get distracted Part 4A - give me a break? NO DON'T! - herb miller on Live demonstration of the GoogleMap img { max-width: 100%} problem CLONE using bw_jq

Archives

Categories

WordPress 5.3. PHP: 7.3.7 [guts]

Tide times from tidetimes.co.uk

Tide Times & Heights for Northney on Thursday, 12 December 2019
Low Tide: 04:15 ( 1.00m )
High Tide: 11:25 ( 4.70m )
Low Tide: 16:38 ( 0.80m )
High Tide: 23:52 ( 4.60m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on 12th December 2019
04:15 - Low Tide ( 0.96m )
11:25 - High Tide ( 4.71m )
16:38 - Low Tide ( 0.77m )
23:52 - High Tide ( 4.58m )

Follow me

  • Home
  • About
  • Blog
  • Contact
  • Find me
  • Privacy notice
  • Sitemap

Site:  herbmiller.me
© Copyright herb miller 2012-2019. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress