Forums / Install & configuration / Fix for setup wizard 3.5.2 on Linux
Gene Snider
Tuesday 24 May 2005 5:30:26 pm
The setup wizard in 3.5.1 and 3.5.2 is broken from the start. After installing, setting up Apache and visiting the URL an error message regarding the missing function file_get_contents in
mumble/lib/eztemplate/classes/eztemplatefileresource.php
The quick fix for this is to edit the file, look for the line that says: $text = file_get_contents( $path );
and replace it with the following:
if ( function_exists( 'file_get_contents' ) ) { $text = file_get_contents( $path ); } else { $fp = fopen( $path, 'r' ); if ( !$fp ) { eZDebug::writeError( 'Could not read contents of ' . $path, 'eZFile::getContents()' ); $text = ''; }
$text = fread( $fp, filesize( $path ) ); }
Which I copied from another module.
A similar fix is required if you try to edit a template and possibly other places.
kracker
Tuesday 24 May 2005 6:46:55 pm
Gene,
Might I suggest you <i>report this as a bug</i>? <i>http://www.ez.no/community/bugs</i>
With this information duplicated inside a bug report the Exponential developers in the community can much more quickly identify, address and resolve this bug and any similar / dependent bugs?
Respectfully,//kracker
<i>FSF : Richard M Stallman : What Should it Mean to Promote Free Software?</i>
Member since: 2001.07.13 || http://ezpedia.se7enx.com/
Frederik Holljen
Tuesday 24 May 2005 11:00:12 pm
If the setup fails with this function missing, your PHP is too old: http://no2.php.net/file_get_contents from PHP version 4.3.0
Wednesday 25 May 2005 8:28:11 pm
I might have thought so here's the version info from PHP:
[gene@postoffice ~bootlegtools/Exponential]$ php -v PHP 4.3.10 (cgi) (built: Mar 18 2005 18:18:45) Copyright (c) 1997-2004 The PHP GroupZend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
More likely it's related to the fact that Linux has been effectively abandoned in favor of the more lucrative Windows market and the inevitable divergence of the two platforms.