Can not create page under book (selfhosted fresh install) #697

Closed
opened 2026-02-04 21:54:58 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @jarink0 on GitHub (May 29, 2018).

  • BookStack Version: 0.22.0
  • PHP Version:7.0
  • MySQL Version:5.7.22
Expected Behavior

be able to create pages :)

Current Behavior

An Error Occurred
An unknown error occurred

Return to home

Steps to Reproduce

-create book
-create page
-edit title/text
-click save

thank you!

EDIT: with enabled debug

Undefined property: DOMDocument::$documentElement/var/www/xxx/app/Repos/EntityRepo.php#731ErrorException

        $doc = new DOMDocument();
        $doc->loadHTML(mb_convert_encoding($htmlText, 'HTML-ENTITIES', 'UTF-8'));

        $container = $doc->documentElement;
        $body = $container->childNodes->item(0);
        $childNodes = $body->childNodes;

and this:

errorlog[11:36:39] LOG.error: Undefined property: DOMDocument::$documentElement {"userId":1,"email":"admin@a...
Originally created by @jarink0 on GitHub (May 29, 2018). * BookStack Version: 0.22.0 * PHP Version:7.0 * MySQL Version:5.7.22 ##### Expected Behavior be able to create pages :) ##### Current Behavior An Error Occurred An unknown error occurred Return to home ##### Steps to Reproduce -create book -create page -edit title/text -click save thank you! EDIT: with enabled debug Undefined property: DOMDocument::$documentElement/var/www/xxx/app/Repos/EntityRepo.php#731ErrorException $doc = new DOMDocument(); $doc->loadHTML(mb_convert_encoding($htmlText, 'HTML-ENTITIES', 'UTF-8')); $container = $doc->documentElement; $body = $container->childNodes->item(0); $childNodes = $body->childNodes; and this: errorlog[11:36:39] LOG.error: Undefined property: DOMDocument::$documentElement {"userId":1,"email":"admin@a...
Author
Owner

@ssddanbrown commented on GitHub (May 29, 2018):

Hi @jarink0,
Can you confirm what editor you are using (WYSIWYG-default or Markdown) and the OS you've installed BookStack on?
Also if you could confirm if you used one of the official scripts to install or not that would be great.

@ssddanbrown commented on GitHub (May 29, 2018): Hi @jarink0, Can you confirm what editor you are using (WYSIWYG-default or Markdown) and the OS you've installed BookStack on? Also if you could confirm if you used one of the official scripts to install or not that would be great.
Author
Owner

@jarink0 commented on GitHub (May 29, 2018):

hello @ssddanbrown ,

i tried both editors and the error was same, im running Ubuntu Server 16.04.4 with manual install (according to bookstack official documentation for first time and second time i used this guide https://www.howtoforge.com/tutorial/how-to-install-bookstack-on-ubuntu-1604/ but only for bookstack

pls let me know if you need more specific info

thank you

@jarink0 commented on GitHub (May 29, 2018): hello @ssddanbrown , i tried both editors and the error was same, im running Ubuntu Server 16.04.4 with manual install (according to bookstack official documentation for first time and second time i used this guide https://www.howtoforge.com/tutorial/how-to-install-bookstack-on-ubuntu-1604/ but only for bookstack pls let me know if you need more specific info thank you
Author
Owner

@jarink0 commented on GitHub (May 29, 2018):

hello so quick update, i figured this out. finally! :) so in case it helps anybody in future, i had php extension DOM loaded twice (once in /apache2/php.ini and also in /extensions-available folder) so i commented the line in php.ini, reloaded php and apache and everything works great! thanks anyways.

@jarink0 commented on GitHub (May 29, 2018): hello so quick update, i figured this out. finally! :) so in case it helps anybody in future, i had php extension DOM loaded twice (once in /apache2/php.ini and also in /extensions-available folder) so i commented the line in php.ini, reloaded php and apache and everything works great! thanks anyways.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#697