Title: PHP-error when using mobile API
Last modified: August 1, 2018

---

# PHP-error when using mobile API

 *  [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * (@terosalminen)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/php-error-when-using-mobile-api/)
 * WordPress 4.9.7
    AccessPress Facebook Auto Post 2.0.0 Nginx 1.15.2 PHP 7.2.8-
   1
 * When trying to use mobile API since the old way stopped working i get this error:
 *     ```
       2018/08/01 20:18:14 [error] 21812#21812: *2 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to a member function getBody() on boolean in /var/www/blog/wp-content/plugins/accesspress-facebook-auto-post/inc/cores/auto-post.php:314
       Stack trace:
       #0 /var/www/blog/wp-content/plugins/accesspress-facebook-auto-post/accesspress-facebook-auto-post.php(503): include()
       #1 /var/www/blog/wp-includes/class-wp-hook.php(286): AFAP_Class->auto_post('publish', 'publish', Object(WP_Post))
       #2 /var/www/blog/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
       #3 /var/www/blog/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
       #4 /var/www/blog/wp-includes/post.php(4095): do_action('transition_post...', 'publish', 'publish', Object(WP_Post))
       #5 /var/www/blog/wp-includes/post.php(3555): wp_transition_post_status('publish', 'publish', Object(WP_Post))
       #6 /var/www/blog/wp-includes/post.php(3713): wp_insert_post(Array, false)
       #7 /var/www/blog/wp-admin/includes/post.php(377): wp_update_post(Array)
       #8 /var/www/blog/wp-admin/post.php(194): edit_post()" while reading response header from upstream, client: 123.123.123.123, server: www.domain.com, request: "POST /wp-admin/post.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "www.domain.com"
       ```
   
 * Any ideas?

The topic ‘PHP-error when using mobile API’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accesspress-facebook-auto-post_e8ebe9.
   svg)
 * [Social Auto Poster](https://wordpress.org/plugins/accesspress-facebook-auto-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accesspress-facebook-auto-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accesspress-facebook-auto-post/)
 * [Active Topics](https://wordpress.org/support/plugin/accesspress-facebook-auto-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accesspress-facebook-auto-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accesspress-facebook-auto-post/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/php-error-when-using-mobile-api/)
 * Status: not resolved