1.x modules on Flute 2.0
Why a Flute 1.x module is disabled on Flute 2.0, what the site owner does with it and how the author adapts the module.
If a module turned off after the move to Flute 2.0 and the module list says "Needs adaptation for Flute 2.0" next to it, this page is for you. Modules for 1.x do not run on 2.0, so that old code cannot bring the site down. The site owner usually only needs to install a new version of the module, and the module author needs to fix the code following the list below.
What happens to a 1.x module
- An enabled 1.x module is disabled on the first request to the site after the move to 2.0 and stays disabled after a restart.
- You cannot enable, install or update it. The admin panel rejects an archive with such a module on upload.
- You can delete the module. Its own uninstall code does not run, because 1.x code may fail to load on the 2.0 core.
Flute treats a module as written for 1.x if dependencies.flute in module.json is empty, holds an unrecognized string, or holds a constraint that a 1.x version satisfies: >=1.0.0, *, ^1.5, plain 1.0.0.
For the site owner
Flute modules from the marketplace
Flute modules for 2.0 are released as version 3.0.0. It is higher than any 1.x version, so the admin panel offers them as an update to the old copies. Open AdminExtensionsModules and install the 2.0 version.
On 2.0 some 1.x modules became part of another module or of the engine, and some have no replacement: see the table below.
Modules by other authors
Ask the author to release a version for Flute 2.0 and send them a link to this page. Until it exists, the module stays disabled and the rest of the site works.
1.x modules and their 2.0 replacements
The table lists the modules that were open to everyone on the old marketplace. If the "On 2.0" column names a module, install it from the catalog. If it names an engine feature, there is nothing to install: the site already has it. How these modules worked on 1.x is described in the 1.x documentation.
| 1.x module | On 2.0 | What it covers |
|---|---|---|
| AcceptCookie | engine: Documents and cookies | the cookie banner and the log of visitor choices |
| Announcement | engine: Announcements | a bar or a pop-up on a schedule for the players you pick |
| API | engine: API access | the REST API, with keys and their permissions issued in the admin panel |
| Banners | engine: the "Banner with a button", "Slider" and "Image" Studio blocks, see Blocks and sections in Studio | banners and images with links on any page |
| BansManager | Punishments (Sentinel) | the ban list, punishments on servers and links to admin system databases |
| BrowserPush | Browser push (BrowserPush) | a new version of the same module |
| Chat | Chat (Chat) | a new version of the same module |
| Clans | Clans (Clans) | a new version of the same module |
| DiscordWebhooks | engine: Webhooks | site events go to a Discord channel as ready messages. The Discord module does the same through a bot with action buttons |
| FaceitInfo | Player check (SteamLookup) | the FACEIT level on the "Steam" tab of the profile and the player card |
| FAQ | engine: the "Questions and answers" Studio block, see Blocks and sections in Studio | questions with answers on any page |
| FluteUsers | no replacement | there is no public list of all users. Site search and the admin player list find a player, and each one has a /players/<id> page |
| GamecmsMigration | Move from another engine (Migration) | moves accounts, balance and Steam links from GameCMS, with a dry run and rollback |
| GiveCore | Server privileges (GiveCore) | a new version of the same module |
| Hero | engine: the "First screen" Studio block, see Blocks and sections in Studio | a heading, two buttons, numbers and the online count of a chosen server |
| MiniBalance | engine: the balance in the standard theme header | when top-ups are turned on, a signed-in player sees the balance in the header, and "+" opens the top-up |
| Modes | Server monitoring (Monitoring) | servers are grouped into modes with their own pages |
| Monitoring | Server monitoring (Monitoring) | a new version of the same module |
| News | News (News) | a new version of the same module |
| ProfilePosts | no replacement | 2.0 has no feed of posts in the player profile |
| Referral | Referral program (Referral) | a new version of the same module |
| Reviews | Reviews (Reviews) | a new version of the same module |
| RoleSync | Role sync (RoleSync) | a new version of the same module |
| Rules | Rules & Help (Rules) | a new version of the same module |
| Search | engine: site search | a search window over pages, menu sections and players, and modules add their own sources to it |
| Shop | Shop (Shop) | a new version of the same module |
| Skinchanger | Skins (Skinchanger) | a new version of the same module |
| Snow | New Year (NewYear) | snow on every page, fireworks at midnight and a daily gift to the balance |
| Stats | Statistics (Stats) | a new version of the same module |
| StatsFree | Statistics (Stats) | the leaderboard. The module reads a Levels Ranks database as is |
| SteamEnter | no replacement | a SteamID cannot be typed in by hand. Steam is linked by signing in through Steam |
| SteamFriends | Player check (SteamLookup) | Steam friends on the "Steam" tab of the profile |
| SteamInfo | Player check (SteamLookup) | the "Steam" tab in the profile and on the public player page |
| SteamProfile | Player check (SteamLookup) | the /lookup page shows any Steam profile by SteamID or link, even for someone who is not on the site |
| Tabs | engine: the "Tabs" Studio block, see Blocks and sections in Studio | content split into tabs on any page |
| WelcomePopup | engine: Announcements | an announcement shown as a pop-up with "How often" set to "Once". One window cannot hold several steps |
| Wiki | Rules & Help (Rules) | the "Help" tab with articles |
2.0 has no separate payment modules: the payment providers live in the Payment gateways module (PaymentGateways). Install it and connect the provider in the payments wizard.
| 1.x module | Provider in PaymentGateways |
|---|---|
| AifoPayment | AIFO |
| CSHost | no replacement |
| FoxyPay | FoxyPay |
| FreeKassa | FreeKassa |
| LavaPayment | Lava |
| Mercadopago | Mercado Pago |
| Monobank | monobank |
| PayPal | PayPal |
| PayPalych | PayPalych |
| RhmtPayment | Multicard |
| Stripe | Stripe |
| TBankPayment | T-Bank |
| Yookassa | YooKassa (ЮKassa) |
| Yoomoney | YooMoney (ЮMoney) |
For the module author
Adaptation order
Declare 2.0 compatibility
{
"version": "3.0.0",
"dependencies": {
"flute": "^2.0"
}
}dependencies.flute is checked as a Composer constraint; a bare version ("2.0.0") is read as >=2.0.0. While the constraint allows 1.x, Flute 2.0 does not load the module at all, and nothing shows up on a test site.
Replace what was removed in 2.0
See the table below. Install the module on a clean 2.0 site, open its pages and admin screens, run php flute cron:run and look at the modules log in storage/logs.
Raise the version
version must be higher than the last 1.x version: then sites with the old copy get an update offer. Data is migrated with Updater steps.
Go through the checklist
Before release on the modules page.
What breaks
The list comes from a trial run of 87 published 1.x modules on the 2.0 core. How the same classes and calls worked on 1.x is in the 1.x documentation.
| 1.x code | What happens on 2.0 | Replace with |
|---|---|---|
Flute\Core\Components\Table | class not found, and it will not come back | on a public page, Blade with <x-table>; in the admin panel, Flute\Admin\UI\Table\Table on a Page |
Yoyo components from the 1.x core (users-table, stats-compare) | component not found | WireSurface, registered with WireRegistry->lazy() |
1.x core views (components.modal and others) | view not found | kit components <x-*> |
Flute\Core\Support\AbstractController | class not found | Flute\Core\Support\BaseController |
Cycle\ORM\EntityManagerInterface from the container | not created | ActiveRecord entities and $entity->save() |
an entity whose name now exists in the core (announcement) | the database schema does not build | rename the module's entity or use the one in the core |
| a package the core used to install | class not found | list the package in the module's composer.json |
@extend of old theme classes (.blur-bg, .flex-center, .d-inline-flex) | the page opens, but the module's styles do not compile | theme tokens and kit classes |
The 2.0 core no longer installs ramsey/uuid, phpseclib, symfony/stopwatch, league/glide, jenssegers/agent, madesimple/php-arrays, hassankhan/config and rosell-dk/webp-convert.
What still works
The 2.0 core supports these 1.x calls through thin shims. Do not use them in new code.
| 1.x call | Replace with |
|---|---|
scheduler(), GO\Scheduler | Scheduler\TaskScheduler::add() |
DashboardService::addTab() | nothing: dashboard tabs are gone, the admin home page is built through HomeProviderRegistry |
GatewayInitializer::getAllGateways() | no direct replacement |
How a 2.0 module is built as a whole: Modules.