octobercms/october · error · October\Rain\Exception\ApplicationException

Please specify a Plugin name to install.

Error message

Please specify a Plugin name to install.

What it means

Guard in the Updater widget's onInstallPlugin handler: the plugin code POST field is empty after trimming, so there is nothing to install. The user must enter the plugin identifier (e.g. Author.Plugin) in the install form.

Solutions

  1. Enter the plugin code (e.g. Vendor.Plugin) in the install form
  2. Paste the full plugin identifier from the marketplace
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/system/widgets/Updater.php:266 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21). Data as JSON: /api/errors/c01eba09f76a3601. Report an issue: GitHub.

Appendix: source

Thrown at modules/system/widgets/Updater.php:266

            ];

            $this->vars['updateSteps'] = $updateSteps;
        }
        catch (Exception $ex) {
            $this->handleError($ex);
        }

        return $this->makePartial('execute');
    }

    /**
     * onInstallPlugin validates the plugin code and execute the plugin installation
     */
    public function onInstallPlugin()
    {
        try {
            if (!$code = trim(post('code'))) {
                throw new ApplicationException(__('Please specify a Plugin name to install.'));
            }

            $updateSteps = [
                [
                    'code' => 'installPlugin',
                    'label' => __('Installing plugin: :name', ['name' => $code]),
                    'name' => $code
                ],
                [
                    'code' => 'completeInstall',
                    'label' => __('Finishing installation process'),
                    'type' => 'final'
                ]
            ];

            $this->vars['updateSteps'] = $updateSteps;

            return $this->makePartial('execute');

View on GitHub (pinned to b608633a7e)