• 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.8.1. PHP: 7.3.30. 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.

    [Read more…]


    , ,

    Published:

    Last updated:

    July 18, 2016
  • WordPress 301 – how to unredirect spammers?

    Loads of spurious requests to my content are using up valuable server time. So how am I supposed to deal with them?

    [Read more…]


    , ,

    Published:

    Last updated:

    January 9, 2016
  • H2GD Part 50: Cannot redeclare func previously declared in file:xx in file:yy

    I’ve had this problem for a while now. I’m happily working away on my Windows PC, editing posts, changing code and testing and then out of the blue comes a Fatal error: Cannot redeclare message. But when I press Enter or refresh it goes away.

    [Read more…]


    , ,

    Published:

    Last updated:

    December 14, 2015
  • How to fix WP_Widget deprecated notices for Artisteer themes

    I recently updated this site to WordPress 4.3 and immediately started receiving the following PHP Notice.

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct()

    [Read more…]


    ,

    Published:

    Last updated:

    May 15, 2016
  • H2GD Part 44: I’m going to use __DIR__ – duh?

    Q. Should I change my code back to using dirname( __FILE__ ) instead of __DIR__? A. No. I’m going to stick with __DIR__ until someone complains.

    [Read more…]


    , ,

    Published:

    Last updated:

    July 15, 2015
  • Problem Solving – verse 21 – Reproduce

    The next question will demonstrate 
    that you are really keen.
    Ask them to reproduce the bug
    on a-not-her machine
    

    [Read more…]



    Published:

    Last updated:

    November 28, 2014
  • Problems with PHP 5.5.18, CURL, Windows 8 and WordPress bleeding edge

    I recently upgraded my development environment to PHP 5.5.18 with Apache 2.4. Everything seemed to be working fine. But when I tried to upgrade my bleeding edge WordPress environment to WordPress 4.1-beta2 it failed with.

    Download failed.: There are no HTTP transports available which can complete the requested request. 
    
    I spent some time analysing the problem and found it to be that I hadn’t enabled CURL. But when I did enable CURL, it still didn’t work. Looking at the number of reports in Stack Overflow this seems to have been a fairly common problem, with a variety of workarounds, many of which don’t actually address the basic issue. Here’s my solution.

    [Read more…]


    , ,

    Published:

    Last updated:

    November 21, 2014
  • Problem Solving – Top 10 questions to ask when something doesn’t work

    For the latest version of Problem Solving, where the verses are now called Steps, are correctly numbered and link to further details in the form of a presentation see Problem Solving – The annotated poem – October 2019

    The top ten questions to ask when something doesn’t work.

    [Read more…]


    ,

    Published:

    Last updated:

    January 6, 2020
  • H2GD Part 38: WordPress 3.9(.1) and plugin_basename()

    It’s nearly a month since WordPress 3.9 was officially released. I finally upgraded my local version. Then things went wrong. Turns out I’d not tested my new oik-batch plugin on WordPress 3.9 after all.

    [Read more…]


    , , ,

    Published:

    Last updated:

    August 18, 2014
  • Problems with autosave Saving Draft…

    I recently upgraded to WordPress.org and now I’ve noticed that autosave initiated Saving Draft… never completes.

    [Read more…]


    , ,

    Published:

    Last updated:

    August 18, 2014

Categories

Tide times from tidetimes.co.uk

Tide Times & Heights for Northney on
Saturday, 18 September 2021

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
18th September 2021
03:20 Low Tide ( 1.03m )
11:04 High Tide ( 4.27m )
15:46 Low Tide ( 1.07m )
23:18 High Tide ( 4.26m )