Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Parse error: syntax error, unexpected '=', expecting
palecbeckham
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 17.02.2012

Ostrzeżenie: (0%)
-----


witam
jestem zielony w tematyce php ;/
instaluje joomle, ale na witrynie zamiast instalki wywala mi taki error:

Proszę o pomoc (IMG:style_emoticons/default/smile.gif)

Parse error: syntax error, unexpected '=', expecting '(' in /home/team220v/public_html/includes/framework.php on line 42


<?php
/**
* @package Joomla.Site
* @subpackage Application
* @copyright Copyright © 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// No direct access.
defined('_JEXEC') or die;

//
// Joomla system checks.
//

@ini_set('magic_quotes_runtime', 0);
@ini_set('zend.ze1_compatibility_mode', '0');

//
// Installation check, and check on removal of the install directory.
//

if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) || file_exists(JPATH_INSTALLATION.'/index.php')) {

if (file_exists(JPATH_INSTALLATION.'/index.php')) {
header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'index.php')).'installation/index.php');
exit();
} else {
echo 'No configuration file found and no installation code available. Exiting...';
exit();
}
}

//
// Joomla system startup.
//

// System includes.
require_once JPATH_LIBRARIES.'/import.php';

// Force library to be in JError legacy mode
JError::$legacy = true;
JError::setErrorHandling(E_NOTICE, 'message');
JError::setErrorHandling(E_WARNING, 'message');
JError::setErrorHandling(E_ERROR, 'message', array('JError', 'customErrorPage'));

// Botstrap the CMS libraries.
require_once JPATH_LIBRARIES.'/cms.php';

// Pre-Load configuration.
ob_start();
require_once JPATH_CONFIGURATION.'/configuration.php';
ob_end_clean();

// System configuration.
$config = new JConfig();

// Set the error_reporting
switch ($config->error_reporting)
{
case 'default':
case '-1':
break;

case 'none':
case '0':
error_reporting(0);
break;

case 'simple':
error_reporting(E_ERROR | E_WARNING | E_PARSE);
ini_set('display_errors', 1);
break;

case 'maximum':
error_reporting(E_ALL);
ini_set('display_errors', 1);
break;

case 'development':
error_reporting(-1);
ini_set('display_errors', 1);
break;

default:
error_reporting($config->error_reporting);
ini_set('display_errors', 1);
break;
}

define('JDEBUG', $config->debug);

unset($config);

//
// Joomla framework loading.
//

// System profiler.
if (JDEBUG) {
jimport('joomla.error.profiler');
$_PROFILER = JProfiler::getInstance('Application');
}

//
// Joomla library imports.
//

jimport('joomla.application.menu');
jimport('joomla.environment.uri');
jimport('joomla.utilities.utility');
jimport('joomla.event.dispatcher');
jimport('joomla.utilities.arrayhelper');
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Necsord
post
Post #2





Grupa: Zarejestrowani
Postów: 189
Pomógł: 60
Dołączył: 5.10.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


1) Używaj bbcode.
2) Strzelam, że darmowy server i stara wersja php'a.
3) http://www.joomla.org/technical-requirements.html
4) http://www.google.pl/search?sourceid=chrom...527&bih=830

Ten post edytował Necsord 17.02.2012, 23:12:21
Go to the top of the page
+Quote Post
palecbeckham
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 17.02.2012

Ostrzeżenie: (0%)
-----


serwer faktycznie może nie jest wysokiej klasy,
Wersja PHP 5.2.17

czy da rade to jakoś obejść my Joomla 2.5 tam poszła?

Dzięki wielkie (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
Necsord
post
Post #4





Grupa: Zarejestrowani
Postów: 189
Pomógł: 60
Dołączył: 5.10.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


Cytat
Recommended: 5.3 +
Minimum: 5.2.4 +
Twoja: 5.2.17

Z tego co mi wiadomo to matematycznie 17 > 4, więc teoretycznie powinno zadziałać, a praktycznie sądze że musiałeś się pomylić czytając dokumentacje techniczną serwera. Może masz zakupioną inna konfiguracje niż patrzyłeś ? Sprawdź np. phpinfo().

Tak czy inaczej nie używałem duzo joomla'i, ale jestem przekonany, że obejście tego problemu byloby mozolne i bardzo nieopłacalne.

Ten post edytował Necsord 18.02.2012, 01:34:16
Go to the top of the page
+Quote Post
palecbeckham
post
Post #5





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 17.02.2012

Ostrzeżenie: (0%)
-----


udało się (IMG:style_emoticons/default/smile.gif)
serwer miał jakiś przełącznik czy baza ma działać na php 4 czy na php 5
zmieniłem na php 5 i poszło (IMG:style_emoticons/default/smile.gif)

dzięki za pomoc
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 7.10.2025 - 20:22