Support » Plugin: Shariff Wrapper » PHP Notice while loading pocket counts

  • Drivingralle



    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 ( 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?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author JP


    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.


    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.




    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.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Notice while loading pocket counts’ is closed to new replies.