ErrorException

HTTP 500 Whoops, looks like something went wrong.

file_put_contents(): Only 20480 of 49525 bytes written, possibly out of free disk space

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.         if ($seconds <= 0) {
  2.             return $this->forget($key);
  3.         }
  4.         $result $this->store->put($this->itemKey($key), $value$seconds);
  5.         if ($result) {
  6.             event(new CacheWritten($key$value$seconds));
  7.         }
  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.         md5($listing_sql) . '_' __METHOD__,
  2.         fn() => array_column(
  3.             tep_db_query($listing_sql)->fetch_all(MYSQLI_ASSOC),
  4.             'products_id'
  5.         )
  6.     );
  7. }
  8. function tep_get_query_products_info($listing_sql)
  9. {
  10.     global $languages_id$customer_price$listing_add_fields$spec_array$all_pids;
  1. function tep_get_query_products_info($listing_sql)
  2. {
  3.     global $languages_id$customer_price$listing_add_fields$spec_array$all_pids;
  4.     $all_pids tep_get_all_sql_products_ids($listing_sql);
  5.     if (!empty($all_pids)) {
  6.         $specials getSpecials($all_pids);
  7.         $specialPrices = [];
  8.         foreach ($specials as $special) {
tep_get_query_products_info() in /mnt/test_sites/sites_new/motofix.com.ua/index.php (line 406)
  1.         $pids_filter_excluded $pids_filter_excluded ?: [0];
  2.         $where_attr = !empty($manFilter) ? str_replace($manFilter''$where_filters) : $where_filters;
  3.         $pids_filter_attr_axcluded tep_get_all_pids_price_exclude($listing_sqlstr_replace($price_filter_statement''$where_attr));
  4.         $pids_filter_attr_axcluded $pids_filter_attr_axcluded ?: [];
  5.         $listing_sql tep_get_query_products_info($listing_sql);
  6.         // define how much products to show on page
  7.         if (!empty($_GET['row_by_page'])) {
  8.             if ($_GET['row_by_page'] == 'all') {
  9.                 $row_by_page 1000;
  10.             } elseif ((int)$_GET['row_by_page'] != 0) {

Stack Trace

ErrorException
ErrorException:
file_put_contents(): Only 20480 of 49525 bytes written, possibly out of free disk space

  at /mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Filesystem/Filesystem.php:140
  at Bootstrap\HandleExceptions->handleError()
     (/mnt/test_sites/sites_new/motofix.com.ua/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at file_put_contents()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Filesystem/Filesystem.php:140)
  at App\Classes\Filesystem\Filesystem->put()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Cache/Store/FileStore.php:64)
  at App\Classes\Cache\Store\FileStore->put()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Cache/Repository.php:169)
  at App\Classes\Cache\Repository->put()
     (/mnt/test_sites/sites_new/motofix.com.ua/app/Classes/Cache/Repository.php:328)
  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:41)
  at tep_get_all_sql_products_ids()
     (/mnt/test_sites/sites_new/motofix.com.ua/includes/functions/general.php:48)
  at tep_get_query_products_info()
     (/mnt/test_sites/sites_new/motofix.com.ua/index.php:406)