MyBB Community Forums

Full Version: Version Check doesn't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Tried that still no joy and I still can't import any themes whatsoever...hmm

Sad
Yeah, version check doesn't work for me either. Didn't work for me in the last version as well. When I try it, I get:

There was a problem communicating with the version server. Please try again in a few minutes.

Every single time.

decswxaqz Wrote:Find the line
$contents = @implode("", @file("http://mybboard.com/version_check.php"));
and replace it with
$contents = @implode("", file("http://mybboard.com/version_check.php"));

I have a feeling you might not be able to open remote files. Anything beginning with "http". Some hosts disable urlwrappers for PHP.

And I tried that, but I still doesn't work. Not a big deal to me though since I just check the website for new updates~
Can someone that has this bug ask their host to turn on url wrappers in php just to test if it works? I want to verify if this is just the host or mybb.
Try adding this code.
if(function_exists('ini_set'))
{
	ini_set('allow_url_fopen', '1');
}
Above:
$contents = @implode("", @file("http://mybboard.com/version_check.php"));
in admin/index.php
It's not a "bug" with php, it's a limitation by the host.

Not all hosts support allowing to "mess" with the ini settings though. (therefore function_exists)
Regarding the XML file issue, with importing templates. It may be that your host either disabled the XML libraries or they are not installed on the server. Go to the 'PHP Info' page in your admin cp and see if 'libxml' exists and if so see if its enabled.
Pages: 1 2