Title: Breaking admin-ajax error
Last modified: December 1, 2017

---

# Breaking admin-ajax error

 *  [mountaininja](https://wordpress.org/support/users/mountaininja/)
 * (@mountaininja)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/breaking-admin-ajax-error/)
 * I’m running a version of WPVIP and noticed a breaking change coming from the 
   tokens code. This shuts down other ajax requests on the page.
 *     ```
       <br />
       <b>Warning</b>:  Invalid argument supplied for foreach() in <b>/srv/www/wp-content/themes/vip/plugins/apester-interactive-content-2.0/inc/qmerce-settings.class.php</b> on line <b>341</b>
       ```
   
 * You could fix by validating that `$input['auth_token']` exists before using it.`
   $tokens = ( isset( $input['auth_token'] ) ? $input['auth_token'] : [] );`
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbreaking-admin-ajax-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Breaking admin-ajax error’ is closed to new replies.

 * ![](https://ps.w.org/apester-interactive-content/assets/icon.svg?rev=1041872)
 * [Apester Interactive Content](https://wordpress.org/plugins/apester-interactive-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/apester-interactive-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/apester-interactive-content/)
 * [Active Topics](https://wordpress.org/support/plugin/apester-interactive-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/apester-interactive-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/apester-interactive-content/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mountaininja](https://wordpress.org/support/users/mountaininja/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/breaking-admin-ajax-error/)
 * Status: not a support question