Page MenuHomePhabricator

ValueError: setcookie(): "expires" option cannot have a year greater than 9999
Closed, ResolvedPublic0 Estimated Story PointsPRODUCTION ERROR

Description

Error
  • service.version: 1.46.0-wmf.1
  • timestamp: 2025-11-13T08:18:58.620Z
  • labels.phpversion: 8.3.26
  • trace.id: 30d83ff5-e179-4897-9d1b-6ae76d3db5ac
  • Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url}   ValueError: setcookie(): "expires" option cannot have a year greater than 9999
Impact

Low

Notes

This is on old 1.46.0-wmf.1 but as the involved code has not seen changes lately I assume that this is still a valid issue.

Details

Request URL
https://en.wikipedia.org/w/index.php?category=WikipediaAsianMonth2025Global&duration=*&reason=close&title=Special:HideBanners
Related Changes in Gerrit:

Event Timeline

Aklapper changed Request URL from https://en.wikipedia.org/w/index.php?category=*&duration=*&reason=*&title=* to https://en.wikipedia.org/w/index.php?category=WikipediaAsianMonth2025Global&duration=*&reason=close&title=Special:HideBanners.

In Logstash we can see that there is a nonsensical …&duration=6048009776799 URL parameter passed to the special page. I can't tell what this value is supposed to represent or where it comes from. It's neither a Unix timestamp nor a relative duration. It would be great to find the source and fix it.

Change #1206827 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/CentralNotice@master] Hard-code upper limit for duration of 10 years

https://gerrit.wikimedia.org/r/1206827

Change #1206827 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@master] Hard-code upper limit for duration of 10 years

https://gerrit.wikimedia.org/r/1206827

XenoRyet set the point value for this task to 0.