When I use dynamic data on an image or gallery module to set image sources based on custom fields, it causes a temporary issue on my website for about 3-5 minutes.
I’ve experimented with both ACF and Pods and tried different field types like image, file, and text fields (with just the image URL in text format).
After setting the dynamic data field in Bricks Builder to a custom field value, for example, {acf_image_1}, the page doesn’t publish. Following this, every page on the website gets stuck loading indefinitely, and after a few minutes, the ‘Error establishing a database connection’ screen appears. About a minute later, the website loads normally again.
This is the error I’m getting in my Apache error logs:
Got error ‘PHP message: PHP Warning: mysqli_query(): (HY000/2006): MySQL server has gone away in …/public_html/wp-includes/class-wpdb.php on line 2459’, referer: https://mydomain.com/template/product-singular/?bricks=run&brickspreview