Skip to content

[3.0 & 2.1]: admin_info_files recovery #9539

Open

Description

@sbulen

Basic Information

@Sesquipedalian asked me to write this up, based on a lesson testing #9535

The core issue is that if admin_info_files is empty, you cannot recover the files by simply rerunning the Fetch SMF Files task.

Note that the admin_info_files structure itself contains info necessary to build the queries to reload its data column... So, no rows = no data...

This was designed as an extensible & configurable mechanism. We've only really used it for 4 files: current version info, latest version info, latest news & latest versions.

So... Is it worth it to be able to rebuild entirely with Fetch SMF Files???

Not sure, but writing this up as requested.

(TBH, I think I'd leave it be...)

Steps to reproduce

Expected result

No response

Actual result

No response

Version/Git revision

3.0 Alpha 4

Database Engine

All

Database Version

8.4.4

PHP Version

8.4.5

Logs

Additional Information

No response

Activity

  1. Sesquipedalian commented on Aug 20, 2026

    @Sesquipedalian
    Member

    Fixing this for 3.0 should be pretty simple. When the data is retrieved from the table, we can compare it to SMF\Db\Schema\v3_0\AdminInfoFiles::$initial_data. If something is missing, we can repopulate it on the fly. That wouldn't address missing data that was originally added by a mod, but it would at least allow us to recover if SMF's own data has gone missing.

    Fixing this for 2.1 would be harder, though. The initial data for that table is only recorded in the install and upgrade SQL files for 2.1, which are deleted after they've been used. I suppose we could hard code the expected data into the PHP files somewhere, but I don't like that idea at all. I'm more inclined to leave the issue unaddressed for 2.1.

  2. added theissue type on Aug 20, 2026
  3. added this to the 3.0 Alpha 5 milestone on Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions