This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi!
During debugging, is there any way to show the error log data in the error page, instead of going to the System/Log page (http://localhost:8080/backend/system/eventlogs/) ?
Thank you in advance.
yfktn said:
Hi, what about OctoberCMS debugbar-plugin? It really help me to debug my app.
I installed debugbar from the Marketplace but it doesn't appear. Debug is true in config.
Any idea?
Last updated
PabloRQ said:
yfktn said:
Hi, what about OctoberCMS debugbar-plugin? It really help me to debug my app.
I installed debugbar from the Marketplace but it doesn't appear. Debug is true in config.
Any idea?
It's weird, are you sure it's shown in the installed plugin? It might be help if you try to execute some artisan commands:
$ ./artisan view:clear
$ ./artisan cache:clear
$ ./artisan debugbar:clear
I can see debugbar in the Settings/Updates&Plugins. Also in the stacktrace when an error is logged:
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): October\Rain\Router\CoreRouter->dispatch(Object(Illuminate\Http\Request))
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#35 /var/www/html/plugins/rainlab/debugbar/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(58): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\Debugbar\Middleware\*InjectDebugbar*->handle(Object(Illuminate\Http\Request), Object(Closure))
#37 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
I think I'm having a bug. I would like to find the root cause before cleaning the cache or something else.
There's any test I can do to find the bug?
@PabloRQ that stacktrace unfortunately is showing us nothing. Please post the full stack trace and exception message.
The full stack trace and error log is shown on the error page if you have debug
set to true. If you are only seeing a "Page not found" page, then you do not have debugging enabled. Are you using a .env
file for configuration?
Hi Benno,
As I already said in a previous post, config=true in the config app. Not using .env file.
In fact, the stack trace piece submitted shows that debugbar is installed and, as the documentation says, it should appear on the frontend page. But it doesn't.
That's why I said it's a possible bug.
One more action: remove and install again the debugbar plugin has no effect. :(
Anyway, here you have the full stack trace of a minor typing error:
Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '}' in /var/www/html/plugins/pablorq/citymanager/controllers/CityManager_test.php:29
#0[internal function]:October\Rain\Support\ClassLoader->load('PabloRQ\\CityMan...')
#1/var/www/html/plugins/pablorq/citymanager/components/TestCode.php(33): call_user_func('PabloRQ\\CityMan...')
#2/var/www/html/vendor/twig/twig/src/Extension/CoreExtension.php(1499): PabloRQ\CityManager\Components\TestCode->testCode()
#3/var/www/html/storage/cms/twig/ae/aef3075dd05051ca7f1e87c13b76dc5ffd860e767afe24b0df1a14f934152007.php(42): twig_get_attribute(Object(Twig\Environment), Object(Twig\Source), Object(PabloRQ\CityManager\Components\TestCode), 'testCode', Array, 'any', false, false, false, 4)
#4/var/www/html/vendor/twig/twig/src/Template.php(407): __TwigTemplate_318b1c0ebae8e437dda88a2dbbb1f30a6c75bab05c26a13c4f08ac9291b2eb19->doDisplay(Array, Array)
#5/var/www/html/vendor/twig/twig/src/Template.php(380): Twig\Template->displayWithErrorHandling(Array, Array)
#6/var/www/html/vendor/twig/twig/src/Template.php(392): Twig\Template->display(Array)
#7/var/www/html/modules/cms/classes/Controller.php(1085): Twig\Template->render(Array)
#8/var/www/html/modules/cms/classes/Controller.php(1214): Cms\Classes\Controller->renderPartial('testCode::defau...', Array, false)
#9/var/www/html/modules/cms/twig/Extension.php(124): Cms\Classes\Controller->renderComponent('testCode', Array)
#10/var/www/html/storage/cms/twig/b0/b00d465250d836cb18443626656b143d26a82aa4a3929dac9c9c03018073b6e2.php(42): Cms\Twig\Extension->componentFunction('testCode', Array)
#11/var/www/html/vendor/twig/twig/src/Template.php(407): __TwigTemplate_31b1395f01d46d632b4a8b0b2614786fbc01d74d74ac2cd4a99b8110873d7413->doDisplay(Array, Array)
#12/var/www/html/vendor/twig/twig/src/Template.php(380): Twig\Template->displayWithErrorHandling(Array, Array)
#13/var/www/html/vendor/twig/twig/src/Template.php(392): Twig\Template->display(Array)
#14/var/www/html/modules/cms/classes/Controller.php(423): Twig\Template->render(Array)
#15/var/www/html/modules/cms/classes/Controller.php(223): Cms\Classes\Controller->runPage(Object(Cms\Classes\Page))
#16/var/www/html/modules/cms/classes/CmsController.php(50): Cms\Classes\Controller->run('test')
#17[internal function]:Cms\Classes\CmsController->run('test')
#18/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#19/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('run', Array)
#20/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Cms\Classes\CmsController), 'run')
#21/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\Routing\Route->runController()
#22/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Route->run()
#23/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#24/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#25/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#26/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#27/var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#28/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#29/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#30/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#31/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#32/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#33/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#34/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#35/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#36/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#37/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#38/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#39/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#40/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#41/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#42/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#43/var/www/html/vendor/october/rain/src/Router/CoreRouter.php(20): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#44/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): October\Rain\Router\CoreRouter->dispatch(Object(Illuminate\Http\Request))
#45/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#46/var/www/html/plugins/rainlab/debugbar/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(58): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#47/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#48/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#49/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#50/var/www/html/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(24): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#51/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#52/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#53/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#54/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#55/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#56/var/www/html/index.php(43): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#57{main}
yfktn said:
PabloRQ said:
yfktn said:
Hi, what about OctoberCMS debugbar-plugin? It really help me to debug my app.
I installed debugbar from the Marketplace but it doesn't appear. Debug is true in config.
Any idea?
It's weird, are you sure it's shown in the installed plugin? It might be help if you try to execute some artisan commands:
$ ./artisan view:clear $ ./artisan cache:clear $ ./artisan debugbar:clear
Tested, but it isn't working.
$ sudo docker exec octobercms_web_1 artisan view:clear
Compiled views cleared!
$ sudo docker exec octobercms_web_1 artisan cache:clear
Cache cleared successfully.
$ sudo docker exec octobercms_web_1 artisan debugbar:clear
Debugbar Storage cleared!
$ sudo docker exec octobercms_web_1 october up
Migrating application and plugins...
System
- Nothing to migrate.
Backend
- Nothing to migrate.
Cms
- Nothing to migrate.
October.Demo
- Nothing to update.
October.Drivers
- Nothing to update.
RainLab.Builder
- Nothing to update.
RainLab.Debugbar
- Nothing to update.
$
Steps to reproduce:
- Create a new octobercms docker container.
- Install Builder plugin.
- Install Debugbar plugin.
- No debugbar plugin on frontend nor backend.
Tested with SQLite and MySQL databases.
I've opened an issue on github.
Any idea?
1-8 of 8