Title: PHP Errors in Ajax response
Last modified: April 25, 2023

---

# PHP Errors in Ajax response

 *  [Will](https://wordpress.org/support/users/willbeing/)
 * (@willbeing)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-errors-in-ajax-response-3/)
 * We’ve noticed the following PHP Errors in Ajax Response that appear to be coming
   from Favorites Plugin. Can you help us troubleshoot?
 * `{
   "key": "3861e2dc72852a253fc9e3f5d2312ea4","type": "warning","message": "Cannot
   use a scalar value as an array","file": "/bitnami/wordpress/wp-content/plugins/
   favorites/app/Entities/Favorite/FavoritesArrayFormatter.php","line": 73,"stack":["
   Favorites\E\F\FavoritesArrayFormatter->resetIndexes()","Favorites\E\F\FavoritesArrayFormatter-
   >format()","Favorites\E\U\UserRepository->formattedFavorites()","Favorites\Listeners\
   FavoritesArray->setFavorites()","Favorites\Listeners\FavoritesArray->__construct()","
   Favorites\Events\RegisterPublicEvents->favoritesArray()","do_action('wp_ajax_favorites_array')"],"
   component": "WordPress Core"}
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-errors-in-ajax-response-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘PHP Errors in Ajax response’ is closed to new replies.

 * ![](https://ps.w.org/favorites/assets/icon-128x128.png?rev=1677726)
 * [Favorites](https://wordpress.org/plugins/favorites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/favorites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/favorites/)
 * [Active Topics](https://wordpress.org/support/plugin/favorites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/favorites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/favorites/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Will](https://wordpress.org/support/users/willbeing/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/php-errors-in-ajax-response-3/)
 * Status: not resolved