9

There is an error message displayed when clicking on the Calendar icon when the Settings menu is active.
But there is no error message displayed when the "Profile" and "Activity" menus are enabled.

The error message in plain text:

An error occurred when loading days visited history.

Screenshot for reference:

Calendar error message

404 error found in the browser's Network tab:

Network tab

2
  • 1
    Reproduced, works on other tabs of the profile though.
    – Luuklag
    Commented Jul 4, 2022 at 11:28
  • 1
    This only happens in some of the subtabs under the Settings tab, not all. I'm able to open the calendar when in the "Edit profile" tab, for example.
    – Justin
    Commented Jul 4, 2022 at 13:15

2 Answers 2

3

This is fixed as of Feb 6th, 2023.

Calendar should now load on all settings pages.

2
7

I might have cracked the source of the bug, sadly I can't fix it, however this should make fixing it faster. (If I'm not wrong.)

So, when clicking the calendar icon, it sends request to https://meta.stackexchange.com/users/daily-site-access/[user-id], and replacing the user-id with the logged in user id.

However, to find the id, it looks for the active tab link and extracts the id from there. It's best seen in this screenshot:

tabs links with different user id format

As can be seen above, for the "Profile" and "Activity" tabs, the link format is /users/[user-id]/... however the "Settings" tab has a different format, and hence the calendar sends a request to https://meta.stackexchange.com/users/daily-site-access/undefined which naturally fails. (404)

1
  • 1
    Two userID URL bugs in recent memory one and two.
    – bad_coder
    Commented Jul 4, 2022 at 12:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .