Fix for setup wizard 3.5.2 on Linux

Author Message

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 (the)

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 eZ publish 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

Gene Snider

Wednesday 25 May 2005 8:28:11 pm

I might have thought so here's the version info from PHP:

[gene@postoffice ~bootlegtools/ezpublish]$ php -v
PHP 4.3.10 (cgi) (built: Mar 18 2005 18:18:45)
Copyright (c) 1997-2004 The PHP Group
Zend 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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.