Page MenuHomePhabricator

unserialize() error in LocalisationCache.php on MySQL
Closed, DeclinedPublic

Description

Seeing the following PHP notice after upgrading to 1.23.0rc0.

PHP Notice: unserialize(): Error at offset 0 of 8 bytes in .../w/includes/cache/LocalisationCache.php on line 1298

Always at that line number. The bytes changes:

Error at offset 0 of 27 bytes
Error at offset 0 of 11 bytes


Version: 1.23rc
Severity: normal

Details

Reference
bz64602

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:15 AM
bzimport set Reference to bz64602.
bzimport added a subscriber: Unknown Object (MLST).

This bug continues to happen during runJobs.php dozens of times throughout the day using 1.23.0-rc.1.

Please try rebuilding your cache with php maintenance/rebuildLocalisationCache.php --force

It is probably corrupted somehow.

So I alternatively have just tried "rm -rf *" in my cache directory which destroys all existing ones and they automatically get recreated. That does not help. The files get rebuilt and I continue to get errors in runJobs.

Should that also fix it if it is corrupted?

What database is used? Postgres?

Jamie: I assume this is still a problem in 1.23.2?

Tentatively closing for lack of updates or other reports of the same issue. Please do reopen if this is still happening with latest version of MediaWiki.