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$_b5256e9916e55ec331ca2697618049bb): 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 328)
  1.         $listing_sql_raw $listing_sql;
  2.         // split query to 2 small queries: 1) find all products ids, 2) get info for each product
  3.         //products ids for filters
  4.         $pids_price_filter_excluded tep_get_all_pids_price_exclude($listing_sql$price_filter_statement);
  5.         //products ids for filters
  6. // Ensure $where_filters is defined
  7.         $where_filters $where_filters ?? ''// Provide a default value if undefined

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$_b5256e9916e55ec331ca2697618049bb): 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:328)                
Solomono Template demo - Страница 6

Страница 6

На страницу:
Сортировка:
unlink(/mnt/test_sites/sites_new/wellcraft.com.ua/storage/cache/all_sql_products_ids/all_sql_products_ids$_402ba34877be975ffac617ebe7ef2d85): No such file or directory (500 Whoops, looks like something went wrong.)

unlink(/mnt/test_sites/sites_new/wellcraft.com.ua/storage/cache/all_sql_products_ids/all_sql_products_ids$_402ba34877be975ffac617ebe7ef2d85): No such file or directory

Exception

ErrorException

  1.     if (!file_exists($dir)) {
  2.         return true;
  3.     }
  4.     if (!is_dir($dir)) {
  5.         return unlink($dir);
  6.     }
  7.     foreach (scandir($dir) as $item) {
  8.         if ($item == '.' || $item == '..') {
  9.             continue;
  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.     if (!file_exists($dir)) {
  2.         return true;
  3.     }
  4.     if (!is_dir($dir)) {
  5.         return unlink($dir);
  6.     }
  7.     foreach (scandir($dir) as $item) {
  8.         if ($item == '.' || $item == '..') {
  9.             continue;
  1.     foreach (scandir($dir) as $item) {
  2.         if ($item == '.' || $item == '..') {
  3.             continue;
  4.         }
  5.         if (!deleteDirectory($dir DIRECTORY_SEPARATOR $item)) {
  6.             return false;
  7.         }
  8.     }
  9.     return rmdir($dir);
  1.     public static function forgetByPrefix(string $keyPrefix): bool
  2.     {
  3.         $result false;
  4.         $keyPrefix str_replace(self::PREFIX_END''$keyPrefix);
  5.         $path self::getDirectory();
  6.         if (!file_exists($path '/' $keyPrefix) || deleteDirectory($path '/' $keyPrefix)) {
  7.             $result true;
  8.         }
  9.         return $result;
  10.     }
  1.     public static function forgetByPrefixMultiple(array $keyPrefixes): bool
  2.     {
  3.         $result true;
  4.         foreach ($keyPrefixes as $keyPrefix) {
  5.             $result &= self::forgetByPrefix($keyPrefix);
  6.         }
  7.         return (bool)$result;
  8.     }
  9.     public static function forgetByTableName(string $tableName): bool
  1.     }
  2.     public static function forgetByTableNames(array $tablesNames): bool
  3.     {
  4.         $filesKeys self::collectKeysByTableNames($tablesNames);
  5.         return self::forgetByPrefixMultiple($filesKeys);
  6.     }
  7.     //collect keys of file caches
  8.     public static function collectKeysByTableName(string $tableName): array
  9.     {
FileCacheHelper::forgetByTableNames() in /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php (line 99)
  1.     }
  2.     //forget cache by tables names
  3.     if ($cache_queries && !empty($tables) && $action && in_array($action, ['insert''update''insertodku''delete'])) {
  4.         $tables is_array($tables) ? $tables : [$tables];
  5.         FileCacheHelper::forgetByTableNames($tables);
  6.     }
  7.     $parseTime round((microtime(true) - $start), 2);
  8.     $alert_execution_time = (defined('ALERT_QUERY_EXECUTION_TIME_FRONT') && ALERT_QUERY_EXECUTION_TIME_FRONT 0
  1.     if (!empty($listing['products_url'])) {
  2.         $product_href $listing['products_url']; // if "products_url" is set, show link without DB query to get names
  3.     } else {
  4.         $products_url $seo_urls->strip($product_name);
  5.         $products_url str_replace('p-','p',$products_url); //fix bug with get product ID when url like /p-some-text/p-123.html
  6.         tep_db_query("update " TABLE_PRODUCTS_DESCRIPTION " set products_url = '" $products_url "' where language_id = '" $languages_id "' and products_id = '" tep_db_input($id) . "'",TABLE_PRODUCTS_DESCRIPTION,'update');
  7.         $product_href $products_url ?: '-'// if "products_url" empty, then get name from DB
  8.     }
  9.     $product_href getCPathUrlPart($id) . preg_replace('|' $catalog_path '|i'''$product_href);
  10.     if (!empty($listing['products_image'])) {
include('/home/solomono/web/solomono.net/sites/demo/includes/modules/product_listing_col.php') in /mnt/test_sites/sites_new/wellcraft.com.ua/templates/default/content/index_products.tpl.php (line 125)
  1.     </div>
  2.     <?php }
  3.     endif;
  4.     ?>
  5.     <div id="block">
  6.         <?php include(DIR_WS_MODULES FILENAME_PRODUCT_LISTING_COL); // products listing ?>
  7.     </div>
  8.     <?php
  9.     if (isset($seoFilterInfo) && $seoFilterInfo) {
  10.         $desc_text $seoFilterInfo['description'];
  11.     } elseif (is_array($searchResultsQuery) && $searchResultsQuery["seo_text"]) {
require('/mnt/test_sites/sites_new/wellcraft.com.ua/templates/default/content/index_products.tpl.php') in /mnt/test_sites/sites_new/wellcraft.com.ua/templates/default/main_page.tpl.php (line 121)
  1.             <?php echo $breadcrumb->trail(' '); ?>
  2.             <!-- END BREADCRUMBS -->
  3.             <!-- CONTENT -->
  4.             <?php
  5.             if (file_exists(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php')) {
  6.                 require(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php'); // content from current template (if exists)
  7.             } else {
  8.                 require(DIR_WS_CONTENT $content '.tpl.php'); // content from default template
  9.             }
  10.             ?>
  11.             <!-- END CONTENT -->
require('/mnt/test_sites/sites_new/wellcraft.com.ua/templates/default/main_page.tpl.php') in /mnt/test_sites/sites_new/wellcraft.com.ua/index.php (line 512)
  1. }
  2. if (isset($_SERVER['HTTP_X_REQUESTED_WITH'] ) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
  3.     require(DIR_WS_MODULES FILENAME_PRODUCT_LISTING_COL);
  4. } else {
  5.     require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  6. }
  7. require(DIR_WS_INCLUDES 'application_bottom.php');

Stack Trace

ErrorException
ErrorException:
unlink(/mnt/test_sites/sites_new/wellcraft.com.ua/storage/cache/all_sql_products_ids/all_sql_products_ids$_402ba34877be975ffac617ebe7ef2d85): No such file or directory

  at /home/solomono/web/solomono.net/sites/demo/includes/functions/files_functions.php:147
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at unlink()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/files_functions.php:147)
  at deleteDirectory()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/files_functions.php:155)
  at deleteDirectory()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Helpers/FileCacheHelper.php:236)
  at App\Classes\Cache\Helpers\FileCacheHelper::forgetByPrefix()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Helpers/FileCacheHelper.php:247)
  at App\Classes\Cache\Helpers\FileCacheHelper::forgetByPrefixMultiple()
     (/home/solomono/web/solomono.net/sites/demo/app/Classes/Cache/Helpers/FileCacheHelper.php:261)
  at App\Classes\Cache\Helpers\FileCacheHelper::forgetByTableNames()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:99)
  at tep_db_query()
     (/home/solomono/web/solomono.net/sites/demo/includes/modules/product_listing_col.php:292)
  at include('/home/solomono/web/solomono.net/sites/demo/includes/modules/product_listing_col.php')
     (/mnt/test_sites/sites_new/wellcraft.com.ua/templates/default/content/index_products.tpl.php:125)
  at require('/mnt/test_sites/sites_new/wellcraft.com.ua/templates/default/content/index_products.tpl.php')
     (/mnt/test_sites/sites_new/wellcraft.com.ua/templates/default/main_page.tpl.php:121)
  at require('/mnt/test_sites/sites_new/wellcraft.com.ua/templates/default/main_page.tpl.php')
     (/mnt/test_sites/sites_new/wellcraft.com.ua/index.php:512)                
В наличии

8.833 грн

:
В наличии

1.169 грн

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

1.279 грн

:
В наличии

347 грн

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

1.156 грн

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

1.108 грн

:
:
В наличии

918 грн

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

2.642 грн

:
:
:
В наличии

1.999 грн

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

781 грн

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

553 грн

:
В наличии

305 грн

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

1.861 грн

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

905 грн

:
,
В наличии

1.198 грн

:
,
В наличии

3.068 грн

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

2.707 грн

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

295 грн

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

6.758 грн

:
:
В наличии

891 грн

:
:
:
: