Jump to content

Error on main page.


Recommended Posts

Sense I installed it, I have gotten this error, and I hoped this update would fix it, But no go. Could some one take a look and give me a idea where to start to find this issue..



http://www.getyourglasson.com/shop



Thanks in advance.
The error:

'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"); foreach ($query->rows as $setting) { $config->set($setting['key'], $setting['value']); } $log = new Logger($config->get('config_error_filename')); Registry::set('log', $log); // Error Handler function error_handler($errno, $errstr, $errfile, $errline) { global $config, $log; switch ($errno) { case E_NOTICE: case E_USER_NOTICE: $errors = "Notice"; break; case E_WARNING: case E_USER_WARNING: $errors = "Warning"; break; case E_ERROR: case E_USER_ERROR: $errors = "Fatal Error"; break; default: $errors = "Unknown"; break; } if ($config->get('config_error_display')) { echo '' . $errors . ': ' . $errstr . ' in ' . $errfile . ' on line ' . $errline . ''; } if ($config->get('config_error_log')) { $log->write('PHP ' . $errors . ': ' . $errstr . ' in ' . $errfile . ' on line ' . $errline); } return true; } // set to the user defined 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); // Session Registry::set('session', new Session()); // Cache Registry::set('cache', new Cache()); // Url Registry::set('url', new Url()); // Language $language = new Language($config->get('config_admin_language')); Registry::set('language', $language); // Document Registry::set('document', new Document()); // Currency Registry::set('currency', new HelperCurrency()); // User Registry::set('user', new HelperUser()); // Front Controller $controller = new Front(); // Login $controller->addPreAction(new Router('common/login/check')); // Permission $controller->addPreAction(new Router('common/permission/check')); // Router if (isset($request->get['route'])) { $action = new Router($request->get['route']); } else { $action = new Router('common/home'); } // Dispatch $controller->dispatch($action, new Router('error/not_found')); // Output $response->output($config->get('config_compression')); ?>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...