WordPress.org

Forums

Amazon Product in a Post Plugin
[resolved] [Plugin: Amazon Product In a Post Plugin] warnings when WP_DEBUG active (5 posts)

  1. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    When WP_DEBUG is active, the amazon product in a post plugin throws out some warnings in admin.

    Four saying that user levels being deprecated for plugins, and one that There is an undefined index in amazon-product-in-a-post-options.php on line 153

    http://wordpress.org/extend/plugins/amazon-product-in-a-post-plugin/

  2. prophecy2040
    Member
    Plugin Author

    Posted 3 years ago #

    what version are you using?

  3. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    This is with WP v3.3.1 & Product in a Post v2.0.2

    Testing with twenty-eleven theme & no other plugins installed

    In the admin, at the top I get the notice:

    Notice: Undefined index: action in /.../wp-content/plugins/amazon-product-in-a-post-plugin/inc/amazon-product-in-a-post-options.php on line 154

    & four instances of:

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /.../wp-includes/functions.php on line 3551

    Also many notices within the input fields in the Amazon PIP options page:

    Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /.../wp-includes/functions.php on line 3467
  4. prophecy2040
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the information.
    The deprecated items are already set to be updated in the next version. The Undefined index item I will look into and add it to the next version update fix list.

    In the next version, the plugin will set a custom capability so that admins can turn it on or off more easily for different user levels and override the plugin default settings. It will also be easier to turn the plugin on/off for custom post types and allow for Super Admin capabilities on WordPress multi-site installs.

    Warm regards,
    Don

  5. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    That sounds great Don - I'll look forward to seeing the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic