• 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
2nd December 2022
06:28 High Tide ( 4.27m )
11:47 Low Tide ( 1.79m )
18:51 High Tide ( 4.04m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
2nd December 2022
06:41 High Tide ( 4.21m )
11:52 Low Tide ( 1.5m )
19:05 High Tide ( 3.94m )
WordPress version:6.1.1
Gutenberg version:14.6.0

Summary file