Jump to content
Sign in to follow this  
suncho

Белый экран при входе в админ панель

Recommended Posts

Не могу войти в админ панель, по ссылке http://www.wiskehrs.ru/admin/ просто белый экран, никаких модулей не ставилось, сайт год не трогал, в чем может быть проблема?

Share this post


Link to post
Share on other sites

Выдает ошибку    Fatal error: require_once() [function.require]: Failed opening required '/home/v/vesmarket/wiskehrs.ru/public_html/system/startup.php' (include_path='.:/usr/local/lib/php') in/home/v/vesmarket/wiskehrs/public_html/admin/index.php on line 15

Вот файл индекс.

<?php

// Version
define('VERSION', '1.5.4.1');
 
// Configuration
require_once('config.php');
 
// Install 
if (!defined('DIR_APPLICATION')) {
header('Location: ../install/index.php');
exit;
}
 
// Startup
require_once(DIR_SYSTEM . 'startup.php');
 
// Application Classes
require_once(DIR_SYSTEM . 'library/currency.php');
require_once(DIR_SYSTEM . 'library/user.php');
require_once(DIR_SYSTEM . 'library/weight.php');
require_once(DIR_SYSTEM . 'library/length.php');
 
// Registry
$registry = new Registry();
 
// Loader
$loader = new Loader($registry);
$registry->set('load', $loader);
 
// Config
$config = new Config();
$registry->set('config', $config);
 
// Database
$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
$registry->set('db', $db);
 
// Settings
$query = $db->query("SELECT * FROM " . DB_PREFIX . "setting WHERE store_id = '0'");
 
foreach ($query->rows as $setting) {
if (!$setting['serialized']) {
$config->set($setting['key'], $setting['value']);
} else {
$config->set($setting['key'], unserialize($setting['value']));
}
}
 
// Url
$url = new Url(HTTP_SERVER, $config->get('config_use_ssl') ? HTTPS_SERVER : HTTP_SERVER);
$registry->set('url', $url);
 
// Log 
$log = new Log($config->get('config_error_filename'));
$registry->set('log', $log);
 
function error_handler($errno, $errstr, $errfile, $errline) {
global $log, $config;
 
switch ($errno) {
case E_NOTICE:
case E_USER_NOTICE:
$error = 'Notice';
break;
case E_WARNING:
case E_USER_WARNING:
$error = 'Warning';
break;
case E_ERROR:
case E_USER_ERROR:
$error = 'Fatal Error';
break;
default:
$error = 'Unknown';
break;
}
 
if ($config->get('config_error_display')) {
echo '<b>' . $error . '</b>: ' . $errstr . ' in <b>' . $errfile . '</b> on line <b>' . $errline . '</b>';
}
 
if ($config->get('config_error_log')) {
$log->write('PHP ' . $error . ':  ' . $errstr . ' in ' . $errfile . ' on line ' . $errline);
}
 
return true;
}
 
// Error Handler
set_error_handler('error_handler');
 
// Request
$request = new Request();
$registry->set('request', $request);
 
// Response
$response = new Response();
$response->addHeader('Content-Type: text/html; charset=utf-8');
$registry->set('response', $response); 
 
// Cache
$cache = new Cache();
$registry->set('cache', $cache); 
 
// Session
$session = new Session();
$registry->set('session', $session); 
 
// Language
$languages = array();
 
$query = $db->query("SELECT * FROM " . DB_PREFIX . "language"); 
 
foreach ($query->rows as $result) {
$languages[$result['code']] = $result;
}
 
$config->set('config_language_id', $languages[$config->get('config_admin_language')]['language_id']);
 
// Language
$language = new Language($languages[$config->get('config_admin_language')]['directory']);
$language->load($languages[$config->get('config_admin_language')]['filename']);
$registry->set('language', $language);
 
// Document
$registry->set('document', new Document());
 
// Currency
$registry->set('currency', new Currency($registry));
 
// Weight
$registry->set('weight', new Weight($registry));
 
// Length
$registry->set('length', new Length($registry));
 
// User
$registry->set('user', new User($registry));
 
// Front Controller
$controller = new Front($registry);
 
// Login
$controller->addPreAction(new Action('common/home/login'));
 
// Permission
$controller->addPreAction(new Action('common/home/permission'));
 
// Router
if (isset($request->get['route'])) {
$action = new Action($request->get['route']);
} else {
$action = new Action('common/home');
}
 
// Dispatch
$controller->dispatch($action, new Action('error/not_found'));
 
// Output
$response->output();
?>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.