Nie mogę otworzyć strony internetowej - dziwne błędy

szadek21

Avatar: szadek21

2014-12-29 21:02

Witam.

Mam dość spory problem. Chciałem przenieść ładnie działającą stronę www na inny serwer. Najpierw chciałem ja jednak zmodyfikować na WAMP serwerze. I gdy ją tam odpalam pojawia mi się takie coś:

100, 1 => 150, 2 => 250, 3 => 200 , 4 => 500 ); $config['max_dimension_of_image'] = 1000; $config['display_all_files'] = false; $config['display_expanded_menu'] = false; $config['change_files_names'] = false; define( 'DIR_CORE', $config['dir_core'] ); define( 'DIR_DB', $config['dir_db'] ); define( 'DIR_FILES', $config['dir_files'] ); define( 'DIR_LIBRARIES', $config['dir_libraries'] ); define( 'DIR_PLUGINS', $config['dir_plugins'] ); define( 'DIR_LANG', $config['dir_lang'] ); define( 'DIR_TEMPLATES', $config['dir_templates'] ); define( 'DIR_THEMES', $config['dir_themes'] ); define( 'DB_PAGES', $config_db['pages'] ); define( 'DB_PAGES_EXT', $config_db['pages_ext'] ); define( 'DB_PAGES_FILES', $config_db['pages_files'] ); define( 'DB_CONFIG', $config['config'] ); define( 'DB_CONFIG_LANG', $config['config_lang'] ); define( 'MAX_DIMENSION_OF_IMAGE', $config['max_dimension_of_image'] ); define( 'HIDDEN_SHOWS', $config['hidden_shows'] ); define( 'DISPLAY_EXPANDED_MENU', $config['display_expanded_menu'] ); define( 'WYSIWYG', $config['wysiwyg'] ); define( 'COPY_THE_SAME_FILES', $config['copy_the_same_files'] ); define( 'VERSION', $config['version'] ); define( 'TIME_DIFF', $config['time_diff'] ); define( 'SESSION_KEY_NAME', dirname( $_SERVER['REQUEST_URI'] ) ); ?>
( ! ) Notice: Use of undefined constant DB_CONFIG_LANG - assumed 'DB_CONFIG_LANG' in C:\wamp\www\podo\index.php on line 10
Call Stack
# Time Memory Function Location
1 0.0000 152288 {main}( ) ..\index.php:0

( ! ) Warning: require(DB_CONFIG_LANG): failed to open stream: No such file or directory in C:\wamp\www\podo\index.php on line 10
Call Stack
# Time Memory Function Location
1 0.0000 152288 {main}( ) ..\index.php:0

( ! ) Fatal error: require(): Failed opening required 'DB_CONFIG_LANG' (include_path='.;C:\php\pear') in C:\wamp\www\podo\index.php on line 10
Call Stack
# Time Memory Function Location
1 0.0000 152288 {main}( ) ..\index.php:0

Błagam o pomoc. Bo nie mogę już wrócić do tej strony - wrzuciłem tam co innego opartego na bazie danych..

Jak przywrócić moją stronę???

Pozdrawiam

» Quick.Cms v3.x

Maciej

szadek21

Avatar: szadek21

2014-12-29 21:04

W razie czego podaję jeszcze mój plik: index.php. Nie wiem o co chodzi w tym "require DB_CONFIG_LANG;" - to jest właśnie line10

<?php
/*
* Quick.Cms by OpenSolution.org
* www.OpenSolution.org
*/
extract( $_GET );
define( 'CUSTOMER_PAGE', true );

require 'config/general.php';
require DB_CONFIG_LANG;

if( HIDDEN_SHOWS === true )
session_start( );

require_once DIR_LANG.LANGUAGE.'.php';
header( 'Content-Type: text/html; charset='.$config['charset'] );
require_once DIR_LIBRARIES.'TplParser.php';
require_once DIR_LIBRARIES.'FileJobs.php';
require_once DIR_LIBRARIES.'FlatFiles.php';
require_once DIR_LIBRARIES.'Trash.php';
require_once DIR_PLUGINS.'plugins.php';

require_once DIR_CORE.'pages.php';
require_once DIR_CORE.'files.php';

$aActions = isset( $p ) ? getAction( $p ) : getUrlFromGet( );
if( isset( $aActions['f'] ) && $aActions['f'] == 'p' )
$iContent = ( isset( $aActions['a'] ) && is_numeric( $aActions['a'] ) ) ? $aActions['a'] : $config['start_page'];
else
$iContent = null;

$oFF =& FlatFiles::getInstance( );
$oTpl =& TplParser::getInstance( DIR_TEMPLATES, $config['embed_php'] );
$oFF->cacheFilesIndexes( $config_db );

$oFile =& Files::getInstance( );
$oPage =& Pages::getInstance( );
$content = null;
$sTheme = null;
$sBanner = null;

$sKeywords = $config['keywords'];
$sDescription = $config['description'];
ob_start( 'changeCharset' );

if( isset( $aActions ) && is_file( 'actions_client/'.$aActions['f'].'.php' ) )
require 'actions_client/'.$aActions['f'].'.php';

if( isset( $sTheme ) && !empty( $sTheme ) && is_file( DIR_THEMES.$sTheme ) ){
require DIR_THEMES.$sTheme;
}
else{
if( is_file( DIR_THEMES.$aActions['f'].'-'.$aActions['a'].'.php' ) ){
require DIR_THEMES.$aActions['f'].'-'.$aActions['a'].'.php';
}
else{
require DIR_THEMES.$config['default_theme'];
}
}
ob_end_flush( );
?>

Maciej

selekcjoner

Avatar: selekcjoner

2014-12-29 21:50

Zobacz czy masz taki plik: config/lang_pl.php

Do góry
o nas | kontakt