Title: Functions problem with possible security risk
Last modified: August 24, 2016

---

# Functions problem with possible security risk

 *  Resolved [shahz](https://wordpress.org/support/users/shahz/)
 * (@shahz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/functions-problem-with-possible-security-risk/)
 * Dear developer,
 * I recently installed the Sharify plugin and intermittently, I’m getting the following
   errors (path edited to hide only personal data):
 * > Warning: file_get_contents() [function.file-get-contents]: http:// wrapper 
   > is disabled in the server configuration by allow_url_fopen=0 in /home/<accountname
   > >/public_html/wp-content/plugins/sharify/admin/sharify_count.php on line 24
   > Warning: file_get_contents([http://urls.api.twitter.com/1/urls/count.json?url=http://trainify.my/event/nodejs-ninja-rookie/](http://urls.api.twitter.com/1/urls/count.json?url=http://trainify.my/event/nodejs-ninja-rookie/))[
   > function.file-get-contents]: failed to open stream: no suitable wrapper could
   > be found in /home/<accountname>/public_html/wp-content/plugins/sharify/admin/
   > sharify_count.php on line 24
   > Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper
   > is disabled in the server configuration by allow_url_fopen=0 in /home/<accountname
   > >/public_html/wp-content/plugins/sharify/admin/sharify_count.php on line 16
   > Warning: simplexml_load_file([http://api.facebook.com/restserver.php?method=links.getStats&urls=http://trainify.my/event/nodejs-ninja-rookie/](http://api.facebook.com/restserver.php?method=links.getStats&urls=http://trainify.my/event/nodejs-ninja-rookie/))[
   > function.simplexml-load-file]: failed to open stream: no suitable wrapper could
   > be found in /home/<accountname>/public_html/wp-content/plugins/sharify/admin/
   > sharify_count.php on line 16
   > Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning :
   > failed to load external entity “[http://api.facebook.com/restserver.php?method=links.getStats&urls=http://trainify.my/event/nodejs-ninja-rookie/&#8221](http://api.facebook.com/restserver.php?method=links.getStats&urls=http://trainify.my/event/nodejs-ninja-rookie/&#8221);
   > in /home/<accountname>/public_html/wp-content/plugins/sharify/admin/sharify_count.
   > php on line 16
   > Warning: file_get_contents() [function.file-get-contents]: http:// wrapper 
   > is disabled in the server configuration by allow_url_fopen=0 in /home/<accountname
   > >/public_html/wp-content/plugins/sharify/admin/sharify_count.php on line 48
   > Warning: file_get_contents([http://www.linkedin.com/countserv/count/share?url=http://trainify.my/event/nodejs-ninja-rookie/&format=json](http://www.linkedin.com/countserv/count/share?url=http://trainify.my/event/nodejs-ninja-rookie/&format=json))[
   > function.file-get-contents]: failed to open stream: no suitable wrapper could
   > be found in /home/<accountname>/public_html/wp-content/plugins/sharify/admin/
   > sharify_count.php on line 48
 * What it needed was a requirement of the site to have the allow_url_fopen setting
   turned on.
 * This allows remote files to be opened through PHP and create a security risk 
   dependant on what remote file is being opened. A better way to implement this
   would be to use cURL – [http://stackoverflow.com/questions/127534/should-i-allow-allow-url-fopen-in-php](http://stackoverflow.com/questions/127534/should-i-allow-allow-url-fopen-in-php)
 * You may want to take note on that 🙂
 * [https://wordpress.org/plugins/sharify/](https://wordpress.org/plugins/sharify/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mehedi](https://wordpress.org/support/users/imehedidip/)
 * (@imehedidip)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/functions-problem-with-possible-security-risk/#post-6012512)
 * Hi,
 * The latest update fixes this issue. Thank you so much for the heads-up and sorry
   for the delay.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Functions problem with possible security risk’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sharify_358bce.svg)
 * [Sharify Social Share Buttons](https://wordpress.org/plugins/sharify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sharify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sharify/)
 * [Active Topics](https://wordpress.org/support/plugin/sharify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sharify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sharify/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Mehedi](https://wordpress.org/support/users/imehedidip/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/functions-problem-with-possible-security-risk/#post-6012512)
 * Status: resolved