Title: Need a Patch for Undefined variable: queue_failed in Cdn_Core.php
Last modified: June 19, 2018

---

# Need a Patch for Undefined variable: queue_failed in Cdn_Core.php

 *  Resolved [darkarkangel](https://wordpress.org/support/users/darkarkangel/)
 * (@darkarkangel)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/need-a-patch-to-undefined-variable-queue_failed-in-cdn_core-php/)
 * Hello,
 * I found a problem when upload an image to wordpress. I get this message “Notice:
   Undefined variable: queue_failed in /home/minuevad/domains/mnd.com.es/public_html/
   wp-content/plugins/w3-total-cache/Cdn_Core.php on line 269”
 * In the code the function purge I have this definition
    “function purge( $files,&
   $results )”
 * but in the function header information is
    “* Purges files from CDN * * [@param](https://wordpress.org/support/users/param/)
   array $files consisting of array(‘local_path’=>”, ‘remote_path’=>”) * [@param](https://wordpress.org/support/users/param/)
   boolean $queue_failed * [@param](https://wordpress.org/support/users/param/) 
   array $results * [@return](https://wordpress.org/support/users/return/) boolean”
 * I think someone forgot include or remove the variable queue_failed in the function
   code because in the line 269 is used.
 * Can someone help me patch this code please?
 * Thank you in advance!
    -  This topic was modified 7 years, 11 months ago by [darkarkangel](https://wordpress.org/support/users/darkarkangel/).

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

 *  Plugin Contributor [gidomanders](https://wordpress.org/support/users/gidomanders/)
 * (@gidomanders)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/need-a-patch-to-undefined-variable-queue_failed-in-cdn_core-php/#post-10414792)
 * We already fixed it for the upcoming release, but thank you for mentioning it!
 *  Thread Starter [darkarkangel](https://wordpress.org/support/users/darkarkangel/)
 * (@darkarkangel)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/need-a-patch-to-undefined-variable-queue_failed-in-cdn_core-php/#post-10414836)
 * Thank you so much
    -  This reply was modified 7 years, 11 months ago by [darkarkangel](https://wordpress.org/support/users/darkarkangel/).

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

The topic ‘Need a Patch for Undefined variable: queue_failed in Cdn_Core.php’ is
closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [undefined variable](https://wordpress.org/support/topic-tag/undefined-variable/)

 * 2 replies
 * 2 participants
 * Last reply from: [darkarkangel](https://wordpress.org/support/users/darkarkangel/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/need-a-patch-to-undefined-variable-queue_failed-in-cdn_core-php/#post-10414836)
 * Status: resolved