Title: Error when posting
Last modified: April 14, 2019

---

# Error when posting

 *  [riderxyz](https://wordpress.org/support/users/riderxyz/)
 * (@riderxyz)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-when-posting-7/)
 * [Sun Apr 14 13:00:01.027546 2019] [proxy_fcgi:error] [pid 9343:tid 140617757517568][
   client 92.109.142.174:0] AH01071: Got error ‘PHP message: PHP Fatal error: Call
   to a member function getMediaId() on null in /home/XXXX/domains/XXXX/public_html/
   wp-content/plugins/auto-post-to-instagram/wp2instagram.php on line 1116\n’, referer:
   [https://XXXXX/wp-admin/post.php?post=14357&action=edit](https://XXXXX/wp-admin/post.php?post=14357&action=edit)
 * Also, when resizing images is enabled, there’s more:
 * [Sun Apr 14 12:57:00.213664 2019] [proxy_fcgi:error] [pid 9343:tid 140617757517568][
   client 92.109.142.174:0] AH01071: Got error ‘PHP message: PHP Warning: imagecreatetruecolor():
   Invalid image dimensions in /home/XXXXX/domains/XXXXX/public_html/wp-content/
   plugins/auto-post-to-instagram/wp2instagram.php on line 703\nPHP message: PHP
   Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given
   in /home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/
   wp2instagram.php on line 705\nPHP message: PHP Warning: imagefill() expects parameter
   1 to be resource, boolean given in /home/XXXXX/domains/XXXXX/public_html/wp-content/
   plugins/auto-post-to-instagram/wp2instagram.php on line 706\nPHP message: PHP
   Warning: imagecopyresized() expects parameter 1 to be resource, boolean given
   in /home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/
   wp2instagram.php on line 710\nPHP message: PHP Warning: imagejpeg() expects parameter
   1 to be resource, boolean given in /home/XXXXX/domains/XXXXX/public_html/wp-content/
   plugins/auto-post-to-instagram/wp2instagram.php on line 711\nPHP message: PHP
   Warning: getimagesize(/home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/
   auto-post-to-instagram/temp.jpg): failed to open stream: No such file or directory
   in /home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/
   wp2instagram.php on line 716\nPHP message: PHP Warning: Division by zero in /
   home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/
   wp2instagram.php on line 719\nPHP message: PHP Warning: imagecreatefromjpeg(/
   home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/
   temp.jpg): failed to open stream: No such file or directory in /home/XXXXX/domains/
   XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/wp2instagram.php 
   on line 726\nPHP message: PHP Warning: imagecreatetruecolor(): Invalid image 
   dimensions in /home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-post-
   to-instagram/wp2instagram.php on line 727\nPHP message: PHP Warning: imagecolorallocate()
   expects parameter 1 to be resource, boolean given in /home/XXXXX/domains/XXXXX/
   public_html/wp-content/plugins/auto-post-to-instagram/wp2instagram.php on line
   729\nPHP message: PHP Warning: imagefill() expects parameter 1 to be resource,
   boolean given in /home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-
   post-to-instagram/wp2instagram.php on line 730\nPHP message: PHP Warning: imagecopyresized()
   expects parameter 1 to be resource, boolean given in /home/XXXXX/domains/XXXXX/
   public_html/wp-content/plugins/auto-post-to-instagram/wp2instagram.php on line
   734\nPHP message: PHP Warning: imagejpeg() expects parameter 1 to be resource,
   boolean given in /home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-
   post-to-instagram/wp2instagram.php on line 735\nPHP message: PHP Warning: file_get_contents(/
   home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/
   temp.jpg): failed to open stream: No such file or directory in /home/XXXXX/domains/
   XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/mgp25/instagram-php/
   src/http/HttpInterface.php on line 80\nPHP message: PHP Warning: getimagesize(/
   home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/
   temp.jpg): failed to open stream: No such file or directory in /home/XXXXX/domains/
   XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/mgp25/instagram-php/
   src/Instagram.php on line 285\nPHP message: PHP Warning: unlink(/home/XXXXX/domains/
   XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/temp.jpg): No such
   file or directory in /home/XXXXX/domains/XXXXX/public_html/wp-content/plugins/
   auto-post-to-instagram/wp2instagram.php on line 1111\nPHP message: PHP Fatal 
   error: Call to a member function getMediaId() on null in /home/XXXXX/domains/
   XXXXX/public_html/wp-content/plugins/auto-post-to-instagram/wp2instagram.php 
   on line 1116\n’, referer: [https://www.XXXXX/wp-admin/post.php?post=14357&action=edit](https://www.XXXXX/wp-admin/post.php?post=14357&action=edit)

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

 *  Plugin Contributor [dufour_l](https://wordpress.org/support/users/dufour_l/)
 * (@dufour_l)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-when-posting-7/#post-11444188)
 * Hello riderxyz
 * Thanks for reporting those errors
 * They will be corrected with the next version of the plugins.
 * Regards
    -  This reply was modified 7 years, 1 month ago by [dufour_l](https://wordpress.org/support/users/dufour_l/).
 *  Thread Starter [riderxyz](https://wordpress.org/support/users/riderxyz/)
 * (@riderxyz)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-when-posting-7/#post-11463804)
 * Thanks dufour, error is gone
 * Now I have this:
 * RESPONSE: {“upload_id”: “1556127150661”, “xsharing_nonces”: {}, “status”: “ok”}
   Something went wrong while uploading your photo: Not logged in
 * Login is correct
 *  Plugin Contributor [dufour_l](https://wordpress.org/support/users/dufour_l/)
 * (@dufour_l)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-when-posting-7/#post-11467778)
 * Hello
 * The error that you have is related to Instagram security process, you faced an
   issue when login to instagram from two different IP adresses.
    Please try the
   tips from this website to solve it : [https://instazood.com/how-to-fix-checkpoint-required-error-on-instagram/](https://instazood.com/how-to-fix-checkpoint-required-error-on-instagram/)
 * Regards

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

The topic ‘Error when posting’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [dufour_l](https://wordpress.org/support/users/dufour_l/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/error-when-posting-7/#post-11467778)
 * Status: not resolved