Forums / Install & configuration / Fix for setup wizard 3.5.2 on Linux

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.

eZ debug

Timing: Jan 19 2025 00:27:57
Script start
Timing: Jan 19 2025 00:27:57
Module start 'content'
Timing: Jan 19 2025 00:27:57
Module end 'content'
Timing: Jan 19 2025 00:27:57
Script end

Main resources:

Total runtime0.8394 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0108 587.8359180.8203
Module start 'content' 0.01080.6963 768.6563602.7344
Module end 'content' 0.70700.1322 1,371.3906337.3750
Script end 0.8393  1,708.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00510.6058210.0002
Check MTime0.00170.2049210.0001
Mysql Total
Database connection0.00150.181310.0015
Mysqli_queries0.759490.47771990.0038
Looping result0.00180.21281970.0000
Template Total0.800195.320.4000
Template load0.00380.453120.0019
Template processing0.796394.866120.3981
Template load and register function0.00010.015410.0001
states
state_id_array0.00170.199710.0017
state_identifier_array0.00100.123120.0005
Override
Cache load0.00300.3601420.0001
Sytem overhead
Fetch class attribute can translate value0.00140.165040.0003
Fetch class attribute name0.00090.109560.0002
XML
Image XML parsing0.00140.163240.0003
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00630.7547350.0002
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs