Skip to content
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

After upgrading to D10, css/js are broken on some pages #38

Open
rebelmusic opened this issue Dec 7, 2023 · 3 comments
Open

After upgrading to D10, css/js are broken on some pages #38

rebelmusic opened this issue Dec 7, 2023 · 3 comments

Comments

@rebelmusic
Copy link

I upgraded a site from D9 to D10.

This site was using Litespeed Drupal module (v 1.2) on D9.

On D10, I used v1.5.

End result: some pages worked and some did not.

I disabled all caching and css/js aggregation. Problem still persists.

For the pages that did work, the correct css/js files are accessed.

For the pages that didn't work, Drupal is trying to get the optimized css/js files but they do not exist (this is with css/jss disabled).

When I checked the Drupal logs I see:

Symfony\Component\HttpKernel\Exception\BadRequestHttpException: The theme must be passed as a query argument in Drupal\system\Controller\AssetControllerBase->deliver() (line 132 of /code/web/core/modules/system/src/Controller/AssetControllerBase.php).

When I uninstall the LiteSpeed Drupal module, everything works perfectly.

I don't know if this issue is related, but here it is anyway: https://www.drupal.org/project/drupal/issues/3393274

I have resorted to not using the Drupal Litespeed module until this is fixed.

Let me know if you need any additional info. I have the db backup on D10 with Litespeed enabled.

Just to note, I am not 100% sure if this is the fault of the Litespeed module or just my hosting. My hosting is using Litespeed webserver and was working perfectly using D9 and Litespeed v1.3.

It's difficult to test this locally. Locally, I am using ddev with nginx so I cannot replicate the problem locally.

@almadorx
Copy link

almadorx commented Mar 4, 2024

The same problem after upgrading from Drupal 9.5.11 to Drupal 10.2.3:

"Symfony\Component\HttpKernel\Exception\BadRequestHttpException: The theme must be passed as a query argument "

@rebelmusic
Copy link
Author

@almadorx Please see my comment here. This may or may not be a Drupal core issue.

https://www.drupal.org/project/drupal/issues/3377310#comment-15347503

For me, I ended up uninstalling this lscache module and I never got the error after that. But as I said, the root issue may not be because of this module.

I was in a crunch so I ended up moving on without the lscache module just so I can get the D10 site up and running.

I'd be interested to know what's the final solution though.

@rebelmusic
Copy link
Author

Are you using Cloudflare by chance? See this comment at the same page I mentioned:

https://www.drupal.org/project/drupal/issues/3377310#comment-15458919

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants