From 694a0e18f95a1272f7e3cc57c3f3b3941cf1baba Mon Sep 17 00:00:00 2001 From: ECYaz Date: Wed, 26 Aug 2026 19:49:55 -0400 Subject: [PATCH 1/2] Drop the length suffix on the MTEXT_UNI columns phpBB 4 rejects a length on MTEXT_UNI, so the migration throws in update_schema() before any table is created and enabling the extension fails. --- migrations/oberon_migration_400.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/oberon_migration_400.php b/migrations/oberon_migration_400.php index 4392105a4..2168b590e 100644 --- a/migrations/oberon_migration_400.php +++ b/migrations/oberon_migration_400.php @@ -56,7 +56,7 @@ public function update_schema() 'contribution_id' => ['UINT', null, 'auto_increment'], 'contribution_status' => ['TINT', 0], 'contribution_name' => ['VCHAR_UNI:255', ''], - 'contribution_description' => ['MTEXT_UNI:255', ''], + 'contribution_description' => ['MTEXT_UNI', ''], 'contribution_type' => ['TINT', 0], 'contribution_demo_link' => ['VCHAR_UNI:255', ''], 'contribution_validation_topic_id' => ['UINT', 0], @@ -78,7 +78,7 @@ public function update_schema() 'revision_name' => ['VCHAR_UNI:255', ''], 'revision_version' => ['VCHAR_UNI:255', ''], 'revision_phpbb_version' => ['VCHAR_UNI:255', ''], - 'revision_description' => ['MTEXT_UNI:255', ''], + 'revision_description' => ['MTEXT_UNI', ''], 'revision_attachment' => ['VCHAR_UNI:255', ''], 'revision_screenshots' => ['VCHAR_UNI:255', ''], 'user_id' => ['UINT', 0], From bc83d986619d2db76601e17d6e6f6e0ac1df2434 Mon Sep 17 00:00:00 2001 From: ECYaz Date: Wed, 26 Aug 2026 19:49:55 -0400 Subject: [PATCH 2/2] Add the int return type to the console command execute() methods Symfony Console 7 declares Command::execute() as returning int. phpBB builds every tagged command on each phpbbcli run, so without the return type every CLI call fatals once the extension is enabled. --- console/ai_validation.php | 2 +- console/queue_manager.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/console/ai_validation.php b/console/ai_validation.php index 3fbfa533d..5b3ac467b 100644 --- a/console/ai_validation.php +++ b/console/ai_validation.php @@ -39,7 +39,7 @@ protected function configure() ); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $queue_id = (int) $input->getArgument('queue_id'); $output->writeln('[execute] STARTING AI VALIDATION (v2)'); diff --git a/console/queue_manager.php b/console/queue_manager.php index ceccae779..835e5ec67 100644 --- a/console/queue_manager.php +++ b/console/queue_manager.php @@ -35,7 +35,7 @@ protected function configure() ->setHelp('Manage the Customisation DB queue'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln('Begin queue manager...'); $this->process($input, $output);