Description
Description
Error message:
PHP Parse error: syntax error, unexpected ''a:379:{s:10:"smfVersion";s:6:' (T_ENCAPSED_AND_WHITESPACE) in /home/blahblah/public_html/cache/data_e5def45bc64284f0d829317a2d0686be-SMF-modSettings.php on line 1odSettings.php on line 1
This error has been reported multiple times for both 2.0 & 2.1. For some users (such as myself) the error message is fleeting, and there is no apparent impact on users. For some forums, however, users are locked out of the forum until cache is cleared.
My system uses simple SMF file caching, level 1, with no OS or host-level caching.
I suspect that an incomplete read is occurring while the file is being written. Note the read is done via an "include" in 2.0 and 2.1 - same technique. I suspect that for some users, the incomplete file that was read gets cached at the OS or host level, causing users to get locked out.
Steps to reproduce
- This is intermittent & very infrequent... Difficult to reproduce.
Environment (complete as necessary)
- Version/Git revision: various
- Database Type: various
- Database Version: various
- PHP Version: various
Additional information/references
I also logged this issue in the 2.0 issue log.
Sample threads:
https://www.simplemachines.org/community/index.php?topic=569135.0
https://www.simplemachines.org/community/index.php?topic=563664.0
https://www.simplemachines.org/community/index.php?topic=567903.0
https://www.simplemachines.org/community/index.php?topic=567931.0