octobercms/october · error · October\Rain\Exception\SystemException
Missing code
Error message
Missing code
What it means
SystemException from the Changelog widget's onLoadPluginChangelog AJAX handler: the request was posted without a 'code' POST variable, so the widget has no plugin identifier to look up. It is a generic missing-parameter guard meaning the AJAX request reached the handler without the plugin code the client was expected to send.
Solutions
- Send the plugin code with the request
- Trigger the handler from a UI element that carries the plugin code
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/system/widgets/Changelog.php:76 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/2332864f5a5bd80a.
Report an issue: GitHub.
Appendix: source
Thrown at modules/system/widgets/Changelog.php:76
}
$this->vars['changelog'] = $changelog;
}
catch (Exception $ex) {
$this->handleError($ex);
}
return $this->makePartial('system_list');
}
/**
* onLoadPluginChangelog displays plugin changelog information
*/
public function onLoadPluginChangelog()
{
try {
if (!$code = post('code')) {
throw new SystemException('Missing code');
}
$manager = PluginManager::instance();
$plugin = $manager->findByIdentifier($code);
$path = $manager->getPluginPath($plugin);
$changelog = null;
if ($path) {
$changelog = (array) $this->getPluginVersionFile($path, 'updates/version.yaml');
}
$this->vars['changelog'] = $changelog;
}
catch (Exception $ex) {
$this->handleError($ex);
}
return $this->makePartial('plugin_list');View on GitHub (pinned to b608633a7e)