• Problem Solving – verse 21 – Reproduce

    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
    

    Continuing from verse 20 – Simplify; sticking with TRAC #30052. It seemed I could not reproduce the problem on my newly upgraded Windows server, running PHP 5.5.18 and Apache 2.4.

    There didn’t seem to be anything special about the problem that would prevent me from reproducing it in my development environment. I set about debugging it using my trace routines.

    I finally discovered that WordPress knew all along what the problem was but it wasn’t going to let me know.

    Deep down in the bowels of the code there was a call to [api wp_get_image_editor]. When I installed PHP 5.5.18 I hadn’t enabled the php_gd2.dll extension.

    WordPress was issuing a WP_Error( ‘image_no_editor’, __(‘No editor could be selected.’) but that error wasn’t filtering up to the browser.

    Had it done so I would have quickly been able to fix the php.ini configuration problem

    ; Need GD with function gd_info() for Async media upload
    extension=c:/php/ext/php_gd2.dll
    

    And then I’d have been able to reproduce the problem I was seeing on the Linux servers.

    So that’s another bug to report I suppose.

    See also

    Note: In the screen capture we see the output produced by Xdebug, which clearly shows the call stack that leads to the Undefined index message. My php.ini file contains

    zend_extension = c:\php\ext\php_xdebug-2.2.6-5.5-vc11-x86_64.dll
    [xdebug]
    ; Enable this to automatically get the call stack when something goes wrong
    ; this will get logged in the PHP errors log 
    xdebug.default_enable = 1
    


    Published:

    Last updated:

    November 28, 2014

Categories

Tide times from tidetimes.org.uk

Tide Times & Heights for Langstone Harbour on
28th March 2023
04:31 High Tide ( 4.23m )
09:38 Low Tide ( 1.66m )
16:58 High Tide ( 4.06m )
21:59 Low Tide ( 1.94m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
28th March 2023
04:51 High Tide ( 4.02m )
09:45 Low Tide ( 1.26m )
17:24 High Tide ( 3.79m )
22:09 Low Tide ( 1.6m )
WordPress version:6.1.1
Gutenberg version:15.2.0

Summary file