Fatal error: Call to undefined function stream_get_contents() in /users/moma/www/concrete/libraries/3rdparty/Zend/Cache/Backend/File.php on line 955

Permalink
I installed concrete the first time. After the test where ok I entered all MySQL data and got the error:

Fatal error: Call to undefined function stream_get_contents() in /users/moma/www/concrete/libraries/3rdparty/Zend/Cache/Backend/File.php on line 955

What can I do? The database is filled and a site.php was created. I can't see anything, except I delet this php. Then I can start the install again.

View Replies:
Mnkras replied on at Permalink Reply
Mnkras
can we please see a phpinfo();
moma replied on at Permalink Reply
http://phpinfo.bplaced.net/

I hope it helps.
Mnkras replied on at Permalink Reply
Mnkras
The page isn't loading for me
moma replied on at Permalink Reply 1 Attachment
Hope this pdf is working then for you.
jjdb210 replied on at Permalink Reply
jjdb210
Are you 100% certain that is the phpinfo file for your site? I ask only because the function that is being reported as undefined was added in PHP5, so there should no reason for it to be undefined unless something like the following is going on:

1) The function is disabled (which it doesn't appear to be)

2) Someone custom compiled php 5.3.2 without the function

3) You have the ability to pick between php 5 and php4 with your setup and for some reason, php4 is what's running in your current directory...
moma replied on at Permalink Reply
This is the phpinfo I found for my profile. I could check inside my admin console if you tell me, which line I should look for or where the problem's origin could be found.
Thank you.
moma replied on at Permalink Reply 1 Attachment
This is what I got:

Server Version: 5.1
and the attached file was created from my accounts myphpadmin.
jjdb210 replied on at Permalink Reply
jjdb210
Is it possible for you to create a file that looks like this on your server (perhaps as test.php, and then return the output to us:

echo "<pre>Begin Test\n";
if (function_exists('stream_get_contents')) {
    echo "SGC functions are available.<br />\n";
} else {
    echo "SGC functions are not available.<br />\n";
}
echo "Testing the command itself \n";
if ($stream = fopen('http://www.rinsefirst.com/test/', 'r')) {
    echo stream_get_contents($stream, -1, 10);
    fclose($stream);
}
echo "Begin PHP Info\n</pre>";
phpinfo();
moma replied on at Permalink Reply
It is...
But it seems I can't use this function. Is there a way for me to use Concrete5?

The file:
http://moma.bplaced.de/test/test.php...
jjdb210 replied on at Permalink Reply
jjdb210
Only thing I can think to try is perhaps use a pre-zend cache version of C5 (I believe it was added in 5.4... so try 5.3 perhaps) and see if that will work... It is *possible* to replace stream_get_contents with file_get_contents(), but not sure how much work it would take...

Otherwise, Another webhost (perhaps C5's webhosting), might be your best choice.
moma replied on at Permalink Reply
Thank you for your fast help. I think I will try an older version first, because the hosting is for testing first. The other option may work later.
nteaviation replied on at Permalink Reply
nteaviation
If you have a local php.ini file, you could try and add the line:

allow_url_fopen = On

Or try and put this in your .htaccess

php_value allow_url_fopen On