Replies: 1 comment 2 replies
-
After investigating various things, the problem occurred when using the following Session\Bag ($this->persistent).
And the error message "Serialization of 'Closure' is not allowed" means that Di is included in the array obtained by The sample application Invo plans to save the search conditions obtained through Criteria in the session bag and reuse them during pagination. It may have been possible in some version of PHP, but it seems that serialization has not been possible for at least 9 years, so I feel that it is necessary to review the usage or design of Criteria. Or is there some other solution? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to get the sample application Invo ready for v5.
After changing a few things, I was able to log in, but when I searched, a fatal error occurred.
It seems that session_write_close() is involved, but I can't find any place to use it in Invo's source, and I can't find a clue to solve it.
Can anyone give me some hints on what to do?
The attached image has xDebug enabled for debugging in the IDE, but the situation is the same even if it is disabled, just changing to a simple message.
Phalcon: 5.1.3
PHP: 8.1.13
Beta Was this translation helpful? Give feedback.
All reactions