Title: PHP Fatal error &#8211; InstagramAPI\Instagram::_setUser
Last modified: February 22, 2019

---

# PHP Fatal error – InstagramAPI\Instagram::_setUser

 *  Resolved [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-instagramapiinstagram_setuser/)
 * Getting the following response from the AJAX request when trying to authenticate
   using the verification code:
 * `PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function 
   InstagramAPI\Instagram::_setUser(), 2 passed in [my webroot path]/wp-content/
   plugins/wp-instagram-post/vendor/mgp25/instagram-php/src/Instagram.php on line
   565 and exactly 3 expected in [my webroot path]/wp-content/plugins/wp-instagram-
   post/vendor/mgp25/instagram-php/src/Instagram.php:599`
 * Newest version of the plugin; WordPress 5.1; PHP 7.1.26

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

 *  Plugin Author [qsheeraz](https://wordpress.org/support/users/qsheeraz/)
 * (@qsheeraz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-instagramapiinstagram_setuser/#post-11237679)
 * Hi,
 * Thanks for pointing out the issue. Yes it was a minor bug. Just fixed.
    Please
   delete the plugin and reinstall fresh copy. Let us know if you still have issues.
 * Regards
 *  Thread Starter [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-instagramapiinstagram_setuser/#post-11238492)
 * The latest version in the Plugin Repository is still 1.5. Have you pushed the
   newest version (1.5.1)?
 *  Thread Starter [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-instagramapiinstagram_setuser/#post-11238531)
 * I deleted and reinstalled 1.5 and this issue is now resolved. You should update
   the version number so that everyone gets the new version.
 *  Plugin Author [qsheeraz](https://wordpress.org/support/users/qsheeraz/)
 * (@qsheeraz)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-instagramapiinstagram_setuser/#post-11239855)
 * Great!
 * Yes not launched new version. Some users have difficulty after update new version
   as it replaces their login session which resides in plugin folder.
 * We are working on a separate session location for that issue and then we will
   launch new version.
 * Regards

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

The topic ‘PHP Fatal error – InstagramAPI\Instagram::_setUser’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-instagram-post.svg)
 * [WP Social Post And Widget](https://wordpress.org/plugins/wp-instagram-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-instagram-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-instagram-post/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-instagram-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-instagram-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-instagram-post/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [qsheeraz](https://wordpress.org/support/users/qsheeraz/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-instagramapiinstagram_setuser/#post-11239855)
 * Status: resolved