General error: 1615 Prepared statement needs to be re-prepared


#1

Okay, so all my Laravel based apps generate this error daily for hours.

SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared

When i ask for help from support, nothing never answer my question, never do anything.

Did a lot of research, because i thought something is wrong with my site, than i found out its a mysql bug

Im on shared hosting.

So if anybody had a similar problem, and was able to fix it please share the info


#2

I have had the same issue so they do know about it and choose to do nothing about it. We are on a VPS and using laravel as well. I think we are going to change hosting providers as this is bad service.


#3

The problem is actually because there are oversights with the coding of Larvel and lack of fault-tolerance and compatibility in some areas. Please take a look at this:

https://laracasts.com/discuss/channels/laravel/general-error-1615-prepared-statement-needs-to-be-re-prepared-selecting-mysql-view/replies/119726

This is the most common solution, it doesn’t mean it will work for you but I would suggest trying that first just to rule it out.