Support » Plugin: ShortPixel Image Optimizer » Activating the plugin is breaking the website

  • Hi team,

    If we activate the plugin the website breaks completely, and we can see the following error message:

    Uncaught Error: Cannot use object of type WP_Error as array in /dom32110/wp-content/plugins/shortpixel-image-optimiser/class/db/wp-shortpixel-media-library-adapter.php on line 318
    countAllProcessableFiles()
    wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php:3361
    getQuotaInformation()
    wp-content/plugins/shortpixel-image-optimiser/class/model/apikey_model.php:271
    remoteValidate()
    wp-content/plugins/shortpixel-image-optimiser/class/model/apikey_model.php:195
    validateKey()
    wp-content/plugins/shortpixel-image-optimiser/class/model/apikey_model.php:135
    checkKey()
    wp-content/plugins/shortpixel-image-optimiser/class/model/apikey_model.php:68
    loadKey()
    wp-content/plugins/shortpixel-image-optimiser/class/controller/apikey_controller.php:26
    load()
    wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php:169
    __construct()
    wp-content/plugins/shortpixel-image-optimiser/wp-shortpixel.php:97
    shortpixelInit()
    /wordpress-5.2.4/wp-includes/class-wp-hook.php:286
    apply_filters()
    /wordpress-5.2.4/wp-includes/class-wp-hook.php:310
    do_action()
    /wordpress-5.2.4/wp-includes/plugin.php:465
    do_action()
    /wordpress-5.2.4/wp-settings.php:525
    require_once()
    wp-config.php:69
    require_once()
    wp-load.php:37
    require_once()
    /wordpress-5.2.4/wp-admin/admin.php:34
    require_once()
    /wordpress-5.2.4/wp-admin/plugins.php:10
    The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

    We’re trying to activate the version 4.14.6. And we do have the ‘SHORTPIXEL_API_KEY’ and SHORTPIXEL_HIDE_API_KEY’ set on wp-config.php
    If we remove this from wp-config the plugin works again. This setting is not allowed anymore?

    Yours,
    Victor

    The page I need help with: [log in to see the link]

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

    (@shortpixel)

    Hey Victor,

    could you please copy&paste here the exact piece of code containing ‘SHORTPIXEL_API_KEY’ and SHORTPIXEL_HIDE_API_KEY’ that, when added to wp-config.php, breaks your website?

    Thank you,
    Alex

    Hi team,

    We noticed that after removing this we can activate the plugin, but the same error happens again as soon as we put the API Key!

    So I believe the error is not related to the wp-config.php fields, but with the API Key activation itself.

    Yours,
    Victor

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hey Victor,

    Would it be possible to have a temporary admin access to your site so we can take a look and see what is going on?
    You can send us the credentials via our contact form here, and please make sure you mention this ticket.

    Thank you,

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi Victor!

    Could you try this DEV version of our plugin and let us know if it works correctly?
    https://shortpixel.com/downloads/shortpixel-image-optimiser-4.14.7-DEV05.zip

    Thanks,

    webdev012014

    (@webdev012014)

    We got the same issues has this been resolve?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.