rainlab / debugbar-plugin Goto Github PK
View Code? Open in Web Editor NEWIntegrates PHP Debugbar with October CMS
License: MIT License
Integrates PHP Debugbar with October CMS
License: MIT License
Hi,
I've installed debugbar from the Marketplace but it doesn't appear.
I can see it on the stacktrace when an error is logged but it isn't on the frontend nor backend.
Any idea?
Regards
Hi Scott,
Your plugin requires Barry's debugbar, which in turn has an unbound dependency on illuminate/support and ends up pulling illuminate/support 5.1. Since Otwell doesn't really care about semver 5.1 Collection is incompatible with 5.0 Collection, thus ends up crashing everything. Therefore please add explicit dependency in your composer.json to use:
"illuminate/support": "5.0.*",
since this is version OctoberCMS is locked into.
Cheers.
Sometimes I need to enable the debug mode in production to track some errors, but I dont want my clients to see the debug bar in the frontend.
Wouldn't it be a good idea to only show it for logged in backend users?
Right now performance / timing tracking on events uses the difference between when the last event was fired to when the current event was fired to say how long a given event took to process. This is obviously wildly inaccurate and unhelpful, so it would be better if we could instead implement our own event data collector that actually tracked how long a given event was taking to execute by hooking one wildcard listener as the highest priority listener (with PHP_INT_MAX) and another wildcard listener as the lowest priority listener (with PHP_INT_MIN) and then recording the timing difference between those two listeners being fired.
This would require a change being made to the October core as currently wildcard listeners don't support subscribing to events with priority, and even if they did you'd still have to ensure that they were added to the priority stream of the non-wildcard listeners correctly.
Something roughly like the following:
$events->listen('*', [$this, 'onWildcardEventStart'], PHP_INT_MAX);
$events->listen('*', [$this, 'onWildcardEventEnd'], PHP_INT_MIN);
}
protected $timings = [];
public function onWildCardEventStart($name = null, $data = [])
{
if (empty($name)) { return; }
$this->timings[$name] = microtime(true);
}
public function onWildCardEventEnd($name = null, $data = [])
{
if (empty($name)) { return; }
$this->addMeasure($name, $this->timings[$name], microtime(true), $this->prepareParams($data));
}
The debugbar code is appended to exported file as well...
It should check the response output format before appending the debugbar code.
I install plugin by command line
php artisan plugin:install bedard.debugbar
And i got the following error
PHP Fatal error: Class Illuminate\Cache\FileStore contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Illuminate\Contracts\Cache\Store::many, Illuminate\Contracts\Cache\Store::putMany) in /Users/HFY/www/october/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php on line 250
PHP Fatal error: Cannot instantiate abstract class Illuminate\Cache\FileStore in /Users/HFY/www/october/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php on line 151
After i delete vendor of plugin directory, it works , so i hope it can be installed by composer
When using the latest Barryvdh\Debugbar (version 3.10.4) I get the following error:
Class "Barryvdh\Debugbar\DataCollector\ModelsCollector" not found
Downgrading to 3.10.2 temporarily fixed the issue.
I'm using Ubuntu with Docker to work with OctoberCMS, using this image.
After create the container I follow the steps on the Readme with the following result:
$ sudo docker exec octobercms_web_1 composer update
1/13: http://repo.packagist.org/p/provider-archived$5c1908fde45bc1e079038576bffd87719ff95f6527dee583897cd4b324d9fe1e.json
2/13: http://repo.packagist.org/p/provider-2020-04$ef737c3de718fa98deb29654a0c52ea9b180e4fdf4a25ba22f292dae8b2f22c1.json
3/13: http://repo.packagist.org/p/provider-2019-10$7568d1c39206f33251365b82b7134f502ffee570631941c9cb775f259603aab5.json
4/13: http://repo.packagist.org/p/provider-latest$548015ce5ac59f6ec7c2a8bf982782ac3226e5d2fe33ca56e23a7a791d86dd71.json
5/13: http://repo.packagist.org/p/provider-2019-07$e59eba9f1a57e928f08e2409d9a543a937531c13ec7317ad86a20a2d3546f9e1.json
6/13: http://repo.packagist.org/p/provider-2016$49676b5257a094cd2052e0c0ba81cd4d66464f7dad1eb120889fcf2ba6511093.json
7/13: http://repo.packagist.org/p/provider-2020-01$bc44ec901584f77b837f47a12c3d7c464cb70543b3d92b9fea822b234afda790.json
8/13: http://repo.packagist.org/p/provider-2019$e43f35fefb76a3b0aa71f888106a4809121ec49d20c3db9c672cd56705a4c463.json
9/13: http://repo.packagist.org/p/provider-2015$d92c2535980f04ed2ca88296ab4ea9c8101e7b46250d8ac95e09435da2095676.json
10/13: http://repo.packagist.org/p/provider-2014$c8b3b14ed88b7d84e62d615be1c1d7527b14183d339941da66717adeebb5037e.json
11/13: http://repo.packagist.org/p/provider-2017$8798d76d15734215ece6ed74ca73a0ee812d1d911561ea84457e769e67ef8d1f.json
12/13: http://repo.packagist.org/p/provider-2013$8f2b738de0bff98323c1b7190f9b4aafa7ef7830c32b90e89c20ada893fed5b0.json
13/13: http://repo.packagist.org/p/provider-2018$7c4045a8b768ddf2107bacc914a63b1f78f1b70fead48660d761959ade04f1b3.json
Finished: success: 13, skipped: 0, failure: 0, total: 13
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- wikimedia/composer-merge-plugin dev-master requires php >=7.2.0 -> your PHP version (7.2.27) overridden by "config.platform.php" version (7.0.8) does not satisfy that requirement.
- wikimedia/composer-merge-plugin dev-master requires php >=7.2.0 -> your PHP version (7.2.27) overridden by "config.platform.php" version (7.0.8) does not satisfy that requirement.
- Installation request for wikimedia/composer-merge-plugin dev-master -> satisfiable by wikimedia/composer-merge-plugin[dev-master].
$ sudo docker exec octobercms_web_1 composer require rainlab/debugbar
1/3: http://repo.packagist.org/p/provider-latest$191746a3b21d50c2b808e2afcc46556f831af144ab5f6dac88b039ffb1fcc4c8.json
2/3: http://repo.packagist.org/p/provider-2018$d0dc2ad3b6ecdcca7d195a7122b7bbf690456254e11056eec89b3b3161059c1e.json
3/3: http://repo.packagist.org/p/provider-2020-01$13971cb365a1914b43bec6da67cdf76888fd35258a73c6fb06b972a37d5c4930.json
Finished: success: 3, skipped: 0, failure: 0, total: 3
Using version ^3.0 for rainlab/debugbar
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
1/3: https://codeload.github.com/rainlab/debugbar-plugin/legacy.zip/a37499b3ac8749c026ccef5aca176faae7b13f13
2/3: https://codeload.github.com/barryvdh/laravel-debugbar/legacy.zip/67ced7c6a7451b8bb079d92a57d75f1111f3342d
3/3: https://codeload.github.com/maximebf/php-debugbar/legacy.zip/6c4277f6117e4864966c9cb58fb835cee8c74a1e
Finished: success: 3, skipped: 0, failure: 0, total: 3
Package operations: 3 installs, 0 updates, 0 removals
- Installing maximebf/debugbar (v1.15.1): Loading from cache
- Installing barryvdh/laravel-debugbar (v3.3.1): Loading from cache
- Installing rainlab/debugbar (3.0.0): Loading from cache
maximebf/debugbar suggests installing predis/predis (Redis storage)
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package jakub-onderka/php-parallel-lint is abandoned, you should avoid using it. Use php-parallel-lint/php-parallel-lint instead.
Package leafo/scssphp is abandoned, you should avoid using it. Use scssphp/scssphp instead.
Package mtdowling/cron-expression is abandoned, you should avoid using it. Use dragonmantank/cron-expression instead.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> php artisan october:util set build
-
*** October sets build: 465
-
Ping? Pong!
-
Ping? Pong!
-
> php artisan package:discover
Discovered Package: jenssegers/date
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Package manifest generated successfully.
As a result OctoberCMS is broken: nothing is shown on the frontend nor the backend, just a blank page.
The log from the container shows:
[Thu Apr 16 13:11:48.691816 2020] [php7:error] [pid 20] [client 172.20.0.1:42846] PHP Fatal error: Uncaught ReflectionException: Class view does not exist in /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php:752\nStack trace:\n#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(752): ReflectionClass->__construct('view')\n#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build('view')\n#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('view', Array)\n#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('view', Array)\n#4 /var/www/html/vendor/october/rain/src/Foundation/Application.php(158): Illuminate\\Foundation\\Application->make('view')\n#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(110): October\\Rain\\Foundation\\Application->make('view', Array)\n#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundat in /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 752
[Thu Apr 16 13:11:48.692776 2020] [php7:error] [pid 20] [client 172.20.0.1:42846] PHP Fatal error: Uncaught ReflectionException: Class view does not exist in /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php:752\nStack trace:\n#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(752): ReflectionClass->__construct('view')\n#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build('view')\n#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('view', Array)\n#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('view', Array)\n#4 /var/www/html/vendor/october/rain/src/Foundation/Application.php(158): Illuminate\\Foundation\\Application->make('view')\n#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(110): October\\Rain\\Foundation\\Application->make('view', Array)\n#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundat in /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 752
172.20.0.1 - - [16/Apr/2020:13:11:48 +0200] "GET / HTTP/1.1" 500 211 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0"
Any idea?
Hello,
Just upgraded the debugbar from 2.0.0 to 3.1.0, it's working smoothly except I am not able to check API requests
Before I could just make the API call with Postman, go to the Folder icon in the debugbar and choose the latest request.
It worked out of box. Now those requests do not appear.
Am I missing something? Or is this something with barryvdh/laravel-debugbar ~3.0?
rainlab/debugbar-plugin: 3.1.0
octobercms: build 471
laravel: v6.20.13
php: 7.2.25
some configs:
'debug' => true
'allow_public_access' => true
Thanks
Hi,
i installed the debugbar to my project, while installing I got an error.
I tried refreshing teh page now I just get 500 server error?
I have noticed teh the file:
storage/framework/classes is malformed, teh arry was no longer closed
Is there a known solution for this please?
syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'
plugins/bedard/debugbar/vendor/barryvdh/laravel-debugbar/src/LaravelDebugbar.php line 372
TYPE
Undefined
EXCEPTION
Symfony\Component\Debug\Exception\FatalErrorException
);
}
}
if ($this->shouldCollect('gate', false)) {
try {
$gateCollector = $this->app->make(GateCollector::class);
$this->addCollector($gateCollector);
} catch (\Exception $e){
// No Gate collector
}
}
The debugbar is appearing on all backend and frontend pages regardless if you're a signed in user, signed in admin or guest introducing a huge security flaw.
It should only appear on backend pages with an admin signed in.
October build 361
Browser Google Chrome
Hey,
I've started using OctoberCMS for a client (existing project) and I've installed Debugbar (obviously). Some things maybe we can work together on:
cms.page.renderContent
and cms.page.renderPartial
perhaps, to at least show the name?cms.page.display
event (eg layout etc)The controller doesn't give me much useful information though, mostly Cms\Classes\CmsController@run
I'll see if I can make some prototype, but if there is anything you need from me to change upstream to make it easier to extend, just let me know!
Using a fresh copy of the oc installer, setting up from the oc project that I had added the debugbar plugin to. Everything goes smoothly, then fails when trying to create the admin.
The ui throws this error - A non well formed numeric value encountered
The installer log has this:
[2016/05/15 12:17:01] Install step: createAdmin
[2016/05/15 05:17:01] Handler error (onInstallStep): A non well formed numeric value encountered
[2016/05/15 05:17:01] Trace log:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'A non well form...', '/var/www/html/o...', 332, Array)
#1 /var/www/html/october/plugins/bedard/debugbar/vendor/barryvdh/laravel-debugbar/src/LaravelDebugbar.php(332): Exception->__construct('Cannot add Mail...', '42S02', Object(Illuminate\Database\QueryException))
#2 /var/www/html/october/plugins/bedard/debugbar/vendor/barryvdh/laravel-debugbar/src/ServiceProvider.php(111): Barryvdh\Debugbar\LaravelDebugbar->boot()
#3 [internal function]: Barryvdh\Debugbar\ServiceProvider->boot()
#4 /var/www/html/october/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array)
#5 /var/www/html/october/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(703): Illuminate\Container\Container->call(Array)
#6 /var/www/html/october/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(685): Illuminate\Foundation\Application->bootProvider(Object(Barryvdh\Debugbar\ServiceProvider))
#7 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(Object(Barryvdh\Debugbar\ServiceProvider), 20)
#8 /var/www/html/october/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(686): array_walk(Array, Object(Closure))
#9 /var/www/html/october/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(15): Illuminate\Foundation\Application->boot()
#10 /var/www/html/october/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(183): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(October\Rain\Foundation\Application))
#11 /var/www/html/october/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(195): Illuminate\Foundation\Application->bootstrapWith(Array)
#12 /var/www/html/october/install_files/php/Installer.php(674): Illuminate\Foundation\Console\Kernel->bootstrap()
#13 /var/www/html/october/install_files/php/Installer.php(503): Installer->bootFramework()
#14 /var/www/html/october/install_files/php/Installer.php(379): Installer->createAdminAccount()
#15 /var/www/html/october/install_files/php/Installer.php(48): Installer->onInstallStep()
#16 /var/www/html/october/install_files/php/boot.php(74): Installer->__construct()
#17 /var/www/html/october/install.php(1): include('/var/www/html/o...')
#18 {main}
Once I remove this plugin from the project and try again (with a fresh file and db setup), it works without a hitch.
The models collector for barryvdh/laravel-debugbar
does not seem to work with October.
[Wed May 6 12:59:41 2020] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Barryvdh\Debugbar\DataCollector\ModelsCollector::Barryvdh\Debugbar\DataCollector\{closure}(), 1 passed and exactly 2 expected in /home/ben/Projects/Personal/october/vendor/barryvdh/laravel-debugbar/src/DataCollector/ModelsCollector.php:23
It seems to stem from an incompatibility with how our wildcard events are passed to listeners. Release 3.3.2 of barryvdh/laravel-debugbar
made the models collector enabled by default (don't worry @LukeTowers, it wasn't your PR :P).
You can replicate this by changing collectors.models
to true
in plugins/rainlab/debugbar/config/config.php
.
Either from backend plugin manager or from artisan command, the plugin can't be installed!?
Got this error in command install: The plugin is hidden and cannot be installed
Here is the exception log file when I set the 'debugAjax' => true
[2021-01-30 18:36:04] local.ERROR: ReflectionException: Class debugbar does not exist in E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php:803
Stack trace:
#0 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(803): ReflectionClass->__construct('debugbar')
#1 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('debugbar')
#2 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('debugbar', Array, true)
#3 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('debugbar', Array)
#4 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('debugbar', Array)
#5 E:\www\test\vendor\october\rain\src\Foundation\Application.php(293): Illuminate\Foundation\Application->make('debugbar')
#6 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(1245): October\Rain\Foundation\Application->make('debugbar')
#7 E:\www\test\plugins\rainlab\debugbar\middleware\InterpretsAjaxExceptions.php(42): Illuminate\Container\Container->offsetGet('debugbar')
#8 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): RainLab\Debugbar\Middleware\InterpretsAjaxExceptions->handle(Object(Illuminate\Http\Request), Object(Closure))
#9 E:\www\test\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#10 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#11 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#12 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#13 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#14 E:\www\test\index.php(45): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#15 {main}
Next Illuminate\Contracts\Container\BindingResolutionException: Target class [debugbar] does not exist. in E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php:805
Stack trace:
#0 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('debugbar')
#1 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('debugbar', Array, true)
#2 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('debugbar', Array)
#3 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('debugbar', Array)
#4 E:\www\test\vendor\october\rain\src\Foundation\Application.php(293): Illuminate\Foundation\Application->make('debugbar')
#5 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(1245): October\Rain\Foundation\Application->make('debugbar')
#6 E:\www\test\plugins\rainlab\debugbar\middleware\InterpretsAjaxExceptions.php(42): Illuminate\Container\Container->offsetGet('debugbar')
#7 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): RainLab\Debugbar\Middleware\InterpretsAjaxExceptions->handle(Object(Illuminate\Http\Request), Object(Closure))
#8 E:\www\test\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#9 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#10 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#11 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#12 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#13 E:\www\test\index.php(45): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#14 {main}
[2021-01-30 18:36:04] local.ERROR: ReflectionException: Class path.public does not exist in E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php:803
Stack trace:
#0 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(803): ReflectionClass->__construct('path.public')
#1 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('path.public')
#2 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('path.public', Array, true)
#3 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('path.public', Array)
#4 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('path.public', Array)
#5 E:\www\test\vendor\october\rain\src\Foundation\Application.php(293): Illuminate\Foundation\Application->make('path.public')
#6 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(629): October\Rain\Foundation\Application->make('path.public')
#7 E:\www\test\vendor\october\rain\src\Filesystem\Filesystem.php(99): public_path()
#8 E:\www\test\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): October\Rain\Filesystem\Filesystem->localToPublic('E:\\www\\test\\...')
#9 E:\www\test\vendor\october\rain\src\Exception\ExceptionBase.php(233): Illuminate\Support\Facades\Facade::__callStatic('localToPublic', Array)
#10 E:\www\test\modules\system\views\exception.php(49): October\Rain\Exception\ExceptionBase->getCallStack()
#11 E:\www\test\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(43): include('E:\\www\\test\\...')
#12 E:\www\test\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(21): Illuminate\View\Engines\PhpEngine->evaluatePath('E:\\www\\test/...', Array)
#13 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(143): Illuminate\View\Engines\PhpEngine->get('E:\\www\\test/...', Array)
#14 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(126): Illuminate\View\View->getContents()
#15 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(91): Illuminate\View\View->renderContents()
#16 E:\www\test\vendor\laravel\framework\src\Illuminate\Http\Response.php(42): Illuminate\View\View->render()
#17 E:\www\test\vendor\symfony\http-foundation\Response.php(205): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#18 E:\www\test\vendor\laravel\framework\src\Illuminate\Routing\ResponseFactory.php(55): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View), 500, Array)
#19 E:\www\test\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): Illuminate\Routing\ResponseFactory->make(Object(Illuminate\View\View), 500)
#20 E:\www\test\vendor\october\rain\src\Foundation\Exception\Handler.php(107): Illuminate\Support\Facades\Facade::__callStatic('make', Array)
#21 E:\www\test\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(51): October\Rain\Foundation\Exception\Handler->render(Object(Illuminate\Http\Request), Object(Illuminate\Contracts\Container\BindingResolutionException))
#22 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(176): Illuminate\Routing\Pipeline->handleException(Object(Illuminate\Http\Request), Object(Illuminate\Contracts\Container\BindingResolutionException))
#23 E:\www\test\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#25 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#27 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#28 E:\www\test\index.php(45): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#29 {main}
Next Illuminate\Contracts\Container\BindingResolutionException: Target class [path.public] does not exist. in E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php:805
Stack trace:
#0 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('path.public')
#1 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('path.public', Array, true)
#2 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('path.public', Array)
#3 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('path.public', Array)
#4 E:\www\test\vendor\october\rain\src\Foundation\Application.php(293): Illuminate\Foundation\Application->make('path.public')
#5 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(629): October\Rain\Foundation\Application->make('path.public')
#6 E:\www\test\vendor\october\rain\src\Filesystem\Filesystem.php(99): public_path()
#7 E:\www\test\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): October\Rain\Filesystem\Filesystem->localToPublic('E:\\www\\test\\...')
#8 E:\www\test\vendor\october\rain\src\Exception\ExceptionBase.php(233): Illuminate\Support\Facades\Facade::__callStatic('localToPublic', Array)
#9 E:\www\test\modules\system\views\exception.php(49): October\Rain\Exception\ExceptionBase->getCallStack()
#10 E:\www\test\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(43): include('E:\\www\\test\\...')
#11 E:\www\test\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(21): Illuminate\View\Engines\PhpEngine->evaluatePath('E:\\www\\test/...', Array)
#12 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(143): Illuminate\View\Engines\PhpEngine->get('E:\\www\\test/...', Array)
#13 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(126): Illuminate\View\View->getContents()
#14 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(91): Illuminate\View\View->renderContents()
#15 E:\www\test\vendor\laravel\framework\src\Illuminate\Http\Response.php(42): Illuminate\View\View->render()
#16 E:\www\test\vendor\symfony\http-foundation\Response.php(205): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#17 E:\www\test\vendor\laravel\framework\src\Illuminate\Routing\ResponseFactory.php(55): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View), 500, Array)
#18 E:\www\test\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): Illuminate\Routing\ResponseFactory->make(Object(Illuminate\View\View), 500)
#19 E:\www\test\vendor\october\rain\src\Foundation\Exception\Handler.php(107): Illuminate\Support\Facades\Facade::__callStatic('make', Array)
#20 E:\www\test\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(51): October\Rain\Foundation\Exception\Handler->render(Object(Illuminate\Http\Request), Object(Illuminate\Contracts\Container\BindingResolutionException))
#21 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(176): Illuminate\Routing\Pipeline->handleException(Object(Illuminate\Http\Request), Object(Illuminate\Contracts\Container\BindingResolutionException))
#22 E:\www\test\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#23 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#24 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#26 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#27 E:\www\test\index.php(45): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#28 {main}
[2021-01-30 18:36:04] local.ERROR: ReflectionException: Class path.public does not exist in E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php:803
Stack trace:
#0 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(803): ReflectionClass->__construct('path.public')
#1 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('path.public')
#2 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('path.public', Array, true)
#3 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('path.public', Array)
#4 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('path.public', Array)
#5 E:\www\test\vendor\october\rain\src\Foundation\Application.php(293): Illuminate\Foundation\Application->make('path.public')
#6 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(629): October\Rain\Foundation\Application->make('path.public')
#7 E:\www\test\vendor\october\rain\src\Filesystem\Filesystem.php(99): public_path()
#8 E:\www\test\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): October\Rain\Filesystem\Filesystem->localToPublic('E:\\www\\test\\...')
#9 E:\www\test\vendor\october\rain\src\Exception\ExceptionBase.php(233): Illuminate\Support\Facades\Facade::__callStatic('localToPublic', Array)
#10 E:\www\test\modules\system\views\exception.php(49): October\Rain\Exception\ExceptionBase->getCallStack()
#11 E:\www\test\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(43): include('E:\\www\\test\\...')
#12 E:\www\test\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(21): Illuminate\View\Engines\PhpEngine->evaluatePath('E:\\www\\test/...', Array)
#13 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(143): Illuminate\View\Engines\PhpEngine->get('E:\\www\\test/...', Array)
#14 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(126): Illuminate\View\View->getContents()
#15 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(91): Illuminate\View\View->renderContents()
#16 E:\www\test\vendor\laravel\framework\src\Illuminate\Http\Response.php(42): Illuminate\View\View->render()
#17 E:\www\test\vendor\symfony\http-foundation\Response.php(205): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#18 E:\www\test\vendor\laravel\framework\src\Illuminate\Routing\ResponseFactory.php(55): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View), 500, Array)
#19 E:\www\test\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): Illuminate\Routing\ResponseFactory->make(Object(Illuminate\View\View), 500)
#20 E:\www\test\vendor\october\rain\src\Foundation\Exception\Handler.php(107): Illuminate\Support\Facades\Facade::__callStatic('make', Array)
#21 E:\www\test\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(101): October\Rain\Foundation\Exception\Handler->render(Object(Illuminate\Http\Request), Object(Illuminate\Contracts\Container\BindingResolutionException))
#22 E:\www\test\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(69): Barryvdh\Debugbar\Middleware\InjectDebugbar->handleException(Object(Illuminate\Http\Request), Object(Illuminate\Contracts\Container\BindingResolutionException))
#23 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#24 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#26 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#27 E:\www\test\index.php(45): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#28 {main}
Next Illuminate\Contracts\Container\BindingResolutionException: Target class [path.public] does not exist. in E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php:805
Stack trace:
#0 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(681): Illuminate\Container\Container->build('path.public')
#1 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(785): Illuminate\Container\Container->resolve('path.public', Array, true)
#2 E:\www\test\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Foundation\Application->resolve('path.public', Array)
#3 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(770): Illuminate\Container\Container->make('path.public', Array)
#4 E:\www\test\vendor\october\rain\src\Foundation\Application.php(293): Illuminate\Foundation\Application->make('path.public')
#5 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(629): October\Rain\Foundation\Application->make('path.public')
#6 E:\www\test\vendor\october\rain\src\Filesystem\Filesystem.php(99): public_path()
#7 E:\www\test\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): October\Rain\Filesystem\Filesystem->localToPublic('E:\\www\\test\\...')
#8 E:\www\test\vendor\october\rain\src\Exception\ExceptionBase.php(233): Illuminate\Support\Facades\Facade::__callStatic('localToPublic', Array)
#9 E:\www\test\modules\system\views\exception.php(49): October\Rain\Exception\ExceptionBase->getCallStack()
#10 E:\www\test\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(43): include('E:\\www\\test\\...')
#11 E:\www\test\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php(21): Illuminate\View\Engines\PhpEngine->evaluatePath('E:\\www\\test/...', Array)
#12 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(143): Illuminate\View\Engines\PhpEngine->get('E:\\www\\test/...', Array)
#13 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(126): Illuminate\View\View->getContents()
#14 E:\www\test\vendor\laravel\framework\src\Illuminate\View\View.php(91): Illuminate\View\View->renderContents()
#15 E:\www\test\vendor\laravel\framework\src\Illuminate\Http\Response.php(42): Illuminate\View\View->render()
#16 E:\www\test\vendor\symfony\http-foundation\Response.php(205): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#17 E:\www\test\vendor\laravel\framework\src\Illuminate\Routing\ResponseFactory.php(55): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View), 500, Array)
#18 E:\www\test\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(261): Illuminate\Routing\ResponseFactory->make(Object(Illuminate\View\View), 500)
#19 E:\www\test\vendor\october\rain\src\Foundation\Exception\Handler.php(107): Illuminate\Support\Facades\Facade::__callStatic('make', Array)
#20 E:\www\test\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(101): October\Rain\Foundation\Exception\Handler->render(Object(Illuminate\Http\Request), Object(Illuminate\Contracts\Container\BindingResolutionException))
#21 E:\www\test\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php(69): Barryvdh\Debugbar\Middleware\InjectDebugbar->handleException(Object(Illuminate\Http\Request), Object(Illuminate\Contracts\Container\BindingResolutionException))
#22 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#23 E:\www\test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#25 E:\www\test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#26 E:\www\test\index.php(45): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#27 {main}
I get the following error when I try to install the plugin via artisan plugin:install.
The plugin is hidden and cannot be installed
October cms 1.1.*
Any idea why?
The current version of laravel/debugbar uses the illuminate/support package for Laravel 5.4.* or 5.5.*.
There are various problems considering the miss match between interfaces and the implementations (for example the FileStore class that implements the Store interface).
Installing this plugin with the latest October CMS, which facilitates Laravel 5.1, will result in the following error message:
2017/05/04 12:26:47 [error] 11#11: *53 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class Illuminate\Cache\FileStore contains 2 abstract methods and must therefore be$
PHP message: PHP Fatal error: Uncaught Error: Cannot instantiate abstract class Illuminate\Cache\FileStore in /vendor/laravel/framework/src/Illuminate/Cache/CacheManager.ph$
Stack trace:
#0 /vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(102): Illuminate\Cache\CacheManager->createFileDriver(Array)
#1 /vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(77): Illuminate\Cache\CacheManager->resolve('file')
#2 /vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(55): Illuminate\Cache\CacheManager->get('file')
...
The easiest fix for this problem is to replace the following line in the composer.json:
"barryvdh/laravel-debugbar": "~2.0"
with
"barryvdh/laravel-debugbar": "2.0.6"
and rerun composer install
inside the plugins root directory.
Hi.
Just installed new version on fresh installed cms. And got an error
Illegal offset type in isset or empty" on line 280 of
/vendor/october/rain/src/Events/Dispatcher.php
October cms build 465
PHP 7.4.5
Disabling config debugbar.collectors.events seems work
I can't find this plugin in the market
On php 7 when activating plugin got an error on homepage.
Uncaught TypeError: Argument 1 passed to October\Rain\Foundation\Exception\Handler::report() must be an instance of Exception, instance of Error given, called in /html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /html/vendor/october/rain/src/Foundation/Exception/Handler.php:42 Stack trace: #0 /html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): October\Rain\Foundation\Exception\Handler->report(Object(Error)) #1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error)) #2 {main} thrown
/html/vendor/october/rain/src/Foundation/Exception/Handler.php line 42
TYPE
Undefined
EXCEPTION
Symfony\Component\Debug\Exception\FatalErrorException
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $e
* @return void
*/
public function report(Exception $exception)
{
if ($this->shouldntReport($exception))
return;
Log::error($exception);
}
After recent update i get 2 exceptions in debugbar. One of them states that class auth does not exist. That's on fresh October install.
I installed your plugin with composer.
when i update i got an error, i found you upgrade it to laravel 5.5, but my application still at laravel 5.1
so i want to specify a tag like
"bedard/debugbar": "1.0.8"
but i only found 1.0.8
in version.yaml, if you provide the tag, it can be compatible with laravel5.1
Plugin doesn't exist in Marketplace:
When updating to the latest edge build the debug bar throws an exception.
Call to undefined method October\Rain\Foundation\Application::share()
C:\xampp\htdocs\www\plugins\bedard\debugbar\vendor\barryvdh\laravel-debugbar\src\ServiceProvider.php line 42
This is the affected line.
$this->app['command.debugbar.clear'] = $this->app->share(
function ($app) {
return new Console\ClearCommand($app['debugbar']);
}
);
With the DebugBar enabled it is not possible to serialize models. Models are being serialized when you are using them as payload in a job. The trait SerializesModels is trying to serialize the model, but that will result in a "Serialization of 'Closure' is not allowed" exception.
Create a model:
use October\Rain\Database\Model;
class MyTestModel extends Model
{
protected $table = 'my_table';
}
And (with the DebugBar enabled):
$myTestModel = new MyTestModel();
dd(serialize($myTestModel));
The OctoberModelsCollector
does nothing special, but it does bind an event to the model for which there's no way to disable it through configuration option (see config.collectors.models
). The only way is to uninstall the DebugBar plugin completely to prevent the OctoberModelsCollector to be initialized.
#emitterEventCollection: array:1 [
"model.afterFetch" => array:1 [
0 => array:1 [
0 => Closure() {#1941
class: "RainLab\Debugbar\DataCollectors\OctoberModelsCollector"
this: RainLab\Debugbar\DataCollectors\OctoberModelsCollector {#1022 …}
use: {
$model: Nip\Person\Models\MyTestModel {#1908}
}
}
]
]
]
In my opinion the collectors should be enabled/disabled by configuration:
In the boot()
method of the Plugin.php the collectors are always added:
if (App::runningInBackend()) {
$this->addBackendCollectors();
}
else {
$this->registerCmsTwigExtensions();
$this->addFrontendCollectors();
}
$this->addGlobalCollectors();
If the Debugbar is disabled; it should not boot and add collectors.
Maybe add this line to the top of the boot() method:
public function boot()
{
// Configure the debugbar
Config::set('debugbar', Config::get('rainlab.debugbar::config'));
if (Config::get('debugbar.enabled') === false) {
return;
}
...
During debugging the error coming from #33, I realised that I had been operating the debug bar with the RainLab.Debugbar plugin disabled via the Backend.
This stems from the barryvdh/laravel-debugbar
package being auto-discovered by Laravel - ostensibly, this means that our configuration is being overwritten by the package because their service provider is being loaded even when ours isn't.
The simple fix is to disable package discovery for this package, but I'm wondering if this will continue to occur with other plugins that have auto-discovered packages, as it's tying us to Laravel in a way that we have no control over with the plugin architecture. On the other hand, disabling package discovery entirely is going to probably cause mayhem with the plugins we have already.
For the sake of the argument, I had to add Dusk into the "don't discover" section on composer.json for our Laravel 6 upgrade and the RainLab.Dusk plugin. I don't think we can easily maintain this on a global scale.
debugbar reports two expections cause by itself:
Cannot add AuthCollector to Laravel Debugbar: array_keys() expects parameter 1 to be array, null given
/..../plugins/bedard/debugbar/vendor/barryvdh/laravel-debugbar/src/LaravelDebugbar.php#454
array_keys() expects parameter 1 to be array, null given
/..../plugins/bedard/debugbar/vendor/barryvdh/laravel-debugbar/src/LaravelDebugbar.php#442
Might very well be related to the latest major update to OctoberCMS.
As I install this plugin via composer require rainlab/debugbar-plugin the application throws me an error I mean localhost refuse me the access.
Install the latest version of October cms and latest version of plugin.
You've disabled twig functions in 279609efa38e2e62f22f75cca20d24191c1cabfb, which causes any pages using the twig "debug" function to fail with "Unknown "debug" function. Did you mean "date", "dump", "random", "include", "redirect", "placeholder"?"
A fix is to edit composer.json to fix the plugin version to 3.2:
"rainlab/debugbar-plugin": "3.2"
and then running
composer update
php artisan october:migrate
However this is hardly obvious and took me 2 hours to figure out. Other devs can run into the same. Please consider adding a note to explain this to README.md to save other devs the hassle until whatever the issue is that lead you to disable twig functionality is resolved?
Add the current version of the plugin to a project:
composer require rainlab/debugbar-plugin
or upgrade an existing project:
composer update
When saving data (create or update) from backend form, it always show an error like this.
[10:20:49] LOG.error: Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Too few arguments to function Barryvdh\Debugbar\LaravelDebugbar::Barryvdh\Debugbar\{closure}(), 1 passed and exactly 2 expected in /Volumes/Data/Users/trias/Projects/octobercms/vendor/barryvdh/laravel-debugbar/src/LaravelDebugbar.php:377
Stack trace:
#0 [internal function]: Barryvdh\Debugbar\LaravelDebugbar->Barryvdh\Debugbar\{closure}(Object(October\Rain\Database\Connections\MySqlConnection))
#1 /Volumes/Data/Users/trias/Projects/octobercms/vendor/october/rain/src/Events/Dispatcher.php(233): call_user_func_array(Object(Closure), Array)
#2 /Volumes/Data/Users/trias/Projects/octobercms/vendor/october/rain/src/Events/Dispatcher.php(197): October\Rain\Events\Dispatcher->dispatch('connection.mysq...', Array, false)
#3 /Volumes/Data/Users/trias/Projects/octobercms/vendor/october/rain/src/Database/Connections/Connection.php(58): October\Rain\Events\Dispatcher->fire('connection.mysq...', Object(October\Rain\Database\Connections\MySqlConnection))
#4 /Volumes/Data/Users/trias/Projects/octobercms/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php(96): October\Rain\Database\Connections\Connection->fireConnectionEvent('beganTransactio...')
#5 /Volumes/Data/Users/trias/Projects/octobercms/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php(23): Illuminate\Database\Connection->beginTransaction()
#6 /Volumes/Data/Users/trias/Projects/octobercms/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(327): Illuminate\Database\Connection->transaction(Object(Closure))
#7 /Volumes/Data/Users/trias/Projects/octobercms/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Illuminate\Database\DatabaseManager->__call('transaction', Array)
#8 /Volumes/Data/Users/trias/Projects/octobercms/modules/backend/Behaviors/FormController.php(255): Illuminate\Support\Facades\Facade::__callStatic('transaction', Array)
#9 [internal function]: Backend\Behaviors\FormController->create_onSave()
...
Environment
PHP 7.2.30
MySQL 5.5.5
OctoberCMS Build 465
Laravel 5.5.49
Uncaught TypeError: url.indexOf is not a function
at XMLHttpRequest. (javascript?v=1640110810:1210:52)
(anonymous) @ javascript?v=1640110810:1210
XMLHttpRequest.send (async)
submitRequest @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2781
_uploadData @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2505
(anonymous) @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2369
(anonymous) @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2523
transformFile @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:677
_loop @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2520
_transformFiles @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2529
uploadFiles @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2281
processFiles @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2186
processFile @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2154
processQueue @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:2143
(anonymous) @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:1880
setTimeout (async)
enqueueFile @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:1879
(anonymous) @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:1841
accept @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:532
accept @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:1807
addFile @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:1834
(anonymous) @ f2479d67261519cb76d3bc7fa8bd46b4-1618559674:1246
if (xhr.readyState == 4 && url.indexOf(skipUrl) !== 0) {
Upload File using Responisve Uploader
https://github.com/responsiv/uploader-plugin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.