<p>It seems to be the hosting limit. And there are two possible reasons:</p>
<ol>
<li><p>Timeout (SQL cannot execute your query because the query is taking too long)
— <code>wait_timeout</code></p>
</li>
<li><p>Packet too big for the server - <code>max_allowed_packet</code></p>
</li>
</ol>
<p>Ask the hosting to increase the values for these MySQL config params</p>

CC BY-SA 4.0
2022-10-23T16:41:39.497Z
Thanks, @RomanAvr! That was my thought as well, but I know that the three entries in question are fairly simple and are more or less the same complexity as siblings in their channel. The other point is that this all worked fine before - there have been no structural changes to the site, nothing really new other than new blog posts, so I still wonder what triggered this
Roi Agneta
CC BY-SA 4.0
2022-10-23T16:50:36.793Z
Maybe the hosting provider made changes (maybe when changing the version of MySQL or PHP).
Or have you added content for the matrix block, it has become larger, thereofore, the package size has increased?
RomanAvr
CC BY-SA 4.0
2022-10-23T09:50:17.043Z
2022-10-23T09:50:17.043Z
RomanAvr
<p>This is a really strange issue - everything had been working fine for many months then all of a sudden three specific entries in the same section started throwing PDO Exception (see screenshot below). All of the other entries in the section, which use the exact same Entry Types, work fine.</p>
<p>The error occurs when accessing a matrix field that is used throughout the site and works fine elsewhere. I am convinced it is not template related, but at a loss for troubleshooting ideas.</p>
<p>I contacted the hosting provider - Arcustech - but they were unable to provide any insights. Hoping one of you geniuses out there can help!</p>
<p>Running Craft 3.7.26 and using Freeform &amp; Amazon S3 plugins</p>
<p><a href="https://i.sstatic.net/hwLyZ.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/hwLyZ.jpg" alt="screenshot of error " /></a></p>

CC BY-SA 4.0
2022-10-22T19:18:19.087Z
Which DB engine are you using? MariaDb or MySQL?
Mats Mikkel Rummelhoff
CC BY-SA 4.0
2022-10-22T22:57:18.203Z
MySQL 8.0.30 - thanks for looking at this!
Roi Agneta
<matrix>
PDO Exception when accessing a matrix field
# PDO Exception when accessing a matrix field

(Asked by: username_0 on 2022-10-22)

This is a really strange issue - everything had been working fine for many months then all of a sudden three specific entries in the same section started throwing PDO Exception (see screenshot below). All of the other entries in the section, which use the exact same Entry Types, work fine.

The error occurs when accessing a matrix field that is used throughout the site and works fine elsewhere. I am convinced it is not template related, but at a loss for troubleshooting ideas.

I contacted the hosting provider - Arcustech - but they were unable to provide any insights. Hoping one of you geniuses out there can help!

Running Craft 3.7.26 and using Freeform & Amazon S3 plugins

[![screenshot of error ](https://i.sstatic.net/hwLyZ.jpg)](https://i.sstatic.net/hwLyZ.jpg)

**Tags:** matrix

> **Comments:**
> **username_1**: Which DB engine are you using? MariaDb or MySQL?  
> **username_0**: MySQL 8.0.30 - thanks for looking at this!  

---

## 1 answers

### Answer by username_2 on 2022-10-23. Score: 1

It seems to be the hosting limit. And there are two possible reasons:

1. Timeout (SQL cannot execute your query because the query is taking too long)
   — `wait_timeout`
2. Packet too big for the server - `max_allowed_packet`

Ask the hosting to increase the values for these MySQL config params

> **Comments:**
> **username_0**: Thanks, @username_2! That was my thought as well, but I know that the three entries in question are fairly simple and are more or less the same complexity as siblings in their channel. The other point is that this all worked fine before - there have been no structural changes to the site, nothing really new other than new blog posts, so I still wonder what triggered this  
> **username_2**: Maybe the hosting provider made changes (maybe when changing the version of MySQL or PHP). Or have you added content for the matrix block, it has become larger, thereofore, the package size has increased?  

---

