WordPress.org

Ready to get started?Download WordPress

Forums

Instapress
Lots's of warnings everywhere (6 posts)

  1. goto10
    Member
    Posted 1 year ago #

    The plugin's core functionality seems good, but there are tons of warnings coming up everywhere when PHP is set up to show errors and WP_DEBUG activated.

    This may not be a seem as a huge deal on a production site when errors are hidden and WP_DEBUG is not in use, but it's a pain when using this plugin in a dev environment.

    Please turn on WP_DEBUG, show errors in PHP, and clean things up. The issues are pretty trivial - mainly lack of checking if variables are set before using them (especially before options have been saved).

    http://codex.wordpress.org/WP_DEBUG
    http://php.net/manual/en/errorfunc.configuration.php
    http://wordpress.org/extend/plugins/debug-bar/

    http://wordpress.org/extend/plugins/instapress/

  2. goto10
    Member
    Posted 1 year ago #

    Also, I should get a warning for messing up the title of this post :D

  3. liechtenecker
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for your feedback. We will most likely fix the warnings in the next major upgrade.

  4. liechtenecker
    Member
    Plugin Author

    Posted 1 year ago #

    resolved

  5. goto10
    Member
    Posted 1 year ago #

    Thanks! You're a gentleman and a scholar.

  6. goto10
    Member
    Posted 1 year ago #

    For anyone that might want to resolve these in the meantime...

    One of the more annoying warnings can be fixed by changing line 849 of instagram.php from:

    add_options_page('Instapress '.__('Settings', 'instagram'), 'Instapress', 8, basename(__FILE__), array(&$this, 'handleOptions'));

    to

    add_options_page('Instapress '.__('Settings', 'instagram'), 'Instapress', 'manage_options', basename(__FILE__), array(&$this, 'handleOptions'));

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.