Closed marcbelletre closed 11 months ago
10
The error pages should display correctly with the admin bar displayed. The option is checked by default on a clean Wordpress setup.
The layout of the error pages is broken when the admin bar is shown.
Here is an error page on a clean Sage 10 install. I just echoed an undefined variable in the App composer.
When switching to incognito mode the error page looks fine.
I also tried with Laravel Ignition with the same result. I found that the entire HTML of the page is sent into the "New" item menu as wa can see here:
roots/bedrock
roots/sage
echo $test;
$test
No response
Yes
Thank you @Log1x for the PR.
For anyone having the same issue, the fix is to move the layout markup from index.php to layouts/app.blade.php as shown here.
index.php
layouts/app.blade.php
Version
10
What did you expect to happen?
The error pages should display correctly with the admin bar displayed. The option is checked by default on a clean Wordpress setup.
What actually happens?
The layout of the error pages is broken when the admin bar is shown.
Here is an error page on a clean Sage 10 install. I just echoed an undefined variable in the App composer.
When switching to incognito mode the error page looks fine.
I also tried with Laravel Ignition with the same result.
I found that the entire HTML of the page is sent into the "New" item menu as wa can see here:
Steps to reproduce
roots/bedrock
projectroots/sage
project in the themes directoryecho $test;
without declaring$test
)System info
Log output
No response
Please confirm this isn't a support request.
Yes