From 9a8d395cc84fc178a01f8d2f9ac0fc3413513256 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sun, 21 Jun 2026 00:35:58 -0500 Subject: [PATCH] fix(install): remove ALTER TABLE DEFAULT '' that breaks plugin installs The preflight ALTER TABLE set element column to DEFAULT '', causing Joomla to install sub-extension files to plugins/{group}/ root instead of plugins/{group}/{element}/. This overwrote services/provider.php across plugins, causing fatal class-not-found errors on every page. --- source/script.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/source/script.php b/source/script.php index 01ab584d..cc91d1bc 100644 --- a/source/script.php +++ b/source/script.php @@ -45,18 +45,6 @@ class Pkg_MokosuiteclientInstallerScript public function preflight($type, $parent) { $this->saveDownloadKey(); - - try - { - $db = Factory::getDbo(); - $db->setQuery("ALTER TABLE " . $db->quoteName('#__extensions') - . " MODIFY " . $db->quoteName('element') . " VARCHAR(100) NOT NULL DEFAULT ''"); - $db->execute(); - } - catch (\Throwable $e) - { - // Non-fatal — column may already have a default - } } public function postflight($type, $parent)