Code Monkey home page Code Monkey logo

Comments (19)

zaifastafa avatar zaifastafa commented on June 28, 2024 1

@shyim I cannot reproduce this either. I am using PHP 7.4.20 though.

from froshdevelopmenthelper.

riconeitzel avatar riconeitzel commented on June 28, 2024 1

This is pure TDD … "Ticket Driven Debugging" 😂

from froshdevelopmenthelper.

shyim avatar shyim commented on June 28, 2024 1

Thanks fixed with e50f6bb

I needed a promotion to reproduce it 😅

from froshdevelopmenthelper.

shyim avatar shyim commented on June 28, 2024

Hey,

I can't reproduce your issue. Is it still reproduceable at you?

from froshdevelopmenthelper.

rabauss avatar rabauss commented on June 28, 2024

I get the same error on shopware 6.4 with APP_ENV=dev:

request.CRITICAL: Uncaught PHP Exception Exception: "Serialization of 'Closure' is not allowed" 
at /xxxx/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php line 175

from froshdevelopmenthelper.

shyim avatar shyim commented on June 28, 2024

What did you done and is it there also without this extension?

from froshdevelopmenthelper.

rabauss avatar rabauss commented on June 28, 2024

No, if I disable the extension the error does not exist.
I also disabled all other plugins so it occurs even there with the default theme and nearly only demo data!

from froshdevelopmenthelper.

shyim avatar shyim commented on June 28, 2024

Idk tried now again I can't reproduce it 😓

from froshdevelopmenthelper.

rabauss avatar rabauss commented on June 28, 2024

With shopware 6.4.1.1 + symfony 5.2.10 + php 7.4.16 the problem still exists in dev environment
image

from froshdevelopmenthelper.

shyim avatar shyim commented on June 28, 2024

As you are able to reproduce @rabauss could you look into the template variables which one is causing this error?

from froshdevelopmenthelper.

riconeitzel avatar riconeitzel commented on June 28, 2024

I can also see it here … it has something to do with the profiler … the data array it tries to serialize is HUGE … somewhere in between there must be a closure which cannot be serialized.

from froshdevelopmenthelper.

shyim avatar shyim commented on June 28, 2024

Can you comment this out? https://github.com/FriendsOfShopware/FroshDevelopmentHelper/blob/0.3/src/Component/Profiler/TwigDataCollector.php#L29

Is the error source there?

from froshdevelopmenthelper.

riconeitzel avatar riconeitzel commented on June 28, 2024

yepp … that's it.

image

image

image

it looks like a recursion

image

from froshdevelopmenthelper.

shyim avatar shyim commented on June 28, 2024

why the fuck is the dependency container in the template vars. Under which key is it there?

from froshdevelopmenthelper.

riconeitzel avatar riconeitzel commented on June 28, 2024

image

$this
    ->twig
    ->renders["@Storefront/storefront/layout/header/actions/cart-widget.html.twig"]
        ["page"]
          ->cart
          ->data
          ->elements["Shopware\\Core\\Checkout\\Cart\\LineItem\\Group\\LineItemGroupBuilder"]
            ->registry
            ->packagers
            ->generator

from froshdevelopmenthelper.

riconeitzel avatar riconeitzel commented on June 28, 2024

I think it's coming from here: \Shopware\Storefront\Controller\CheckoutController::info()

from froshdevelopmenthelper.

shyim avatar shyim commented on June 28, 2024

Ahh. I will look tomorrow into it how it can be fixed in general . Thanks. That helps very much :D

from froshdevelopmenthelper.

riconeitzel avatar riconeitzel commented on June 28, 2024

Sure … if you like we can have a zoom session as well. Just ping me on slack or here! Good nite!

from froshdevelopmenthelper.

rabauss avatar rabauss commented on June 28, 2024

Could you please bump the version?

from froshdevelopmenthelper.

Related Issues (20)

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.