Title: PHP Notice while loading pocket counts
Last modified: March 17, 2017

---

# PHP Notice while loading pocket counts

 *  [Drivingralle](https://wordpress.org/support/users/drivingralle/)
 * (@drivingralle)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-notice-while-loading-pocket-counts/)
 * Hey!
 * I get the following PHP warning about once a day:
    PHP Warning: DOMDocument::
   loadHTML(): Empty string supplied as input in /wp-content/plugins/shariff/services/
   shariff-pocket.php on line 42
 * The “Status” tab on the plugin settings page show all green. Therefore I guess
   that the GET requests on the server works in general.
 * I noticed that the hard-coded URL ([http://widgets.getpocket.com/v1/button?v=1&count=horizontal&url=](http://widgets.getpocket.com/v1/button?v=1&count=horizontal&url=))
   is redirected to https:// as you open it inside a browser.
    Wonder if that leads
   to an empty string as return value.
 * PHP: 7.0
    WP: 4.7.3 Shariff: 4.3.0
 * Need any more information to resolve this?
 * Greetings
    derRALF

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

 *  Plugin Author [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * (@starguide)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-notice-while-loading-pocket-counts/#post-8926237)
 * Hi derRALF,
 * Pocket seems to have disabled their counter for public access. Therefore you 
   should disable the pocket service on the statistic tab to avoid these warning
   messages and unnecessary requests. Currently I don’t see any other way of retrieving
   the pocket save count, so pocket share counts will probably be removed with the
   next release.
 * Cheers,
    JP
 * P.S.: PHP_Warning messages are only displayed, if the debug mode if enabled, 
   which should not be the case on productive systems. Just in case you discovered
   it on a live system, it would be wise to disable the debug mode as well.
 *  Thread Starter [Drivingralle](https://wordpress.org/support/users/drivingralle/)
 * (@drivingralle)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-notice-while-loading-pocket-counts/#post-8926310)
 * Hey!
 * Thanks for the super super quick reply.
 * I can see this Warning in my PHP Logs. No user’s harmed 😉
 * To bad that the API locks down.
    Looking forward to the next release.
 * Greetings
    derRALF

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

The topic ‘PHP Notice while loading pocket counts’ is closed to new replies.

 * ![](https://ps.w.org/shariff/assets/icon.svg?rev=2006307)
 * [Shariff Wrapper](https://wordpress.org/plugins/shariff/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shariff/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shariff/)
 * [Active Topics](https://wordpress.org/support/plugin/shariff/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shariff/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shariff/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Drivingralle](https://wordpress.org/support/users/drivingralle/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/php-notice-while-loading-pocket-counts/#post-8926310)
 * Status: not resolved