Skip to Content
Modules

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 moduleOn 2.0What it covers
AcceptCookieengine: Documents and cookiesthe cookie banner and the log of visitor choices
Announcementengine: Announcementsa bar or a pop-up on a schedule for the players you pick
APIengine: API accessthe REST API, with keys and their permissions issued in the admin panel
Bannersengine: the "Banner with a button", "Slider" and "Image" Studio blocks, see Blocks and sections in Studiobanners and images with links on any page
BansManagerPunishments (Sentinel)the ban list, punishments on servers and links to admin system databases
BrowserPushBrowser push (BrowserPush)a new version of the same module
ChatChat (Chat)a new version of the same module
ClansClans (Clans)a new version of the same module
DiscordWebhooksengine: Webhookssite events go to a Discord channel as ready messages. The Discord module does the same through a bot with action buttons
FaceitInfoPlayer check (SteamLookup)the FACEIT level on the "Steam" tab of the profile and the player card
FAQengine: the "Questions and answers" Studio block, see Blocks and sections in Studioquestions with answers on any page
FluteUsersno replacementthere 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
GamecmsMigrationMove from another engine (Migration)moves accounts, balance and Steam links from GameCMS, with a dry run and rollback
GiveCoreServer privileges (GiveCore)a new version of the same module
Heroengine: the "First screen" Studio block, see Blocks and sections in Studioa heading, two buttons, numbers and the online count of a chosen server
MiniBalanceengine: the balance in the standard theme headerwhen top-ups are turned on, a signed-in player sees the balance in the header, and "+" opens the top-up
ModesServer monitoring (Monitoring)servers are grouped into modes with their own pages
MonitoringServer monitoring (Monitoring)a new version of the same module
NewsNews (News)a new version of the same module
ProfilePostsno replacement2.0 has no feed of posts in the player profile
ReferralReferral program (Referral)a new version of the same module
ReviewsReviews (Reviews)a new version of the same module
RoleSyncRole sync (RoleSync)a new version of the same module
RulesRules & Help (Rules)a new version of the same module
Searchengine: site searcha search window over pages, menu sections and players, and modules add their own sources to it
ShopShop (Shop)a new version of the same module
SkinchangerSkins (Skinchanger)a new version of the same module
SnowNew Year (NewYear)snow on every page, fireworks at midnight and a daily gift to the balance
StatsStatistics (Stats)a new version of the same module
StatsFreeStatistics (Stats)the leaderboard. The module reads a Levels Ranks database as is
SteamEnterno replacementa SteamID cannot be typed in by hand. Steam is linked by signing in through Steam
SteamFriendsPlayer check (SteamLookup)Steam friends on the "Steam" tab of the profile
SteamInfoPlayer check (SteamLookup)the "Steam" tab in the profile and on the public player page
SteamProfilePlayer check (SteamLookup)the /lookup page shows any Steam profile by SteamID or link, even for someone who is not on the site
Tabsengine: the "Tabs" Studio block, see Blocks and sections in Studiocontent split into tabs on any page
WelcomePopupengine: Announcementsan announcement shown as a pop-up with "How often" set to "Once". One window cannot hold several steps
WikiRules & 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 moduleProvider in PaymentGateways
AifoPaymentAIFO
CSHostno replacement
FoxyPayFoxyPay
FreeKassaFreeKassa
LavaPaymentLava
MercadopagoMercado Pago
Monobankmonobank
PayPalPayPal
PayPalychPayPalych
RhmtPaymentMulticard
StripeStripe
TBankPaymentT-Bank
YookassaYooKassa (ЮKassa)
YoomoneyYooMoney (ЮMoney)

For the module author

Adaptation order

Declare 2.0 compatibility

module.json
{
    "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 codeWhat happens on 2.0Replace with
Flute\Core\Components\Tableclass not found, and it will not come backon 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 foundWireSurface, registered with WireRegistry->lazy()
1.x core views (components.modal and others)view not foundkit components <x-*>
Flute\Core\Support\AbstractControllerclass not foundFlute\Core\Support\BaseController
Cycle\ORM\EntityManagerInterface from the containernot createdActiveRecord entities and $entity->save()
an entity whose name now exists in the core (announcement)the database schema does not buildrename the module's entity or use the one in the core
a package the core used to installclass not foundlist 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 compiletheme 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 callReplace with
scheduler(), GO\SchedulerScheduler\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.

On this page