Title: [Plugin: Amazon Product In a Post Plugin] warnings when WP_DEBUG active
Last modified: August 20, 2016

---

# [Plugin: Amazon Product In a Post Plugin] warnings when WP_DEBUG active

 *  ResolvedModerator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-amazon-product-in-a-post-plugin-warnings-when-wp_debug-active/)
 * 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/](http://wordpress.org/extend/plugins/amazon-product-in-a-post-plugin/)

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

 *  [Don Fischer](https://wordpress.org/support/users/prophecy2040/)
 * (@prophecy2040)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-amazon-product-in-a-post-plugin-warnings-when-wp_debug-active/#post-2613058)
 * what version are you using?
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-amazon-product-in-a-post-plugin-warnings-when-wp_debug-active/#post-2613059)
 * 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
       ```
   
 *  [Don Fischer](https://wordpress.org/support/users/prophecy2040/)
 * (@prophecy2040)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-amazon-product-in-a-post-plugin-warnings-when-wp_debug-active/#post-2613062)
 * 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
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-amazon-product-in-a-post-plugin-warnings-when-wp_debug-active/#post-2613065)
 * That sounds great Don – I’ll look forward to seeing the next version.

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

The topic ‘[Plugin: Amazon Product In a Post Plugin] warnings when WP_DEBUG active’
is closed to new replies.

 * ![](https://ps.w.org/amazon-product-in-a-post-plugin/assets/icon.svg?rev=1565235)
 * [Amazon Product in a Post Plugin](https://wordpress.org/plugins/amazon-product-in-a-post-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-product-in-a-post-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [cubecolour](https://wordpress.org/support/users/numeeja/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-amazon-product-in-a-post-plugin-warnings-when-wp_debug-active/#post-2613065)
 * Status: resolved