Further to issue "Class 'BookStack\Http\Request' not found #1594" #5479

Closed
opened 2026-02-05 10:05:51 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @263kjb on GitHub (Nov 3, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I have installed BookStack onto an up-to-date iMac. Safari fails to connect to the BookStack server.

By a process of elimination, I found that the line

use BookStack\Http\Request; 

in public/index.php seems to be the problem. When that line is commented out, the page loads, but shows:

Fatal error: Uncaught Error: Class "Request" not found in ..public/index.php:38 Stack trace: #0 {main} thrown in ..public/index.php.

Suggestions?

Exact BookStack Version

Latest available.

Log Content


Hosting Environment

httpd and php installed with Brew.

Originally created by @263kjb on GitHub (Nov 3, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario I have installed BookStack onto an up-to-date iMac. Safari fails to connect to the BookStack server. By a process of elimination, I found that the line use BookStack\Http\Request; in public/index.php seems to be the problem. When that line is commented out, the page loads, but shows: Fatal error: Uncaught Error: Class "Request" not found in ..public/index.php:38 Stack trace: #0 {main} thrown in ..public/index.php. Suggestions? ### Exact BookStack Version Latest available. ### Log Content ```text ``` ### Hosting Environment httpd and php installed with Brew.
OVERLORD added the 🐕 Support label 2026-02-05 10:05:51 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 3, 2025):

Hi @263kjb,

  • Can you confirm if you were able to install all dependencies via composer (or our download-vendor CLI action) without fail during install/setup?
  • Have you made any further changes to the code-base to get things working?
  • Are you able to provide the web-server config you're using for BookStack?
@ssddanbrown commented on GitHub (Nov 3, 2025): Hi @263kjb, - Can you confirm if you were able to install all dependencies via composer (or our download-vendor CLI action) without fail during install/setup? - Have you made any further changes to the code-base to get things working? - Are you able to provide the web-server config you're using for BookStack?
Author
Owner

@263kjb commented on GitHub (Nov 4, 2025):

To ensure installation is clean, I moved the bookstack folder to the bin, and re-ran the installation instructions:
git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch bookstack
composer install --no-dev
result:
- lots of installing file messages, eg:
- Installing ssddanbrown/htmldiff (v2.0.0): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
laravel/socialite ......................................................................... DONE
laravel/tinker ............................................................................ DONE
nesbot/carbon ............................................................................. DONE
nunomaduro/termwind ....................................................................... DONE
socialiteproviders/manager ................................................................ DONE
58 packages you are using are looking for funding.
Use the composer fund command to find out more!

Then ran php artisan key:generate and php artisan migrate.

Outcome - same result:

  • unchanged index.php: Safari can't connect to the server
  • use BookStack\Http\Request commented out: Class "Request" not found

Note: I added a message plus exit at the start of index.php - Safari shows the message, so I presume the page is being served.

@263kjb commented on GitHub (Nov 4, 2025): To ensure installation is clean, I moved the bookstack folder to the bin, and re-ran the installation instructions: git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch bookstack composer install --no-dev result: - lots of installing file messages, eg: - Installing ssddanbrown/htmldiff (v2.0.0): Extracting archive Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi INFO Discovering packages. laravel/socialite ......................................................................... DONE laravel/tinker ............................................................................ DONE nesbot/carbon ............................................................................. DONE nunomaduro/termwind ....................................................................... DONE socialiteproviders/manager ................................................................ DONE 58 packages you are using are looking for funding. Use the `composer fund` command to find out more! Then ran php artisan key:generate and php artisan migrate. Outcome - same result: - unchanged index.php: Safari can't connect to the server - use BookStack\Http\Request commented out: Class "Request" not found Note: I added a message plus exit at the start of index.php - Safari shows the message, so I presume the page is being served.
Author
Owner

@263kjb commented on GitHub (Nov 11, 2025):

Could not get BookStack to work with Apache/Safari. Moved to Docker, and after some help from Claude AI, it is now working.

@263kjb commented on GitHub (Nov 11, 2025): Could not get BookStack to work with Apache/Safari. Moved to Docker, and after some help from Claude AI, it is now working.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5479