ErrorException

HTTP 500 Whoops, looks like something went wrong.

filesize(): stat failed for /mnt/test_sites/sites_new/wellcraft.com.ua/storage/cache/all_sql_products_ids/all_sql_products_ids$_a30ec1ca615e4d6ee278f4bc55c1e016

Exception

ErrorException

  1.      * @param string $path
  2.      * @return int
  3.      */
  4.     public function size($path)
  5.     {
  6.         return filesize($path);
  7.     }
  8.     public function humanFilesize($bytes$decimals 2)
  9.     {
  10.         $sz 'BKMGTP';
  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.      * @param string $path
  2.      * @return int
  3.      */
  4.     public function size($path)
  5.     {
  6.         return filesize($path);
  7.     }
  8.     public function humanFilesize($bytes$decimals 2)
  9.     {
  10.         $sz 'BKMGTP';
  1.         $handle fopen($path'rb');
  2.         if ($handle) {
  3.             //  try {
  4.             if (flock($handleLOCK_SH)) {
  5.                 clearstatcache(true$path);
  6.                 $contents fread($handle$this->size($path) ?: 1);
  7.                 flock($handleLOCK_UN);
  8.             }
  9.             //  } finally {
  10.             //      fclose($handle);
  11.             //  }
  1.      * @throws Exception
  2.      */
  3.     public function get(string $pathbool $lock false)
  4.     {
  5.         if ($this->isFile($path) && file_exists($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.         FileCacheHelper::ALL_SQL_PRODUCTS_IDS_KEY '_' md5($listing_sql),
  2.         fn() => array_column(
  3.             tep_db_query($listing_sql)->fetch_all(MYSQLI_ASSOC),
  4.             'products_id'
  5.         ),
  6.         null
  7.     );
  8. }
  9. function tep_get_all_pids_price_exclude($listing_sql$excluded_statement)
  10. {
  1. function tep_get_all_pids_price_exclude($listing_sql$excluded_statement)
  2. {
  3.     $cleared_listing_sql str_replace($excluded_statement''$listing_sql);
  4.     return tep_get_all_sql_products_ids($cleared_listing_sql);
  5. }
  6. function tep_get_query_products_info($listing_sql$limit 10)
  7. {
  8.     global $languages_id$customer_price$listing_add_fields$spec_array$all_pids;
tep_get_all_pids_price_exclude() in /mnt/test_sites/sites_new/wellcraft.com.ua/index.php (line 335)
  1.         //products ids for filters
  2. // Ensure $where_filters is defined
  3.         $where_filters $where_filters ?? ''// Provide a default value if undefined
  4. // Safely use str_replace
  5.         $pids_filter_excluded tep_get_all_pids_price_exclude($listing_sqlstr_replace($price_filter_statement''$where_filters)) ?: [0];
  6.         //products ids for attributes
  7.         $where_attr = !empty($manFilter) ? str_replace($manFilter''$where_filters) : $where_filters;
  8.         $pids_filter_attr_axcluded tep_get_all_pids_price_exclude($listing_sqlstr_replace($price_filter_statement''$where_attr)) ?: [];

Stack Trace

ErrorException
ErrorException:
filesize(): stat failed for /mnt/test_sites/sites_new/wellcraft.com.ua/storage/cache/all_sql_products_ids/all_sql_products_ids$_a30ec1ca615e4d6ee278f4bc55c1e016

  at /home/solomono/web/solomono.net/sites/demo/app/Classes/Filesystem/Filesystem.php:339
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at filesize()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Filesystem/Filesystem.php:339)
  at App\Classes\Filesystem\Filesystem->size()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Filesystem/Filesystem.php:55)
  at App\Classes\Filesystem\Filesystem->sharedGet()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Filesystem/Filesystem.php:38)
  at App\Classes\Filesystem\Filesystem->get()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Store/FileStore.php:185)
  at App\Classes\Cache\Store\FileStore->getPayload()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Store/FileStore.php:48)
  at App\Classes\Cache\Store\FileStore->get()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Repository.php:65)
  at App\Classes\Cache\Repository->get()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Repository.php:319)
  at App\Classes\Cache\Repository->remember()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Helpers/FileCacheHelper.php:186)
  at App\Classes\Cache\Helpers\FileCacheHelper::remember()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/general.php:70)
  at tep_get_all_sql_products_ids()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/general.php:78)
  at tep_get_all_pids_price_exclude()
     (/mnt/test_sites/sites_new/wellcraft.com.ua/index.php:335)                
file_put_contents(/mnt/test_sites/sites_new/wellcraft.com.ua/storage/cache/all_sql_products_ids/all_sql_products_ids$_a30ec1ca615e4d6ee278f4bc55c1e016): failed to open stream: No such file or directory (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

file_put_contents(/mnt/test_sites/sites_new/wellcraft.com.ua/storage/cache/all_sql_products_ids/all_sql_products_ids$_a30ec1ca615e4d6ee278f4bc55c1e016): failed to open stream: No such file or directory

Exception

ErrorException

  1.      * @param bool $lock
  2.      * @return int
  3.      */
  4.     public function put(string $path$contents$lock false)
  5.     {
  6.         return file_put_contents($path$contents$lock LOCK_EX 0);
  7.     }
  8.     /**
  9.      * Write the contents of a file, replacing it atomically if it already exists.
  10.      * @param string $path
  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.      * @param bool $lock
  2.      * @return int
  3.      */
  4.     public function put(string $path$contents$lock false)
  5.     {
  6.         return file_put_contents($path$contents$lock LOCK_EX 0);
  7.     }
  8.     /**
  9.      * Write the contents of a file, replacing it atomically if it already exists.
  10.      * @param string $path
  1.         $this->ensureCacheDirectoryExists($path $this->path($key));
  2.         $result $this->files->put(
  3.             $path,
  4.             $this->expiration($seconds) . serialize($value),
  5.             true
  6.         );
  7.         if ($result !== false && $result 0) {
  8.             $this->ensureFileHasCorrectPermissions($path);
  1.      * @param mixed $value
  2.      * @return bool
  3.      */
  4.     public function forever($key$value): bool
  5.     {
  6.         return $this->put($key$value0);
  7.     }
  8.     /**
  9.      * Remove an item from the cache.
  10.      * @param string $key
  1.      * @param mixed $value
  2.      * @return bool
  3.      */
  4.     public function forever($key$value)
  5.     {
  6.         $result $this->store->forever($this->itemKey($key), $value);
  7.         if ($result) {
  8.             event(new CacheWritten($key$value));
  9.         }
  1.         if (is_array($key)) {
  2.             return $this->putMany($key$value);
  3.         }
  4.         if ($ttl === null) {
  5.             return $this->forever($key$value);
  6.         }
  7.         $seconds $this->getSeconds($ttl);
  8.         if ($seconds <= 0) {
  1.         // given number of seconds so it's available for all subsequent requests.
  2.         if (!is_null($value)) {
  3.             return $value;
  4.         }
  5.         $this->put($key$value $callback(), $ttl);
  6.         return $value;
  7.     }
  8.     /**
  1.         try {
  2.             if ($isCacheEnabled) {
  3.                 return self::getRepository()
  4.                     ->remember(
  5.                         $key,
  6.                         $ttl,
  7.                         $closure
  8.                     );
  9.             } else {
  10.                 return $closure();
  1.         FileCacheHelper::ALL_SQL_PRODUCTS_IDS_KEY '_' md5($listing_sql),
  2.         fn() => array_column(
  3.             tep_db_query($listing_sql)->fetch_all(MYSQLI_ASSOC),
  4.             'products_id'
  5.         ),
  6.         null
  7.     );
  8. }
  9. function tep_get_all_pids_price_exclude($listing_sql$excluded_statement)
  10. {
  1. function tep_get_all_pids_price_exclude($listing_sql$excluded_statement)
  2. {
  3.     $cleared_listing_sql str_replace($excluded_statement''$listing_sql);
  4.     return tep_get_all_sql_products_ids($cleared_listing_sql);
  5. }
  6. function tep_get_query_products_info($listing_sql$limit 10)
  7. {
  8.     global $languages_id$customer_price$listing_add_fields$spec_array$all_pids;
tep_get_all_pids_price_exclude() in /mnt/test_sites/sites_new/wellcraft.com.ua/index.php (line 339)
  1. // Safely use str_replace
  2.         $pids_filter_excluded tep_get_all_pids_price_exclude($listing_sqlstr_replace($price_filter_statement''$where_filters)) ?: [0];
  3.         //products ids for attributes
  4.         $where_attr = !empty($manFilter) ? str_replace($manFilter''$where_filters) : $where_filters;
  5.         $pids_filter_attr_axcluded tep_get_all_pids_price_exclude($listing_sqlstr_replace($price_filter_statement''$where_attr)) ?: [];
  6.         // define how much products to show on page
  7.         $row_by_page 10;
  8.         if (!empty($_GET['row_by_page'])) {

Stack Trace

ErrorException
ErrorException:
file_put_contents(/mnt/test_sites/sites_new/wellcraft.com.ua/storage/cache/all_sql_products_ids/all_sql_products_ids$_a30ec1ca615e4d6ee278f4bc55c1e016): failed to open stream: No such file or directory

  at /home/solomono/web/solomono.net/sites/demo/app/Classes/Filesystem/Filesystem.php:140
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at file_put_contents()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Filesystem/Filesystem.php:140)
  at App\Classes\Filesystem\Filesystem->put()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Store/FileStore.php:64)
  at App\Classes\Cache\Store\FileStore->put()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Store/FileStore.php:131)
  at App\Classes\Cache\Store\FileStore->forever()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Repository.php:301)
  at App\Classes\Cache\Repository->forever()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Repository.php:160)
  at App\Classes\Cache\Repository->put()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Repository.php:328)
  at App\Classes\Cache\Repository->remember()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Helpers/FileCacheHelper.php:186)
  at App\Classes\Cache\Helpers\FileCacheHelper::remember()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/general.php:70)
  at tep_get_all_sql_products_ids()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/general.php:78)
  at tep_get_all_pids_price_exclude()
     (/mnt/test_sites/sites_new/wellcraft.com.ua/index.php:339)                
Mighty Seven

Mighty Seven

На страницу:
Сортировка:
В наличии

209 грн

:
:
:
:
, ,
В наличии

1.613 грн

:
:
:
:
В наличии

1.218 грн

:
:
:
:
В наличии

2.030 грн

:
:
:
:
В наличии

3.619 грн

:
:
:
:
В наличии

5.205 грн

:
:
:
:
В наличии

214 грн

:
:
:
:
В наличии

32 грн

:
:
:
:
В наличии

41 грн

:
:
:
:
В наличии

210 грн

:
:
:
:
В наличии

675 грн

:
:
:
В наличии

1.061 грн

В наличии

1.583 грн

:
:
:
:
В наличии

5.145 грн

:
:
:
:
В наличии

4.233 грн

:
:
:
:
В наличии

6.996 грн

:
:
,
:
:
В наличии

193 грн

:
:
:
:
В наличии

2.521 грн

:
:
:
:
В наличии

3.944 грн

:
:
:
:
В наличии

4.326 грн

:
:
:
: