ErrorException

HTTP 500 Whoops, looks like something went wrong.

fopen(/home/solomono/web/solomono.net/sites/motofix.com.ua/storage/cache/other/93332fcd13c810a75375d37d44f87802_tep_get_all_pids_price_exclude): failed to open stream: No such file or directory

Exception

ErrorException

  1.      * @return string
  2.      */
  3.     public function sharedGet(string $path)
  4.     {
  5.         $contents '';
  6.         $handle fopen($path'rb');
  7.         if ($handle) {
  8.             //  try {
  9.             if (flock($handleLOCK_SH)) {
  10.                 clearstatcache(true$path);
  11.                 $contents fread($handle$this->size($path) ?: 1);
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.      * @return string
  2.      */
  3.     public function sharedGet(string $path)
  4.     {
  5.         $contents '';
  6.         $handle fopen($path'rb');
  7.         if ($handle) {
  8.             //  try {
  9.             if (flock($handleLOCK_SH)) {
  10.                 clearstatcache(true$path);
  11.                 $contents fread($handle$this->size($path) ?: 1);
  1.      * @throws Exception
  2.      */
  3.     public function get(string $pathbool $lock false)
  4.     {
  5.         if ($this->isFile($path)) {
  6.             return $lock $this->sharedGet($path) : file_get_contents($path);
  7.         }
  8.         throw new Exception("File does not exist at path {$path}");
  9.     }
  10.     /**
  1.         // If the file doesn't exist, we obviously cannot return the cache so we will
  2.         // just return null. Otherwise, we'll get the contents of the file and get
  3.         // the expiration UNIX timestamps from the start of the file's contents.
  4.         try {
  5.             $expire substr(
  6.                 $contents $this->files->get($pathtrue),
  7.                 0,
  8.                 10
  9.             );
  10.         } catch (Exception $e) {
  11.             return $this->emptyPayload();
  1.      * Retrieve an item from the cache by key.
  2.      * @param string|array $key
  3.      */
  4.     public function get($key)
  5.     {
  6.         return $this->getPayload($key)['data'] ?? null;
  7.     }
  8.     /**
  9.      * Store an item in the cache for a given number of seconds.
  10.      * @param string $key
  1.     {
  2.         if (is_array($key)) {
  3.             return $this->many($key);
  4.         }
  5.         $value $this->store->get($this->itemKey($key));
  6.         // If we could not find the cache value, we will fire the missed event and get
  7.         // the default value for this cache value. This default could be a callback
  8.         // so we will execute the value function which will resolve it if needed.
  9.         if (is_null($value)) {
  1.      * @param Closure $callback
  2.      * @return mixed
  3.      */
  4.     public function remember($key$ttlClosure $callback)
  5.     {
  6.         $value $this->get($key);
  7.         // If the item exists in the cache we will just return this immediately and if
  8.         // not we will execute the given Closure and cache the result of that for a
  9.         // given number of seconds so it's available for all subsequent requests.
  10.         if (!is_null($value)) {
  1.         try {
  2.             if ($isCacheEnabled) {
  3.                 return self::getRepository()
  4.                     ->remember(
  5.                         $key,
  6.                         $ttl,
  7.                         $closure
  8.                     );
  9.             } else {
  10.                 return $closure();
  1.         md5($cleared_listing_sql) . '_' __METHOD__,
  2.         fn() => array_column(
  3.             tep_db_query($cleared_listing_sql)->fetch_all(MYSQLI_ASSOC),
  4.             'products_id'
  5.         )
  6.     );
  7. }
  8. /**
  9.  * get count of comments
  10.  */
tep_get_all_pids_price_exclude() in /mnt/test_sites/sites_new/motofix.com.ua/index.php (line 398)
  1.                 $listing_sql .= " order by p.products_quantity > 0 desc, s.products_id desc";
  2.                 break;
  3.         }
  4.         $listing_sql_raw $listing_sql;
  5.         // split query to 2 small queries: 1) find all products ids, 2) get info for each product
  6.         $pids_price_filter_excluded tep_get_all_pids_price_exclude($listing_sql$price_filter_statement);
  7.         $pids_filter_excluded tep_get_all_pids_price_exclude($listing_sqlstr_replace($price_filter_statement''$where_filters));
  8.         $pids_filter_excluded $pids_filter_excluded ?: [0];
  9.         $where_attr = !empty($manFilter) ? str_replace($manFilter''$where_filters) : $where_filters;
  10.         $pids_filter_attr_axcluded tep_get_all_pids_price_exclude($listing_sqlstr_replace($price_filter_statement''$where_attr));

Stack Trace

ErrorException
ErrorException:
fopen(/home/solomono/web/solomono.net/sites/motofix.com.ua/storage/cache/other/93332fcd13c810a75375d37d44f87802_tep_get_all_pids_price_exclude): failed to open stream: No such file or directory

  at /mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Filesystem/Filesystem.php:50
  at Bootstrap\HandleExceptions->handleError()
     (/mnt/test_sites/sites_new/motofix.com.ua/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at fopen()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Filesystem/Filesystem.php:50)
  at App\Classes\Filesystem\Filesystem->sharedGet()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Filesystem/Filesystem.php:38)
  at App\Classes\Filesystem\Filesystem->get()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Cache/Store/FileStore.php:185)
  at App\Classes\Cache\Store\FileStore->getPayload()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Cache/Store/FileStore.php:48)
  at App\Classes\Cache\Store\FileStore->get()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Cache/Repository.php:65)
  at App\Classes\Cache\Repository->get()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Cache/Repository.php:319)
  at App\Classes\Cache\Repository->remember()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Cache/Helpers/FileCacheHelper.php:185)
  at App\Classes\Cache\Helpers\FileCacheHelper::remember()
     (/mnt/test_sites/sites_new/motofix.com.ua/includes/functions/general.php:102)
  at tep_get_all_pids_price_exclude()
     (/mnt/test_sites/sites_new/motofix.com.ua/index.php:398)                
S&B - Сторінка 13

S&B - Сторінка 13

На сторінку:
Сортування: