Git Product home page Git Product logo

Comments (11)

Metallizzer avatar Metallizzer commented on July 19, 2024 1

@bennothommo thanks for answer.
As i said before, i disabled config debugbar.collectors.events and plugin seems work as expected.
Previous version had this settings to false. 86dd29f#diff-215adb4f17e6c57786bec362c538ccb8L120

from debugbar-plugin.

LukeTowers avatar LukeTowers commented on July 19, 2024 1

Solution should be simple, the change that breaks it on the develop branch of october was barryvdh/laravel-debugbar@31bb601.

Just add "barryvdh/laravel-debugbar": "3.2.9" to your project's composer.json file and it should work even on 3.1.0 of this plugin (as long as you also disable the events collector).

from debugbar-plugin.

bennothommo avatar bennothommo commented on July 19, 2024

@Metallizzer this plugin is targeting Laravel 6 at this point, so you will need to use the wip/laravel-6 branch of October CMS to be able to use the plugin to its full potential. You can also downgrade the plugin by removing it from your project and downloading version 3.0.1 of the plugin, but ensure that you only download this on a development copy of October CMS, as there's a security fix in 3.1.0 that you will be missing out on.

from debugbar-plugin.

LukeTowers avatar LukeTowers commented on July 19, 2024

Good to hear @Metallizzer. I would normally release an update disabling it by default again, but we're going to be releasing the L6 upgrade in a couple weeks so I don't think I'll bother with that.

from debugbar-plugin.

Rike-cz avatar Rike-cz commented on July 19, 2024

I had the same problem as @Metallizzer, so I downgraded to 3.0.1 and now AJAX requests fail with "Type error: Too few arguments to function Barryvdh\Debugbar\LaravelDebugbar::Barryvdh\Debugbar\{closure}(), 1 passed and exactly 2 expected" on line 377 of C:\...\vendor\barryvdh\laravel-debugbar\src\LaravelDebugbar.php
Is there plan to improve 3.0.1 or is deprecated?

from debugbar-plugin.

LukeTowers avatar LukeTowers commented on July 19, 2024

@Rike-cz no, we don't ever support old versions of plugins / core since it's an evergreen release cycle. Your problem is because of a change in the base library, can you paste what's on line 377? Also are you using composer or the marketplace?

from debugbar-plugin.

Rike-cz avatar Rike-cz commented on July 19, 2024

I am using composer as default. As far as I know, there is no possibility to install older version through marketplace. But update to 3.1 version was made via marketplace and rollbacked via composer.

$db->getEventDispatcher()->listen(
    'connection.*.beganTransaction',
    function ($event, $params) use ($queryCollector) { <----- this line is 377
        $queryCollector->collectTransactionEvent('Begin Transaction', $params[0]);
    }
);

from debugbar-plugin.

daslicht avatar daslicht commented on July 19, 2024

@LukeTowers is the Laravel6 branch fully working or are there still downsides?, please

[edit]
just installed october from the laravel 6 branch via cli
and then: composer require rainlab/debugbar-plugin
result 500

from debugbar-plugin.

LukeTowers avatar LukeTowers commented on July 19, 2024

@daslicht what's the error?

from debugbar-plugin.

daslicht avatar daslicht commented on July 19, 2024

I dont remember but i can reproduce it later if needed

from debugbar-plugin.

LukeTowers avatar LukeTowers commented on July 19, 2024

If you could do that I would appreciate that. We would prefer to fix any issues that come up now before we launch L6

from debugbar-plugin.

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.