FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


fatal error in Joomla installation "index.php"





ciboss
Hello,
in the last step of the Joomla 1.0.13 installation I got following fatal error message=

require_once () function require
Failed opening required 'includes/joomla.php' (include_path= '../usr/share/php') in
/www/ .................../htdocs/index.php on line 33


Can anybody help me please?
Thanks
imagefree
check whether the includes/joomla.php file exists?
ciboss
file includes/joomla.xml.php exists

Code:

<!--p
/**
* @version $Id: joomla.xml.php 5083 2006-09-17 11:18:25Z predator $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// ensure this file is being included by a parent file
defined( '_VALID_MOS' ) or die( 'Restricted access' );
/**
* Parameters handler
* @package Joomla
*/
class mosParameters {
/** @var object */
var $_params    = null;
/** @var string The raw params string */
var $_raw       = null;
/** @var string Path to the xml setup file */
var $_path       = null;
/** @var string The type of setup file */
var $_type       = null;
/** @var object The xml params element */
var $_xmlElem    = null;
/**
* Constructor
* @param string The raw parms text
* @param string Path to the xml setup file
* @var string The type of setup file
*/
function mosParameters( $text, $path='', $type='component' ) {
$thi-->_params = $this-&gt;parse( $text ); $this-&gt;_raw = $text; $this-&gt;_path = $path; $this-&gt;_type = $type; } /** * Returns the params array * @return object */ function toObject() { return $this-&gt;_params; } /** * Returns a named array of the parameters * @return object */ function toArray() { return mosObjectToArray( $this-&gt;_params ); } /** * @param string The name of the param * @param string The value of the parameter * @return string The set value */ function set( $key, $value='' ) { $this-&gt;_params-&gt;$key = $value; return $value; } /** * Sets a default value if not alreay assigned * @param string The name of the param * @param string The value of the parameter * @return string The set value */ function def( $key, $value='' ) { return $this-&gt;set( $key, $this-&gt;get( $key, $value ) ); } /** * @param string The name of the param * @param mixed The default value if not found * @return string */ function get( $key, $default='' ) { if (isset( $this-&gt;_params-&gt;$key )) { return $this-&gt;_params-&gt;$key === '' ? $default : $this-&gt;_params-&gt;$key; } else { return $default; } } /** * Parse an .ini string, based on phpDocumentor phpDocumentor_parse_ini_file function * @param mixed The ini string or array of lines * @param boolean add an associative index for each section [in brackets] * @return object */ function parse( $txt, $process_sections = false, $asArray = false ) { if (is_string( $txt )) { $lines = explode( &quot;\n&quot;, $txt ); } else if (is_array( $txt )) { $lines = $txt; } else { $lines = array(); } $obj = $asArray ? array() : new stdClass(); $sec_name = ''; $unparsed = 0; if (!$lines) { return $obj; } foreach ($lines as $line) { // ignore comments if ($line &amp;&amp; $line[0] == ';') { continue; } $line = trim( $line ); if ($line == '') { continue; } if ($line &amp;&amp; $line[0] == '[' &amp;&amp; $line[strlen($line) - 1] == ']') { $sec_name = substr( $line, 1, strlen($line) - 2 ); if ($process_sections) { if ($asArray) { $obj[$sec_name] = array(); } else { $obj-&gt;$sec_name = new stdClass(); } } } else { if ($pos = strpos( $line, '=' )) { $property = trim( substr( $line, 0, $pos ) ); if (substr($property, 0, 1) == '&quot;' &amp;&amp; substr($property, -1) == '&quot;') { $property = stripcslashes(substr($property,1,count($property) - 2)); } $value = trim( substr( $line, $pos + 1 ) ); if ($value == 'false') { $value = false; } if ($value == 'true') { $value = true; } if (substr( $value, 0, 1 ) == '&quot;' &amp;&amp; substr( $value, -1 ) == '&quot;') { $value = stripcslashes( substr( $value, 1, count( $value ) - 2 ) ); } if ($process_sections) { $value = str_replace( '\n', &quot;\n&quot;, $value ); if ($sec_name != '') { if ($asArray) { $obj[$sec_name][$property] = $value; } else { $obj-&gt;$sec_name-&gt;$property = $value; } } else { if ($asArray) { $obj[$property] = $value; } else { $obj-&gt;$property = $value; } } } else { $value = str_replace( '\n', &quot;\n&quot;, $value ); if ($asArray) { $obj[$property] = $value; } else { $obj-&gt;$property = $value; } } } else { if ($line &amp;&amp; trim($line[0]) == ';') { continue; } if ($process_sections) { $property = '__invalid' . $unparsed++ . '__'; if ($process_sections) { if ($sec_name != '') { if ($asArray) { $obj[$sec_name][$property] = trim($line); } else { $obj-&gt;$sec_name-&gt;$property = trim($line); } } else { if ($asArray) { $obj[$property] = trim($line); } else { $obj-&gt;$property = trim($line); } } } else { if ($asArray) { $obj[$property] = trim($line); } else { $obj-&gt;$property = trim($line); } } } } } } return $obj; } /** * @param string The name of the control, or the default text area if a setup file is not found * @return string HTML */ function render( $name='params' ) { global $mosConfig_absolute_path; if ($this-&gt;_path) { if (!is_object( $this-&gt;_xmlElem )) { require_once( $mosConfig_absolute_path . '/includes/domit/xml_domit_lite_include.php' ); $xmlDoc = new DOMIT_Lite_Document(); $xmlDoc-&gt;resolveErrors( true ); if ($xmlDoc-&gt;loadXML( $this-&gt;_path, false, true )) { $root =&amp; $xmlDoc-&gt;documentElement; $tagName = $root-&gt;getTagName(); $isParamsFile = ($tagName == 'mosinstall' || $tagName == 'mosparams'); if ($isParamsFile &amp;&amp; $root-&gt;getAttribute( 'type' ) == $this-&gt;_type) { if ($params = &amp;$root-&gt;getElementsByPath( 'params', 1 )) { $this-&gt;_xmlElem =&amp; $params; } } } } } if (is_object( $this-&gt;_xmlElem )) { $html = array(); $html[] = '
<table width="100%" class="paramlist">
    <tbody>
        <tr>
            <td colspan="2">' . $description . '</td>
        </tr>
        <tr>
            <td valign="top" align="right" width="40%"><span class="editlinktip">' . $result[0] . '</span></td>
            <td>' . $result[1] . '</td>
        </tr>
    </tbody>
</table>
'; if (count( $element-&gt;childNodes ) &lt; 1) { $html[] = &quot;
<tr>
</tr>
<td colspan="\&quot;2\&quot;">&nbsp;</td>
<em>&quot; . _NO_PARAMS . &quot;</em>&quot;; } return implode( &quot;\n&quot;, $html ); } else { return &quot;<textarea class="\&quot;text_area\&quot;" name="\&quot;$name\&quot;">$this-&gt;_raw</textarea>&quot;; } } /** * @param object A param tag node * @param string The control name * @return array Any array of the label, the form element and the tooltip */ function renderParam( &amp;$param, $control_name='params' ) { $result = array(); $name = $param-&gt;getAttribute( 'name' ); $label = $param-&gt;getAttribute( 'label' ); $value = $this-&gt;get( $name, $param-&gt;getAttribute( 'default' ) ); $description = $param-&gt;getAttribute( 'description' ); $result[0] = $label ? $label : $name; if ($result[0] == '@spacer') { $result[0] = '&nbsp;'; } else { $result[0] = mosToolTip( addslashes( $description ), addslashes( $result[0] ), '', '', $result[0], '#', 0 ); } $type = $param-&gt;getAttribute( 'type' ); if (in_array( '_form_' . $type, $this-&gt;_methods )) { $result[1] = call_user_func( array( &amp;$this, '_form_' . $type ), $name, $value, $param, $control_name ); } else { $result[1] = _HANDLER . ' = ' . $type; } if ( $description ) { $result[2] = mosToolTip( $description, $result[0] ); $result[2] = ''; } else { $result[2] = ''; } return $result; } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_text( $name, $value, &amp;$node, $control_name ) { $size = $node-&gt;getAttribute( 'size' ); return '<input class="text_area" name="'. $control_name .'['. $name .']" value="'. htmlspecialchars($value) .'" />'; } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_list( $name, $value, &amp;$node, $control_name ) { $size = $node-&gt;getAttribute( 'size' ); $options = array(); foreach ($node-&gt;childNodes as $option) { $val = $option-&gt;getAttribute( 'value' ); $text = $option-&gt;gettext(); $options[] = mosHTML::makeOption( $val, $text ); } return mosHTML::selectList( $options, ''. $control_name .'['. $name .']', 'class=&quot;inputbox&quot;', 'value', 'text', $value ); } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_radio( $name, $value, &amp;$node, $control_name ) { $options = array(); foreach ($node-&gt;childNodes as $option) { $val = $option-&gt;getAttribute( 'value' ); $text = $option-&gt;gettext(); $options[] = mosHTML::makeOption( $val, $text ); } return mosHTML::radioList( $options, ''. $control_name .'['. $name .']', '', $value ); } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_mos_section( $name, $value, &amp;$node, $control_name ) { global $database; $query = &quot;SELECT id, title&quot; . &quot;\n FROM #__sections&quot; . &quot;\n WHERE published = 1&quot; . &quot;\n AND scope = 'content'&quot; . &quot;\n ORDER BY title&quot; ; $database-&gt;setQuery( $query ); $options = $database-&gt;loadObjectList(); array_unshift( $options, mosHTML::makeOption( '0', '- Select Section -', 'id', 'title' ) ); return mosHTML::selectList( $options, ''. $control_name .'['. $name .']', 'class=&quot;inputbox&quot;', 'id', 'title', $value ); } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_mos_category( $name, $value, &amp;$node, $control_name ) { global $database; $scope = $node-&gt;getAttribute( 'scope' ); if( !isset($scope) ) { $scope = 'content'; } if( $scope== 'content' ) { // This might get a conflict with the dynamic translation - TODO: search for better solution $query = &quot;SELECT c.id, CONCAT_WS( '/',s.title, c.title ) AS title&quot; . &quot;\n FROM #__categories AS c&quot; . &quot;\n LEFT JOIN #__sections AS s ON s.id=c.section&quot; . &quot;\n WHERE c.published = 1&quot; . &quot;\n AND s.scope = &quot; . $database-&gt;Quote( $scope ) . &quot;\n ORDER BY c.title&quot; ; } else { $query = &quot;SELECT c.id, c.title&quot; . &quot;\n FROM #__categories AS c&quot; . &quot;\n WHERE c.published = 1&quot; . &quot;\n AND c.section = &quot; . $database-&gt;Quote( $scope ) . &quot;\n ORDER BY c.title&quot; ; } $database-&gt;setQuery( $query ); $options = $database-&gt;loadObjectList(); array_unshift( $options, mosHTML::makeOption( '0', '- Select Category -', 'id', 'title' ) ); return mosHTML::selectList( $options, ''. $control_name .'['. $name .']', 'class=&quot;inputbox&quot;', 'id', 'title', $value ); } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_mos_menu( $name, $value, &amp;$node, $control_name ) { global $database; $menuTypes = mosAdminMenus::menutypes(); foreach($menuTypes as $menutype ) { $options[] = mosHTML::makeOption( $menutype, $menutype ); } array_unshift( $options, mosHTML::makeOption( '', '- Select Menu -' ) ); return mosHTML::selectList( $options, ''. $control_name .'['. $name .']', 'class=&quot;inputbox&quot;', 'value', 'text', $value ); } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_filelist( $name, $value, &amp;$node, $control_name ) { global $mosConfig_absolute_path; // path to images directory $path = $mosConfig_absolute_path . $node-&gt;getAttribute( 'directory' ); $filter = $node-&gt;getAttribute( 'filter' ); $files = mosReadDirectory( $path, $filter ); $options = array(); foreach ($files as $file) { $options[] = mosHTML::makeOption( $file, $file ); } if ( !$node-&gt;getAttribute( 'hide_none' ) ) { array_unshift( $options, mosHTML::makeOption( '-1', '- '. 'Do Not Use' .' -' ) ); } if ( !$node-&gt;getAttribute( 'hide_default' ) ) { array_unshift( $options, mosHTML::makeOption( '', '- '. 'Use Default' .' -' ) ); } return mosHTML::selectList( $options, ''. $control_name .'['. $name .']', 'class=&quot;inputbox&quot;', 'value', 'text', $value, &quot;param$name&quot; ); } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_imagelist( $name, $value, &amp;$node, $control_name ) { $node-&gt;setAttribute( 'filter', '\.png$|\.gif$|\.jpg$|\.bmp$|\.ico$' ); return $this-&gt;_form_filelist( $name, $value, $node, $control_name ); } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_textarea( $name, $value, &amp;$node, $control_name ) { $rows = $node-&gt;getAttribute( 'rows' ); $cols = $node-&gt;getAttribute( 'cols' ); // convert <br />
tags so they are not visible when editing $value = str_replace( '<br />
', &quot;\n&quot;, $value ); return '<textarea class="text_area" name="' .$control_name.'['. $name .']">'. htmlspecialchars($value) .'</textarea>'; } /** * @param string The name of the form element * @param string The value of the element * @param object The xml element for the parameter * @param string The control name * @return string The html for the element */ function _form_spacer( $name, $value, &amp;$node, $control_name ) { if ( $value ) { return $value; } else { return '<hr />
'; } } /** * special handling for textarea param */ function textareaHandling( &amp;$txt ) { $total = count( $txt ); for( $i=0; $i &lt; $total; $i++ ) { if ( strstr( $txt[$i], &quot;\n&quot; ) ) { $txt[$i] = str_replace( &quot;\n&quot;, '<br />
', $txt[$i] ); } } $txt = implode( &quot;\n&quot;, $txt ); return $txt; } } /** * @param string * @return string */ function mosParseParams( $txt ) { return mosParameters::parse( $txt ); } class mosEmpty { function def( $key, $value='' ) { return 1; } function get( $key, $default='' ) { return 1; } } ?&gt;
Fire Boar
Not good enough. You need joomla.php as well - it's a 164 KB file, FYI. Look in the .zip or .tar.gz archive that you got Joomla from, and see if your unpacker missed anything.

I would post the file here, but there are two problems with that. One, I use 1.0.12 not 1.0.13 so it could be a different file, and two, it's a big file, and I'd probably exceed the posting limit here.
ciboss
I transferred the joomla.php file via ftp into the "includes" directory and tried again, but I got the same error message.
Then I made a ftp of the complete directory includes/..
but I encountered following message from the hosting server
Command: STOR joomla.php
Response: 150 Accepted data connection
Response: 550-File too big. Max allowed size is 100 kb.
Response: 550 joomla.php won't be saved.

I suppose that this problem is to be reported to the hosting company?

cu
Diablosblizz
It should be reported. Why don't you use Frihost? It's an awesome host!
ciboss
thanks
I just started another website on Frihost too, and it seems not to give me that kind of problems.
Diablosblizz
Just to clarify, your host isn't allowing any files over 100 KB. (1 MB) That's a little small, who was your hosting company?
BrianElliott0218
in the last step of the Joomla 1.0.13 installation I got following fatal error message=

require_once () function require
Failed opening required 'includes/joomla.php' (include_path= '../usr/share/php') in
/www/ .................../htdocs/index.php on line 33

[/quote]

To fix that, try this:
Edit "configuration.php" and change to your absolute path at lines 6 & 10 to : "mosconfig_absolute_path"

That should fix it for you.

Also, Joomla 1.5 is out. I did the full install as a test, and it truly is an upgrade from the 1.0.xx version. I have several sites that I'll have to transition, but the templates are better, and more versatile, and the services are just much more polished. You do have a better time of it if you have a large monitor though or don't mind scrolling back and forth. I think whoever designed the backend on this one had a new widescreen monitor. Wink
manav
is the file u talkin bout at the correct location on ur servers....

thats definit6ely the problem dear...

also try to change mode(chmod) to 777 and then try....

best of luck
Related topics
Fatal error: Cannot instantiate non-existent class:
Uninstallation & Installation Services
Mambo Users
fatal error
Joomla! - Installation Tutorial
403 Error On My Smf Forums Index.php
[help]fatal error eso dice mi web
Index.php not found
Fatal Error: Can't Install Joomla!!
my website won't display... problem with index.php
Error with MySQL and PHP script in my CMS
PHP Fatal Error (Issue Resolved)
[TuT]JOOMLA Installation Guide(Easiest Way)
Getting Fatal Error in php mysqli
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.