You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like this is coming from your modules\site\eventHandlers\EntryEvents::isTgmSite() method, which is calling Craft::$app->request->getQueryParam(). However Craft::$app->request will return a craft\console\Request object for CLI requests, which doesn’t have a getQueryParam() method.
You can fix by ensuring it’s a web request before calling that method.
if (!Craft::$app->request->isConsoleRequest) {
$param = Craft::$app->request->getQueryParam('paramName');
// ...
}
What happened?
error on project-config/rebuild
Stacktrace:
Craft CMS version
4.9.4
PHP version
8.2
Operating system and version
Linux 5.15.5-0-virt
Database type and version
MariaDB 10.6.17
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.1-13)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: