Title: Resizing fails with PHP error &#8220;Undefined property: stdClass::$path&#8221;
Last modified: June 29, 2019

---

# Resizing fails with PHP error “Undefined property: stdClass::$path”

 *  [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/resizing-fails-with-php-error-undefined-property-stdclasspath/)
 * 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](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/resizing-fails-with-php-error-undefined-property-stdclasspath/#post-11686146)
 * Hi [@anaid](https://wordpress.org/support/users/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?
 *  Thread Starter [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/resizing-fails-with-php-error-undefined-property-stdclasspath/#post-11687512)
 * 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?
    -  This reply was modified 6 years, 10 months ago by [Diana van de Laarschot](https://wordpress.org/support/users/anaid/).
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/resizing-fails-with-php-error-undefined-property-stdclasspath/#post-11745377)
 * 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.

 * ![](https://ps.w.org/instant-images/assets/icon-256x256.png?rev=2504172)
 * [Instant Images - One-click Image Uploads from Unsplash, Openverse, Pixabay, Pexels, and Giphy](https://wordpress.org/plugins/instant-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instant-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instant-images/)
 * [Active Topics](https://wordpress.org/support/plugin/instant-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instant-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instant-images/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/resizing-fails-with-php-error-undefined-property-stdclasspath/#post-11745377)
 * Status: not resolved