MyBB Community Forums

Full Version: Automedia Plugin Breaks my Portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi my portal page at http://geekysweetie.com/forums/portal.php is broken and it says the error is from Automedia Plugin. How can I fix this?

The following warnings occurred:
Warning [2] file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 - Line: 36 - File: inc/plugins/automedia/mediasites/twitter.php PHP 5.4.19 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/plugins/automedia/mediasites/twitter.php 36 file_get_contents
/inc/plugins/automedia/automedia_functions.php 241 automedia_twitter
/inc/class_plugins.php 139 automedia_run
/inc/class_parser.php 187 pluginSystem->run_hooks
/portal.php 610 postParser->parse_message
Warning [2] file_get_contents(https://api.twitter.com/1/statuses/oembe...2232835072): failed to open stream: no suitable wrapper could be found - Line: 36 - File: inc/plugins/automedia/mediasites/twitter.php PHP 5.4.19 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/plugins/automedia/mediasites/twitter.php 36 file_get_contents
/inc/plugins/automedia/automedia_functions.php 241 automedia_twitter
/inc/class_plugins.php 139 automedia_run
/inc/class_parser.php 187 pluginSystem->run_hooks
/portal.php 610 postParser->parse_message
Warning [2] file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 - Line: 36 - File: inc/plugins/automedia/mediasites/twitter.php PHP 5.4.19 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/plugins/automedia/mediasites/twitter.php 36 file_get_contents
/inc/plugins/automedia/automedia_functions.php 241 automedia_twitter
/inc/class_plugins.php 139 automedia_run
/inc/class_parser.php 187 pluginSystem->run_hooks
/portal.php 610 postParser->parse_message
Warning [2] file_get_contents(https://api.twitter.com/1/statuses/oembe...6898472960): failed to open stream: no suitable wrapper could be found - Line: 36 - File: inc/plugins/automedia/mediasites/twitter.php PHP 5.4.19 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/plugins/automedia/mediasites/twitter.php 36 file_get_contents
/inc/plugins/automedia/automedia_functions.php 241 automedia_twitter
/inc/class_plugins.php 139 automedia_run
/inc/class_parser.php 187 pluginSystem->run_hooks
/portal.php 610 postParser->parse_message
Just wanted to update that this issue seems to have mysteriously went away - hopefully not to return lol.
file_get_contents should be used to get the contents of a local file; using it for URLs is a huge security risk. You should use curl instead.