Title: Some errors with debug on
Last modified: August 21, 2016

---

# Some errors with debug on

 *  Resolved [kalligator](https://wordpress.org/support/users/kalligator/)
 * (@kalligator)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/)
 * Thanks for this plugin, an instant favorite as soon as I saw it!
 * Here are some errors I’m getting with debugging turned on:
 * On Content Overview page:
 *     ```
       Notice: Undefined index: includes\ccs-content-overview.php on line 78
       Notice: Trying to get property of non-object in includes\ccs-content-overview.php on line 79
       Notice: Undefined variable: alternate in includes\ccs-content-overview.php on line 89
       Notice: Undefined property: stdClass::$publish in includes\ccs-content-overview.php on line 164
       Notice: Undefined property: stdClass::$draft in includes\ccs-content-overview.php on line 164
       Notice: Undefined property: stdClass::$future in includes\ccs-content-overview.php on line 165
       Notice: Undefined property: stdClass::$pending in includes\ccs-content-overview.php on line 165
       ```
   
 * On Gallery Fields Options page:
    `Notice: Undefined variable: defaults in includes\
   ccs-gallery.php on line 524`
 * [https://wordpress.org/plugins/custom-content-shortcode/](https://wordpress.org/plugins/custom-content-shortcode/)

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

 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579227)
 * Ooh, I didn’t notice these! Thanks for telling me about it, I’ll get all of them
   fixed and update it as soon as I can.
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579290)
 * OK, please see the update to version 0.6.6 – I think all PHP notices are eliminated.
   Could you let me know if it’s all clean on your setup?
    — Actually I found more
   notices when the shortcodes are in use. Good to know, I’ll make another update.
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579321)
 * Did another round of code improvements (version 0.6.7) to eliminate PHP notices.
 *  Thread Starter [kalligator](https://wordpress.org/support/users/kalligator/)
 * (@kalligator)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579333)
 * That’s great, thanks. I’m still getting some leftover notices though with 0.6.7
   on /index.php?page=content_overview:
 *     ```
       Notice: Undefined property: stdClass::$publish in includes\ccs-content-overview.php on line 173
       Notice: Undefined property: stdClass::$draft in includes\ccs-content-overview.php on line 173
       Notice: Undefined property: stdClass::$future in includes\ccs-content-overview.php on line 174
       Notice: Undefined property: stdClass::$pending in includes\ccs-content-overview.php on line 174
       ```
   
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579357)
 * I didn’t see those on my setup, but I made the conditional statement more strict
   to prevent this notice. Please see 0.6.8.
 *  Thread Starter [kalligator](https://wordpress.org/support/users/kalligator/)
 * (@kalligator)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579360)
 * Yeap now it’s fine!
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579361)
 * Thanks for the help. It made me realize the importance of a dedicated debug environment
   to thoroughly test my code. I appreciate it, and hope you enjoy using the plugin.
 *  Thread Starter [kalligator](https://wordpress.org/support/users/kalligator/)
 * (@kalligator)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579362)
 * Sorry but I just found out a couple more of those 😀
    When doing a search:
 *     ```
       Notice: Undefined property: WP_Query::$post in includes\ccs-field-loader.php on line 267
       Notice: Trying to get property of non-object in includes\ccs-field-loader.php on line 267
       ```
   
 * /edit/ Same for `line 290` also.
 * /edit2/ When editing a post:
    `Notice: Undefined variable: defaults in includes\
   ccs-gallery.php on line 78`
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579440)
 * Sorry, it’s taking me a while to get this resolved. Hopefully I’ll have an update
   by the end of the weekend. Thanks for the follow-up, as I’d like to follow best
   practices and eliminate any notices.
 * Funny thing, with WP_DEBUG turned on, I see other plugins and even core itself
   throw notices sometimes. It’s a pretty strict standard.

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

The topic ‘Some errors with debug on’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/some-errors-with-debug-on/#post-4579440)
 * Status: resolved