Installing pressbooks


#1

I have downloaded pressbook plugin from here https://github.com/pressbooks/pressbooks and installed in Multisite and I get the following error

Plugin could not be activated because it triggered a fatal error.

Pressbooks dependencies are missing. Please make sure that your project’s Composer autoload file is being required, or use the latest release instead.

Help appreciated to solve this


#2

Hi John, you need to install the package, not the source code.

If you navigate to https://github.com/pressbooks/pressbooks/releases/latest/ you’ll see three items under the Assets heading. You need to download the first one, pressbooks-5.0.0.zip, not either of the source code files. Each release of Pressbooks has a release package which includes the necessary dependencies like this one, and this will resolve the problem.


#3

Hello Ned,

Thank you very much for your guidance…the plugin and the theme installed perfectly…

Now I have an another issue cropping up…could you help it…

Warning: exec() has been disabled for security reasons in /home/u350819964/public_html/wp-content/plugins/pressbooks/inc/utility/namespace.php on line 343

Notice: Undefined offset: 0 in /home/u350819964/public_html/wp-content/plugins/pressbooks/inc/utility/namespace.php on line 345

Warning: exec() has been disabled for security reasons in /home/u350819964/public_html/wp-content/plugins/pressbooks/inc/utility/namespace.php on line 291

Notice: Undefined offset: 0 in /home/u350819964/public_html/wp-content/plugins/pressbooks/inc/utility/namespace.php on line 293

Warning: exec() has been disabled for security reasons in /home/u350819964/public_html/wp-content/plugins/pressbooks/inc/utility/namespace.php on line 343

Notice: Undefined offset: 0 in /home/u350819964/public_html/wp-content/plugins/pressbooks/inc/utility/namespace.php on line 345

Warning: exec() has been disabled for security reasons in /home/u350819964/public_html/wp-content/plugins/pressbooks/inc/utility/namespace.php on line 291

Notice: Undefined offset: 0 in /home/u350819964/public_html/wp-content/plugins/pressbooks/inc/utility/namespace.php on line 293


#4

Hi John,

Looks like you are trying to run Pressbooks on a shared hosting environment. This will likely not work, as many of the dependencies can’t be installed in shared hosting environments:

  • KindleGen for creating Amazon Kindle files
  • xmllint for validating/sanitizing (X)HTML output
  • Java JDK and EpubCheck for validating EPUB files

Unfortunately there’s not much we can do about this.


#5

Hello Ned,

I will test it in a dedicated environment.

Appreciate your help…


#6

You’re most welcome. Detailed instructions for installing dependencies are available at https://docs.pressbooks.org/installation/