Skip to content

[Support Request]:  #3102

@theking1141

Description

@theking1141

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

After the update, a blank page began to open for me. I found instructions from the link: https://www.bookstackapp.com/docs/admin/debugging/.

The instruction did not work for me after that in the env file I added "APP_DEBUG = true" and the errors indicated below went.
Also, during the update, when I tried to enter the command: "php artisan view: clear", an error occurred:

Symfony\Component\Debug\Exception\FatalThrowableError  : Call to undefined method Illuminate\Pagination\Paginator::useBootstrap()

  at /var/www/bookstack/app/Providers/AppServiceProvider.php:66
    62|         // View Composers
    63|         View::composer('entities.breadcrumbs', BreadcrumbsViewComposer::class);
    64| 
    65|         // Set paginator to use bootstrap-style pagination
  > 66|         Paginator::useBootstrap();
    67|     }
    68| 
    69|     /**
    70|      * Register any application services.

  Exception trace:

  1   BookStack\Providers\AppServiceProvider::boot()
      /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36

  2   Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
      /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Container/Util.php:37

  Please use the argument -v to see more details.

P.S. If you do not go into debug mode, but post the html-code that is contained in the body of an empty page, we will see this:

<!DOCTYPE html>
<html lang=""
      dir="ltr"
      class="

Exact BookStack Version

21.11.2

Log Content

Error
Symfony\Component\Debug\Exception\FatalThrowableError
Call to undefined method Illuminate\Pagination\Paginator::useBootstrap()

Environment
PHP Version: 8.0.13
BookStack Version: v21.11.2
Theme Configured:

Stack Trace
#0 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): BookStack\Providers\AppServiceProvider->boot()
#1 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#2 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#3 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#4 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate\Container\BoundMethod::call()
#5 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(856): Illuminate\Container\Container->call()
#6 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(839): Illuminate\Foundation\Application->bootProvider()
#7 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation{closure}()
#8 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(840): array_walk()
#9 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot()
#10 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(219): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
#11 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(156): Illuminate\Foundation\Application->bootstrapWith()
#12 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(140): Illuminate\Foundation\Http\Kernel->bootstrap()
#13 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#14 /var/www/bookstack/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle()
#15 {main}

PHP Version

8

Hosting Environment

Ubuntu 20.04, The application is installed using the sh-script posted on your website

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions