<p>Sounds like something just got corrupted when saving to <code>craft/storage/runtime/cache</code> and now PHP/Craft is having a problem reading the corrupted data from cache.</p>

<p>No idea how it happened, but clearing <code>craft/storage/runtime/cache</code> should resolve the issue for now.</p>

CC BY-SA 4.0
2019-05-20T09:09:12.773Z
Happened to me when my machine crashed (BSOD)
nitech
CC BY-SA 3.0
2017-10-18T17:42:50.820Z
2017-10-18T17:42:50.820Z
Brad Bell
<p>I have never gotten this before when using Craft cms this is the first. </p>

<p>When trying to load my site (locally), I am getting this message </p>

<p><strong>unserialize(): Error at offset 0 of 24 bytes</strong></p>

<p>I have attached some screenshots of what I am getting in more detail</p>

<p>What am I suppose to do to fix this?</p>

<p><a href="https://i.sstatic.net/X5lps.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/X5lps.png" alt="enter image description here"></a></p>

<p><a href="https://i.sstatic.net/ulzMH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ulzMH.png" alt="enter image description here"></a><a href="https://i.sstatic.net/m3R7b.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/m3R7b.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2017-10-17T17:49:10.657Z
Weird... try clearing out `craft/storage/runtime/cache` and see if that helps.
Brad Bell
CC BY-SA 3.0
2017-10-18T09:04:46.570Z
Thank you that worked. But do you have any idea why that happened?
rcho
CC BY-SA 3.0
2017-10-18T17:43:19.873Z
No idea... added an answer.  Maybe just keep an eye out to see if it's a recurring issue or a one-time problem.
Brad Bell
<cache>
Caching Issue "unserialize(): Error at offset 0 of 24 bytes"
# Caching Issue "unserialize(): Error at offset 0 of 24 bytes"

(Asked by: username_0 on 2017-10-17)

I have never gotten this before when using Craft cms this is the first.

When trying to load my site (locally), I am getting this message

**unserialize(): Error at offset 0 of 24 bytes**

I have attached some screenshots of what I am getting in more detail

What am I suppose to do to fix this?

[![enter image description here](https://i.sstatic.net/X5lps.png)](https://i.sstatic.net/X5lps.png)

[![enter image description here](https://i.sstatic.net/ulzMH.png)](https://i.sstatic.net/ulzMH.png)[![enter image description here](https://i.sstatic.net/m3R7b.png)](https://i.sstatic.net/m3R7b.png)

**Tags:** cache
> **Comments:**
> **username_1**: Weird... try clearing out `craft/storage/runtime/cache` and see if that helps.  
> **username_0**: Thank you that worked. But do you have any idea why that happened?  
> **username_1**: No idea... added an answer.  Maybe just keep an eye out to see if it's a recurring issue or a one-time problem.  

---

## 1 answers

### Answer by username_1 on 2017-10-18. Score: 2

Sounds like something just got corrupted when saving to `craft/storage/runtime/cache` and now PHP/Craft is having a problem reading the corrupted data from cache.

No idea how it happened, but clearing `craft/storage/runtime/cache` should resolve the issue for now.

> **Comments:**
> **username_2**: Happened to me when my machine crashed (BSOD)  

---

