• Resolved kalligator

    (@kalligator)


    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://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    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

    (@miyarakira)

    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

    (@miyarakira)

    Did another round of code improvements (version 0.6.7) to eliminate PHP notices.

    Thread Starter kalligator

    (@kalligator)

    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

    (@miyarakira)

    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

    (@kalligator)

    Yeap now it’s fine!

    Plugin Author Eliot Akira

    (@miyarakira)

    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

    (@kalligator)

    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

    (@miyarakira)

    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.