Deprecated: Return type of CMap::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/2/r/restaurantfauna/craft/app/framework/collections/CMap.php on line 81

Deprecated: Return type of CMap::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/2/r/restaurantfauna/craft/app/framework/collections/CMap.php on line 306

Deprecated: Return type of CMap::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/2/r/restaurantfauna/craft/app/framework/collections/CMap.php on line 317

Deprecated: Return type of CMap::offsetSet($offset, $item) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/2/r/restaurantfauna/craft/app/framework/collections/CMap.php on line 328

Deprecated: Return type of CMap::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/2/r/restaurantfauna/craft/app/framework/collections/CMap.php on line 338

Deprecated: Return type of CMap::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/2/r/restaurantfauna/craft/app/framework/collections/CMap.php on line 91
PHP error

PHP error

Return type of CCache::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

/home/2/r/restaurantfauna/craft/app/framework/caching/CCache.php(337)

325     protected function flushValues()
326     {
327         throw new CException(Yii::t('yii','{className} does not support flushValues() functionality.',
328             array('{className}'=>get_class($this))));
329     }
330 
331     /**
332      * Returns whether there is a cache entry with a specified key.
333      * This method is required by the interface ArrayAccess.
334      * @param string $id a key identifying the cached value
335      * @return boolean
336      */
337     public function offsetExists($id)
338     {
339         return $this->get($id)!==false;
340     }
341 
342     /**
343      * Retrieves the value from cache with a specified key.
344      * This method is required by the interface ArrayAccess.
345      * @param string $id a key identifying the cached value
346      * @return mixed the value stored in cache, false if the value is not in the cache or expired.
347      */
348     public function offsetGet($id)
349     {

Stack Trace

#4
+
 /home/2/r/restaurantfauna/craft/app/etc/cache/FileCache.php(17): YiiBase::autoload("CFileCache")
12  */
13 
14 /**
15  *
16  */
17 class FileCache extends \CFileCache
18 {
19     private $_gced = false;
20     private $_originalKey;
21 
22     /**
#6
+
 /home/2/r/restaurantfauna/craft/app/services/CacheService.php(51): YiiBase::autoload("Craft\FileCache")
46                 break;
47             }
48 
49             case CacheMethod::File:
50             {
51                 $this->_cacheComponent = new FileCache();
52                 $this->_cacheComponent->cachePath = craft()->config->get('cachePath', ConfigFile::FileCache);
53                 $this->_cacheComponent->gCProbability = craft()->config->get('gcProbability', ConfigFile::FileCache);
54                 break;
55             }
56 
#8
+
 /home/2/r/restaurantfauna/craft/app/etc/web/WebApp.php(592): CModule->getComponent("cache", true)
587     {
588         $component = parent::getComponent($id, false);
589 
590         if (!$component && $createIfNull)
591         {
592             $component = parent::getComponent($id, true);
593             $this->_attachEventListeners($id);
594         }
595 
596         return $component;
597     }
2024-10-09 22:28:29 Apache/2.4.41 / Craft 2.1.2561

Warning: Uncaught Error: Object of class UnwindExit could not be converted to string in /home/2/r/restaurantfauna/craft/app/framework/caching/CCache.php:49 Stack trace: #0 /home/2/r/restaurantfauna/craft/app/framework/YiiBase.php(404): include() #1 /home/2/r/restaurantfauna/craft/app/framework/caching/CFileCache.php(26): YiiBase::autoload('CCache') #2 /home/2/r/restaurantfauna/craft/app/framework/YiiBase.php(404): include('/home/2/r/resta...') #3 /home/2/r/restaurantfauna/craft/app/etc/cache/FileCache.php(17): YiiBase::autoload('CFileCache') #4 /home/2/r/restaurantfauna/craft/app/framework/YiiBase.php(402): include('/home/2/r/resta...') #5 /home/2/r/restaurantfauna/craft/app/services/CacheService.php(51): YiiBase::autoload('Craft\\FileCache') #6 /home/2/r/restaurantfauna/craft/app/framework/base/CModule.php(387): Craft\CacheService->init() #7 /home/2/r/restaurantfauna/craft/app/etc/web/WebApp.php(592): CModule->getComponent('cache', true) #8 /home/2/r/restaurantfauna/craft/app/etc/web/WebApp.php(105): Craft\WebApp->getComponent('cache') #9 /home/2/r/restaurantfauna/craft/app/framework/base/CApplication.php(165): Craft\WebApp->init() #10 /home/2/r/restaurantfauna/craft/app/index.php(194): CApplication->__construct(Array) #11 /home/2/r/restaurantfauna/public/index.php(14): require_once('/home/2/r/resta...') #12 {main} thrown in /home/2/r/restaurantfauna/craft/app/framework/caching/CCache.php on line 49

Fatal error: During inheritance of ArrayAccess: Uncaught in /home/2/r/restaurantfauna/craft/app/framework/caching/CCache.php on line 49