Title: PHP Warning
Last modified: October 20, 2016

---

# PHP Warning

 *  [jarad.secco](https://wordpress.org/support/users/jaradsecco/)
 * (@jaradsecco)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-97/)
 * I am seeing the following warnings server-side. I believe these are resulting
   in some 5XX errors going out in Nginx. Based on the warning, I would guess that
   the plugin is not set to handle drafts with empty post content…?
 * 2016/10/20 16:27:17 [error] 1069#0: *240477 FastCGI sent in stderr: “PHP message:
   PHP Warning: DOMDocument::loadHTML(): Empty string supplied as input in /XXXXXX/
   wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-
   sdk-php/src/Facebook/InstantArticles/Transformer/Transformer.php on line 178”
   while reading response header from upstream, client: 172.31.46.188, server: localhost,
   request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/
   var/run/php5-fpm.sock:”, host: “XXXXXX”, referrer: “[http://XXXXXX/wp-admin/post-new.php&#8221](http://XXXXXX/wp-admin/post-new.php&#8221);

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

 *  [dandr69](https://wordpress.org/support/users/dandr69/)
 * (@dandr69)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-97/#post-8382550)
 * I have the same error.
    Any idea please?
 *  Thread Starter [jarad.secco](https://wordpress.org/support/users/jaradsecco/)
 * (@jaradsecco)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-97/#post-8382636)
 * I believe the above warnings are non-fatal (they won’t crash the page render),
   and as such can just be ignored. Hopefully in the future the author(s) of the
   plugin will put in an is_null() check before the loadHTML() call to stop the 
   warnings from being thrown.
 * In the case of the 5XX server-side errors we were seeing at the time, we came
   to the conclusion that they were coming from a memory limit. PHP was set to a
   128M limit, and in some cases certain pages were exceeding that limit (at which
   point they would die and throw a 500 error). The fix for that issue was to increase
   the value of memory_limit in the php.ini configuration file. If you are seeing
   500 errors client-side, I suggest you dig deeper into your error logs to see 
   if there are other errors (and not just warnings) buried in there.
    -  This reply was modified 9 years, 9 months ago by [jarad.secco](https://wordpress.org/support/users/jaradsecco/).
 *  [dandr69](https://wordpress.org/support/users/dandr69/)
 * (@dandr69)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-warning-97/#post-8382692)
 * I see also some mysql queries like this:
 * # Time: 161101 20:46:09
    # User@Host: dsso_dandrsss[dansgo_dsssr69] @ localhost[]#
   Query_time: 93.176316 Lock_time: 0.050331 Rows_sent: 2218 Rows_examined: 6785
   SET timestamp=1478025969; SELECT option_name, option_value FROM wp_options WHERE
   autoload = ‘yes’;
 * This repeats many times and crashes the server.
    Could it be a plugin? Which 
   one?
    -  This reply was modified 9 years, 9 months ago by [dandr69](https://wordpress.org/support/users/dandr69/).
    -  This reply was modified 9 years, 9 months ago by [dandr69](https://wordpress.org/support/users/dandr69/).
 *  [MartinCap](https://wordpress.org/support/users/martincap/)
 * (@martincap)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-warning-97/#post-9254883)
 * I am getting this same error original PHP error posted by [@jaradsecco](https://wordpress.org/support/users/jaradsecco/).

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

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fb-instant-articles_8fa0a4.svg)
 * [Instant Articles for WP](https://wordpress.org/plugins/fb-instant-articles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fb-instant-articles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fb-instant-articles/)
 * [Active Topics](https://wordpress.org/support/plugin/fb-instant-articles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fb-instant-articles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fb-instant-articles/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [MartinCap](https://wordpress.org/support/users/martincap/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/php-warning-97/#post-9254883)
 * Status: not resolved