Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

haizone's avatar

unserialize(): Error at offset 12267 of 12278 bytes

how i fix that error: this is from my log: i have a server with 8GB disk space and witout images in the server is only php and CSS JS files ang the Cache is in file in my server (i cant to move to redis i get an error)

use laravel 5.6

if i delete the Cache the site come to work

''' [2018-03-28 04:06:49] local.ERROR: file_put_contents(): Only 65536 of 83097 bytes written, possibly out of free disk space {"exception":"[object] (ErrorException(code: 0): file_put_contents(): Only 65536 of 83097 bytes written, possibly out of free disk space at /var/www/html//vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122) [stacktrace] #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/html/s...', 122, Array) #1 /var/www/html//vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/www/html/s...', '1523074009s:830...', 2) #2 /var/www/html//vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(65): Illuminate\Filesystem\Filesystem->put('/var/www/html/s...', '1523074009s:830...', true) #3 /var/www/html//vendor/laravel/framework/src/Illuminate/Cache/Repository.php(195): Illuminate\Cache\FileStore->put('spec-65421', '{"\\u05db\\u05dc\\...', 14400) #4 /var/www/html//vendor/laravel/framework/src/Illuminate/Cache/Repository.php(327): Illuminate\Cache\Repository->put('spec-65421', '{"\\u05db\\u05dc\\...', 14400) #5 /var/www/html//vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(304): Illuminate\Cac[2018-03-28 05:16:29] local.ERROR: unserialize(): Error at offset 12267 of 12278 bytes (View: /var/www/html//resources/views/layouts/app.blade.php) (View: /var/www/html//resources/views/layouts/app.blade.php) {"exception":"[object] (ErrorException(code: 0): unserialize(): Error at offset 12267 of 12278 bytes (View: /var/www/html//resources/views/layouts/app.blade.php) (View: /var/www/html//resources/views/layouts/app.blade.php) at /var/www/html//vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:187, ErrorException(code: 0): unserialize(): Error at offset 12267 of 12278 bytes (View: /var/www/html//resources/views/layouts/app.blade.php) at /var/www/html//vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:187, ErrorException(code: 0): unserialize(): Error at offset 12267 of 12278 bytes at /var/www/html//vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:187) [stacktrace] '''

thabks

0 likes
7 replies
haizone's avatar

my data folder in Cache in very big how i fix that?

mvd's avatar

If you mean the cache dir in your Laravel project, php artisan cache:clear

Or is it a cache folder outside your Laravel project?

haizone's avatar

@mvd inside my laravel

but if i delete i dont have a cache for my site and its save again all the page

i try to connect to radis in amazone but is didnt work in laravrl 5.5 its work but with 5.6 no u dont why?

ZeeshanAhmedOfficial's avatar

i got such error once, and all I did is just regenerated the app key again ( php artisan key:generate ) and it worked..

3 likes

Please or to participate in this conversation.