ErrorException

HTTP 500 Whoops, looks like something went wrong.

Warning: unlink(/home/newsnike/sniker.ua/storage_sniker/cache/cache.catalog.language.1711666803): No such file or directory

Exception

ErrorException

  1.         $files glob(DIR_CACHE 'cache.' preg_replace('/[^A-Z0-9\._-]/i'''$key) . '.*');
  2.         if ($files) {
  3.             foreach ($files as $file) {
  4.                 if (file_exists($file)) {
  5.                     unlink($file);
  6.                 }
  7.             }
  8.         }
  9.     }
  10. }
File->delete('catalog.language') in /home/newsnike/sniker.ua/www/system/library/cache/file.php (line 45)
  1.         return false;
  2.     }
  3.     public function set($key$value) {
  4.         $this->delete($key);
  5.         $file DIR_CACHE 'cache.' preg_replace('/[^A-Z0-9\._-]/i'''$key) . '.' . (time() + $this->expire);
  6.         $handle fopen($file'w');
File->set('catalog.language', array('uk-ua' => array('language_id' => '1', 'name' => 'UA', 'code' => 'uk-ua', 'locale' => 'ua_UA.UTF-8,ua_UA,ua_UA,ua', 'image' => '', 'directory' => '', 'sort_order' => '1', 'status' => '1'), 'ru-ru' => array('language_id' => '2', 'name' => 'RU', 'code' => 'ru-ru', 'locale' => 'ru_RU.UTF-8,ru_RU,ru-ru,ru_ru,russian', 'image' => '', 'directory' => '', 'sort_order' => '2', 'status' => '1'))) in /home/newsnike/sniker.ua/www/system/library/cache.php (line 53)
  1.      * @param    string    $value    The cache value
  2.      * 
  3.      * @return    string
  4.      */
  5.     public function set($key$value) {
  6.         return $this->adaptor->set($key$value);
  7.     }
  8.    
  9.     /**
  10.      * 
  11.      *
Cache->set('catalog.language', array('uk-ua' => array('language_id' => '1', 'name' => 'UA', 'code' => 'uk-ua', 'locale' => 'ua_UA.UTF-8,ua_UA,ua_UA,ua', 'image' => '', 'directory' => '', 'sort_order' => '1', 'status' => '1'), 'ru-ru' => array('language_id' => '2', 'name' => 'RU', 'code' => 'ru-ru', 'locale' => 'ru_RU.UTF-8,ru_RU,ru-ru,ru_ru,russian', 'image' => '', 'directory' => '', 'sort_order' => '2', 'status' => '1'))) in /home/newsnike/sniker.ua/www/catalog/model/localisation/language.php (line 30)
  1.                     'sort_order'  => $result['sort_order'],
  2.                     'status'      => $result['status']
  3.                 );
  4.             }
  5.             $this->cache->set('catalog.language'$language_data);
  6.         }
  7.         return $language_data;
  8.     }
  9. }
ModelLocalisationLanguage->getLanguages() in /home/newsnike/sniker.ua/storage_sniker/modification/system/engine/loader.php (line 248)
  1.                 $method substr($routestrrpos($route'/') + 1);
  2.                 
  3.                 $callable = array($model[$key], $method);
  4.     
  5.                 if (is_callable($callable)) {
  6.                     $output call_user_func_array($callable$args);
  7.                 } else {
  8.                     throw new \Exception('Error: Could not call model/' $route '!');
  9.                 }                    
  10.             }
  11.             
Loader->{closure}(array(), array()) in /home/newsnike/sniker.ua/www/system/engine/proxy.php (line 47)
  1.                 $arg_data[] =& $arg;
  2.             }
  3.         }
  4.         
  5.         if (isset($this->{$key})) {        
  6.             return call_user_func_array($this->{$key}, $arg_data);    
  7.         } else {
  8.             $trace debug_backtrace();
  9.             
  10.             exit('<b>Notice</b>:  Undefined property: Proxy::' $key ' in <b>' $trace[1]['file'] . '</b> on line <b>' $trace[1]['line'] . '</b>');
  11.         }
Proxy->__call('getLanguages', array('getLanguages', array())) in /home/newsnike/sniker.ua/storage_sniker/modification/catalog/controller/startup/startup.php (line 47)
  1.         // Language
  2.         $code '';
  3.         
  4.         $this->load->model('localisation/language');
  5.         
  6.         $languages $this->model_localisation_language->getLanguages();
  7.         
  8.         if (isset($this->session->data['language'])) {
  9.             $code $this->session->data['language'];
  10.         }
  11.                 
  1.         }
  2.         
  3.         $reflection = new ReflectionClass($class);
  4.         
  5.         if ($reflection->hasMethod($this->method) && $reflection->getMethod($this->method)->getNumberOfRequiredParameters() <= count($args)) {
  6.             return call_user_func_array(array($controller$this->method), $args);
  7.         } else {
  8.             return new \Exception('Error: Could not call ' $this->route '/' $this->method '!');
  9.         }
  10.     }
  11. }
Action->execute(object(Registry)) in /home/newsnike/sniker.ua/www/system/engine/router.php (line 67)
  1.      *
  2.      * @param    object    $action
  3.      * @return    object
  4.      */
  5.     private function execute(Action $action) {
  6.         $result $action->execute($this->registry);
  7.         if ($result instanceof Action) {
  8.             return $result;
  9.         } 
  10.         
Router->execute(object(Action)) in /home/newsnike/sniker.ua/www/system/engine/router.php (line 46)
  1.      */        
  2.     public function dispatch(Action $actionAction $error) {
  3.         $this->error $error;
  4.         foreach ($this->pre_action as $pre_action) {
  5.             $result $this->execute($pre_action);
  6.             if ($result instanceof Action) {
  7.                 $action $result;
  8.                 break;
Router->dispatch(object(Action), object(Action)) in /home/newsnike/sniker.ua/www/system/framework.php (line 168)
  1.         $route->addPreAction(new Action($value));
  2.     }
  3. }
  4. // Dispatch
  5. $route->dispatch(new Action($config->get('action_router')), new Action($config->get('action_error')));
  6. // Output
  7. $response->output();
require_once('/home/newsnike/sniker.ua/www/system/framework.php') in /home/newsnike/sniker.ua/www/system/startup.php (line 104)
  1. // Helper
  2. require_once(DIR_SYSTEM 'helper/general.php');
  3. require_once(DIR_SYSTEM 'helper/utf8.php');
  4. function start($application_config) {
  5.     require_once(DIR_SYSTEM 'framework.php');    
  6. }
start('catalog') in /home/newsnike/sniker.ua/www/index.php (line 19)
  1. }
  2. // Startup
  3. require_once(DIR_SYSTEM 'startup.php');
  4. start('catalog');

Stack Trace

ErrorException

ErrorException:
Warning: unlink(/home/newsnike/sniker.ua/storage_sniker/cache/cache.catalog.language.1711666803): No such file or directory

  at /home/newsnike/sniker.ua/www/system/library/cache/file.php:68
  at Cache\File->delete('catalog.language')
     (/home/newsnike/sniker.ua/www/system/library/cache/file.php:45)
  at Cache\File->set('catalog.language', array('uk-ua' => array('language_id' => '1', 'name' => 'UA', 'code' => 'uk-ua', 'locale' => 'ua_UA.UTF-8,ua_UA,ua_UA,ua', 'image' => '', 'directory' => '', 'sort_order' => '1', 'status' => '1'), 'ru-ru' => array('language_id' => '2', 'name' => 'RU', 'code' => 'ru-ru', 'locale' => 'ru_RU.UTF-8,ru_RU,ru-ru,ru_ru,russian', 'image' => '', 'directory' => '', 'sort_order' => '2', 'status' => '1')))
     (/home/newsnike/sniker.ua/www/system/library/cache.php:53)
  at Cache->set('catalog.language', array('uk-ua' => array('language_id' => '1', 'name' => 'UA', 'code' => 'uk-ua', 'locale' => 'ua_UA.UTF-8,ua_UA,ua_UA,ua', 'image' => '', 'directory' => '', 'sort_order' => '1', 'status' => '1'), 'ru-ru' => array('language_id' => '2', 'name' => 'RU', 'code' => 'ru-ru', 'locale' => 'ru_RU.UTF-8,ru_RU,ru-ru,ru_ru,russian', 'image' => '', 'directory' => '', 'sort_order' => '2', 'status' => '1')))
     (/home/newsnike/sniker.ua/www/catalog/model/localisation/language.php:30)
  at ModelLocalisationLanguage->getLanguages()
     (/home/newsnike/sniker.ua/storage_sniker/modification/system/engine/loader.php:248)
  at Loader->{closure}(array(), array())
     (/home/newsnike/sniker.ua/www/system/engine/proxy.php:47)
  at Proxy->__call('getLanguages', array('getLanguages', array()))
     (/home/newsnike/sniker.ua/storage_sniker/modification/catalog/controller/startup/startup.php:47)
  at ControllerStartupStartup->index()
     (/home/newsnike/sniker.ua/storage_sniker/modification/system/engine/action.php:79)
  at Action->execute(object(Registry))
     (/home/newsnike/sniker.ua/www/system/engine/router.php:67)
  at Router->execute(object(Action))
     (/home/newsnike/sniker.ua/www/system/engine/router.php:46)
  at Router->dispatch(object(Action), object(Action))
     (/home/newsnike/sniker.ua/www/system/framework.php:168)
  at require_once('/home/newsnike/sniker.ua/www/system/framework.php')
     (/home/newsnike/sniker.ua/www/system/startup.php:104)
  at start('catalog')
     (/home/newsnike/sniker.ua/www/index.php:19)