GetSimple Support Forum

Full Version: Problems with 3.2.0 on bplaced.net
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have some free space on bplaced.net which I use for theme GS demo sites, so I have a site in the root then a few demo sites in sub folders. One of the sub folder sites was fresh install of 3.2.0 and today I noticed that when I click on the Plugins tab in admin I get the following errors over the page.
Code:
Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/GSkeleton/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=InnovationPlugin.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/GSkeleton/admin/inc/template_functions.php on line 1055

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/GSkeleton/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=anonymous_data.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/GSkeleton/admin/inc/template_functions.php on line 1055

It was probably always like that. There were no plugins installed so just the two (Innovation and Anon Data) that are always there. Site seems to function fine.

Proceeded to site in root to upgrade from 3.1.2 to 3.2.0. After upload I am unable to log on to admin. following errors over login page.
Code:
Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=simple_input_tabs.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /users/timbowgs/www/admin/inc/template_functions.php:1055) in /users/timbowgs/www/plugins/p01-contact/p01-contact.php on line 11

Tried password reset but the same result. saw ref to p01contact. Came here. I am not using a contact form so I will remove the plugin and see if I can log on.

Hmm, looked at the site with filezilla and first removed Simple Input Tabs, because it wasn't in use. suprisingly I can log on to admin now but still getting tons of error messages over the page in Plugins Tab:
Code:
Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=InnovationPlugin.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=anonymous_data.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=custom_title.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=external_comments.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=hitcount.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=p01-contact_gs.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/timbowgs/www/admin/inc/template_functions.php on line 1055

Warning: file_get_contents(http://get-simple.info/api/extend/?file=sa_toolbar.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/timbowgs/www/admin/inc/template_functions.php on line 1055
[/quote]
That is the same error for every remaining plugin
PHP Code:
Warningfile_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server by allow_url_fopen=0 

The Problem is, that the Server configuration disabled the allow_url_fopen by setting the value to 0 in the php.ini Configuration. This configuration disabled the php-function file_get_contents(). In GSSimple there are about 30 rows where the function is called Sad
Ill look at this in a bit this is the API call for version checking probably, fallback for curl.
It's no panic.

fyi cURL is not installed on bplaced, you get a warning on the health Check, but that was all in 3.1.
Well its just php warnings, so I see no problem here.
Turn off debugging or error reporting.

Maybe we can add a allow_url_fopen check to suppress some of those errors in the future.
(2013-03-19, 22:55:41)shawn_a Wrote: [ -> ]Well its just php warnings, so I see no problem here.

yeah the site seems fine but the admin looks a mess

(2013-03-19, 22:55:41)shawn_a Wrote: [ -> ]Turn off debugging or error reporting.

How do you do that?
turn off debugmode in gsconfig, and turn off php error reporting on your host.
error reporting should never be on a production site anyway.
As already documented in the wiki, most hosters like bplaced disable curl/url_fopen in their free plans. I think that calls to other servers should only be done on specific pages (like plugins, health - version check) and even then they should degrade nicely (without PHP warnings, but rather with a message "Version check not possible due to missing curl/url_fopen.")
Oh and these servers you will want to enable the noversioncheck to disable the header check since it will never work.