-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined constant MAIN_REQUEST #34
Comments
As far as I know that MASTER_REQUEST is deprecated. I tried a fresh Drupal setup with the cache plugin and it seems no issue. Do you have any test site to uninstall the cache plugin, and install the latest version for testing porpuses and see if there's any issue? |
I've installed v1.3 onto a newly setup Drupal 9 and encountered the same issue.
Line 109 of LiteSpeedCache.php is this line: if ($type === static::MAIN_REQUEST && $this->requestPolicy->check($request) === RequestPolicyInterface::ALLOW) { the const Drupal 9.5.10 has a dependency on "symfony/http-kernel": "^4.4". Which means the HttpKernelInterface in Drupal 9 is still using the old MASTER_REQUEST reference. Not MAIN_REQUEST. So the current v1.3 lscache-drupal only works with Drupal 10 with Symfony 5.3+. For backward compatibility purpose, I think the class |
Seems this has been taken care of in 310e4bd. Please create a new release with that as soon as possible. Thanks. |
After upgrading Litespeed from 1.2 to 1.3, I am getting WSOD. Upon checking the logs, I see this:
I can see from this latest commit that MAIN_REQUEST is being used instead of MASTER_REQUEST.
MASTER_REQUEST is required for HttpKernelInterface:
Would be great if this can be fixed asap as I cannot use Litespeed anymore. I'll need to revert to 1.2 for now.
The text was updated successfully, but these errors were encountered: