ErrorException

HTTP 500 Whoops, looks like something went wrong.

file_put_contents(): Only -1 of 285 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();
FileCacheHelper::remember() in /mnt/test_sites/sites_new/motofix.com.ua/index.php (line 68)
  1.                 $current_category FileCacheHelper::remember(
  2.                     "cPath={$_GET['cPath']}",
  3.                     fn() => tep_db_query(
  4.                         "select cd.categories_name, cd.categories_name_h1, cd.categories_heading_title, cd.categories_description, c.categories_image, c.display_products, c.default_sort_order_products from " TABLE_CATEGORIES " c, " TABLE_CATEGORIES_DESCRIPTION " cd where c.categories_id = '" $current_category_id "' and cd.categories_id = c.categories_id and cd.language_id = '" $languages_id "'"
  5.                     )->fetch_array(MYSQLI_ASSOC)
  6.                 );
  7.                 $heading_text_box $current_category['categories_heading_title'] ? $current_category['categories_heading_title'] : $current_category['categories_name'];
  8.                 $heading_text_h1 $current_category['categories_name_h1'];
  9.                 $cat_image 'categories/' $current_category['categories_image'];

Stack Trace

ErrorException
ErrorException:
file_put_contents(): Only -1 of 285 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/index.php:68)