GithubHelp home page GithubHelp logo

Drupal 8.6.x issue: TypeError: Argument 2 passed to Drupal\page_cache\StackMiddleware\PageCache::storeResponse() about lscache-drupal HOT 5 CLOSED

litespeedtech avatar litespeedtech commented on July 22, 2024
Drupal 8.6.x issue: TypeError: Argument 2 passed to Drupal\page_cache\StackMiddleware\PageCache::storeResponse()

from lscache-drupal.

Comments (5)

Bahlaouane-Hamza avatar Bahlaouane-Hamza commented on July 22, 2024 2

Try this patch

I don't know why it's not returning a response when it's not cacheable.
@usmannasir it is a missing case ?

litespeedtech-lscache-drupal-10--return-response-when-no-cache.txt

from lscache-drupal.

Sutry avatar Sutry commented on July 22, 2024 1

@Bahlaouane-Hamza Your patch helped me, thanks!

Try this patch
litespeedtech-lscache-drupal-10--return-response-when-no-cache.txt

from lscache-drupal.

usmannasir avatar usmannasir commented on July 22, 2024

It seems Drupal internal cache is in play, do you have LSCache module active as well? If so, does the error go away if you disable the LSCache plugin?

from lscache-drupal.

saschaeggi avatar saschaeggi commented on July 22, 2024

@usmannasir if I disable/uninstall the LSCache Module the issue is gone

from lscache-drupal.

lupupitkanen avatar lupupitkanen commented on July 22, 2024

The patch from @Bahlaouane-Hamza shouble be merged from our point of view. Our developers crafted a similar patch them selves to be able to get the module in production on a customer website. Not 100% sure if there any side effects though.

from lscache-drupal.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.