fopen() Exception when exporting to pdf document #2245

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

Originally created by @rednaxLamington on GitHub (May 15, 2021).

Describe the bug
After upgrading V21.04.4 I can't export to PDF:

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to a page or chapter

  2. Click on export, than on PDF file

  3. See error
    image

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): V21.04.4
  • PHP Version: 7.4.16
  • Hosting Method (Nginx/Apache/Docker): Windows 10 / IIS

Additional context
The referenced directory does not exists. I believe c:\BookStack\app\vendor\.... should be c:\BookStack\vendor\.... (without \app).
Just for testing, after manually creating the directory, the export does work.

Originally created by @rednaxLamington on GitHub (May 15, 2021). **Describe the bug** After upgrading V21.04.4 I can't export to PDF: **Steps To Reproduce** Steps to reproduce the behavior: 1. Go to a page or chapter 2. Click on export, than on PDF file 4. See error ![image](https://user-images.githubusercontent.com/13933387/118351717-c4024080-b55d-11eb-94fd-c80058812ba5.png) **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): V21.04.4 - PHP Version: 7.4.16 - Hosting Method (Nginx/Apache/Docker): Windows 10 / IIS **Additional context** The referenced directory does not exists. I believe `c:\BookStack\app\vendor\....` should be `c:\BookStack\vendor\....` (without \app). Just for testing, after manually creating the directory, the export does work.
OVERLORD added the 🐛 Bug🏭 Back-End labels 2026-02-05 03:27:22 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 15, 2021):

Thanks for reporting @rednaxLamington. I've just released v21.04.5 with an included patch to use an existing path instead of the incorrectly shown one in your bug report. I was not able to replicate your original error but hopefully you'll no longer get this occurrence.

@ssddanbrown commented on GitHub (May 15, 2021): Thanks for reporting @rednaxLamington. I've just released v21.04.5 with an included patch to use an existing path instead of the incorrectly shown one in your bug report. I was not able to replicate your original error but hopefully you'll no longer get this occurrence.
Author
Owner

@rednaxLamington commented on GitHub (May 16, 2021):

Thanks Dan,

I can confirm that the problem is solved.

@rednaxLamington commented on GitHub (May 16, 2021): Thanks Dan, I can confirm that the problem is solved.
Author
Owner

@ssddanbrown commented on GitHub (May 17, 2021):

@rednaxLamington Awesome, Thanks for confirming!

@ssddanbrown commented on GitHub (May 17, 2021): @rednaxLamington Awesome, Thanks for confirming!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2245