This error is generated when InnoDB cannot write to its data files.
I have seen reports of this when the disk is full.
if the files or folder permission changed so you can’t write to them.
try deleting the folders var/cache and var/session.
Another report was when someone enabled innodb_force_recovery to a value greater than 0, not realizing that in recovery modes >0, InnoDB is effectively read-only.