"Changes" link on list of page revisions returns error #1603

Closed
opened 2026-02-05 01:23:54 +03:00 by OVERLORD · 10 comments
Owner

Originally created by @wlabarron on GitHub (Mar 22, 2020).

Describe the bug
When looking at a page's revisions, clicking "Changes" on a page in the list shows a page which reads "An Error Occurred. An unknown error occurred." with a link to the homepage.

Steps To Reproduce

  1. Go to a page with a few revisions.
  2. Click "Changes" for one of the entries.
  3. Error.

Expected behavior
I'm not sure, I've never seen it work properly.

Screenshots
List of revisions
Error page, reading An Error Occurred. An unknown error occurred. A link home.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v0.28.3
  • PHP Version: 7.3
  • Hosting Method (Nginx/Apache/Docker): Apache
Originally created by @wlabarron on GitHub (Mar 22, 2020). **Describe the bug** When looking at a page's revisions, clicking "Changes" on a page in the list shows a page which reads "An Error Occurred. An unknown error occurred." with a link to the homepage. **Steps To Reproduce** 1. Go to a page with a few revisions. 2. Click "Changes" for one of the entries. 3. Error. **Expected behavior** I'm not sure, I've never seen it work properly. **Screenshots** <img width="789" alt="List of revisions" src="https://user-images.githubusercontent.com/16035785/77253474-77212380-6c52-11ea-8039-838f4bd37754.png"> <img width="829" alt="Error page, reading An Error Occurred. An unknown error occurred. A link home." src="https://user-images.githubusercontent.com/16035785/77253476-7a1c1400-6c52-11ea-8239-1d43579007e4.png"> **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): v0.28.3 - PHP Version: 7.3 - Hosting Method (Nginx/Apache/Docker): Apache
Author
Owner

@ssddanbrown commented on GitHub (Mar 25, 2020):

Hi @wlabarron,
Do you know if you have the php-tidy PHP extension installed?
That would be my first guess if this occurs on any page in your instance.

@ssddanbrown commented on GitHub (Mar 25, 2020): Hi @wlabarron, Do you know if you have the `php-tidy` PHP extension installed? That would be my first guess if this occurs on any page in your instance.
Author
Owner

@wlabarron commented on GitHub (Mar 25, 2020):

Hey Dan, php-tidy isn't listed when I run phpinfo(); inside my public directory. Should it be?

@wlabarron commented on GitHub (Mar 25, 2020): Hey Dan, `php-tidy` isn't listed when I run `phpinfo();` inside my `public` directory. Should it be?
Author
Owner

@ssddanbrown commented on GitHub (Mar 25, 2020):

@wlabarron Ideally there should be some mention of Tidy in there. What operating system are you running BookStack on and what method did you use to install it?

@ssddanbrown commented on GitHub (Mar 25, 2020): @wlabarron Ideally there should be some mention of `Tidy` in there. What operating system are you running BookStack on and what method did you use to install it?
Author
Owner

@wlabarron commented on GitHub (Mar 26, 2020):

I followed the Manual Installation Instructions, and it turns out I do have tidy installed (I searched the page for php-tidy originally, hence no results). I'm on shared hosting, I know that it's not officially supported, but I was able to run all the install commands without issue so I ran with it. Looks like my server is running Red Hat, or at least that's what's listed in /proc/version.

@wlabarron commented on GitHub (Mar 26, 2020): I followed the [Manual Installation Instructions](https://www.bookstackapp.com/docs/admin/installation/#manual), and it turns out I do have `tidy` installed (I searched the page for `php-tidy` originally, hence no results). I'm on shared hosting, I know that it's not officially supported, but I was able to run all the install commands without issue so I ran with it. Looks like my server is running Red Hat, or at least that's what's listed in `/proc/version`.
Author
Owner

@ssddanbrown commented on GitHub (Mar 27, 2020):

@wlabarron Okay, Thanks for confirming.

This page details how you can enable debug mode in BookStack:
https://www.bookstackapp.com/docs/admin/debugging/

Could you follow that to gain more information and hopefully we'll get a handy error message when you click changes with debugging enabled.

@ssddanbrown commented on GitHub (Mar 27, 2020): @wlabarron Okay, Thanks for confirming. This page details how you can enable debug mode in BookStack: https://www.bookstackapp.com/docs/admin/debugging/ Could you follow that to gain more information and hopefully we'll get a handy error message when you click changes with debugging enabled.
Author
Owner

@wlabarron commented on GitHub (Mar 27, 2020):

@ssddanbrown Yep, got an exception (on a very lovely error page): Required Tidy extension not found. Odd, since it is listed in phpinfo(). Running composer show, however, doesn't list tidy.

@wlabarron commented on GitHub (Mar 27, 2020): @ssddanbrown Yep, got an exception (on a very lovely error page): `Required Tidy extension not found.` Odd, since it is listed in `phpinfo()`. Running `composer show`, however, doesn't list `tidy`.
Author
Owner

@ssddanbrown commented on GitHub (Mar 28, 2020):

@wlabarron Hmm, Might be worth checking your php.ini file to see if the tidy extension is commented out in there.

@ssddanbrown commented on GitHub (Mar 28, 2020): @wlabarron Hmm, Might be worth checking your `php.ini` file to see if the tidy extension is commented out in there.
Author
Owner

@wlabarron commented on GitHub (Mar 28, 2020):

@ssddanbrown There's no .ini inside my BookStack installation folder. There is one in my home directory which it's probably inheriting info from, but that has no mention of the Tidy extension. Should there be one in my installation folder?

@wlabarron commented on GitHub (Mar 28, 2020): @ssddanbrown There's no `.ini` inside my BookStack installation folder. There is one in my home directory which it's probably inheriting info from, but that has no mention of the Tidy extension. Should there be one in my installation folder?
Author
Owner

@wlabarron commented on GitHub (May 19, 2020):

This issue has resolved itself - seems like one of the last couple of updates has fixed whatever was set wrong.

@wlabarron commented on GitHub (May 19, 2020): This issue has resolved itself - seems like one of the last couple of updates has fixed whatever was set wrong.
Author
Owner

@ssddanbrown commented on GitHub (May 23, 2020):

@wlabarron Awesome, Thanks for confirming. Will therefore close.

@ssddanbrown commented on GitHub (May 23, 2020): @wlabarron Awesome, Thanks for confirming. Will therefore close.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1603