• When clicking on an image to download, it downloads and then fails to resize. Hover over the error is ‘undefined’. When enabling WordPress logging, the following errors occur:

    [29-Jun-2019 17:49:35 UTC] PHP Notice: Undefined property: stdClass::$path in D:\appdata\IIS\vhosts\jodibooks.com\blog.jodibooks.com\wp-content\plugins\instant-images\api\resize.php on line 52
    [29-Jun-2019 17:49:35 UTC] PHP Notice: Undefined property: stdClass::$filename in D:\appdata\IIS\vhosts\jodibooks.com\blog.jodibooks.com\wp-content\plugins\instant-images\api\resize.php on line 53

    We’ve gone through the default FAQ. Permissions are ok, allow_url_fopen is on, Max Upload Size is okay, CORS is not applicable and REST API is not blocked.

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

    (@dcooney)

    Hi @anaid Appears that some data is not being passed into the resize API method. Could possibly be a security setting blocking data.

    $path = sanitize_text_field($data->path); // Path on server
    $name = sanitize_text_field($data->filename); // name

    Are you running any security plugins?

    We’re running the following plugins:

    Akismet Anti-Spam
    amr shortcode any widget
    Autoptimize
    Bol.com partner plugin for WordPress
    Download Monitor
    Duplicate Post
    Email Obfuscate Shortcode
    Instant Images
    Mailchimp for WordPress
    Ocean Extra
    Organize Series
    Regenerate Thumbnails
    Relevanssi
    Responsive Tabs
    Simple Custom CSS and JS
    Smush
    WP Super Cache
    WP-Optimize
    WPDM – Gutenberg Blocks
    Yoast SEO

    Are any of these the cause of known issues?

    Plugin Author Darren Cooney

    (@dcooney)

    Sorry, I missed your response.

    I wouldn’t think any of those would cause issues…
    Unfortunately, I’m just not sure as each set up can be so different ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Resizing fails with PHP error “Undefined property: stdClass::$path”’ is closed to new replies.