• Just fyi, I’ve seen this php fatal Error and this warning in my server logs while bulk optimizing:

    
    19-Jun-2018 02:28:38 UTC] PHP Warning:  Illegal string offset 'ShortPixel' in /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php on line 515
    [19-Jun-2018 02:28:38 UTC] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php:515
    Stack trace:
    #0 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-includes/class-wp-hook.php(286): WPShortPixel->handleCustomBulk('')
    #1 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #2 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-admin/admin.php(332): do_action('load-upload.php')
    #4 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-admin/upload.php(10): require_once('/srv/data/web/v...')
    #5 {main}
      thrown in /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php on line 515
    [19-Jun-2018 02:28:48 UTC] PHP Warning:  Illegal string offset 'ShortPixel' in /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php on line 515
    [19-Jun-2018 02:28:48 UTC] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php:515
    Stack trace:
    #0 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-includes/class-wp-hook.php(286): WPShortPixel->handleCustomBulk('')
    #1 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #2 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-admin/admin.php(332): do_action('load-upload.php')
    #4 /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-admin/upload.php(10): require_once('/srv/data/web/v...')
    #5 {main}
      thrown in /srv/data/web/vhosts/www.ourwebsite.de/htdocs/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php on line 515
    
    

    Hope you can fix or better catch these errors against unexpected input?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ShortPixel

    (@shortpixel)

    Hello again,
    can you please provide us with more details about the hosting environment you’re using? PHP version would be a start but any other relevant details should help as well.

    Thanks,
    Alex

    Thread Starter gerd.neumann

    (@gerdneumann)

    As said gandi.net Simple Hosting. Here’s an excerpt of our Woocommcerce status page:

    
    WC Version: 3.4.2
    Log Directory Writable: ✔
    WP Version: 4.9.6
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: de_DE
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.1.13 
    PHP Post Max Size: 128 MB
    PHP Time Limit: 180
    PHP Max Input Vars: 2500
    cURL Version: 7.38.0
    OpenSSL/1.0.1t
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.20-18-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    Plugin Author ShortPixel

    (@shortpixel)

    Thanks for the info, we’re looking into this and we’ll get back to you in a couple of days.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Fatal error and PHP Warning’ is closed to new replies.