# Import epub eBooks

**URL:** <https://pressbooks.community/t/import-epub-ebooks/428>\
**Category:** Troubleshooting Installation/Upgrades\
**Created:** [March 14, 2018, 10:49am UTC](https://pressbooks.community/t/import-epub-ebooks/428 "2018-03-14T10:49:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qazqaz](https://pressbooks.community/letter_avatar_proxy/v4/letter/q/e99b99/32.png) [@Qazqaz](https://pressbooks.community/u/Qazqaz)\
**Post date:** [March 14, 2018, 10:49am UTC](https://pressbooks.community/t/import-epub-ebooks/428/1 "2018-03-14T10:49:48Z")

</div>

Hello,

I installed pressbooks in wordpress multi and pressbook but can’t import epub eBooks so i installed the missing epub validator (apt install epubcheck in Ubuntu 16.04).

If don’t installed the exports because i don’t Need to export.

but when i try to import an epub i still get the error page:

​[http://​](http://xn--zug)…/wp-admin/tools.php​ ​page=pb\_import&import=yes&\_wpnonce=5eeedff8a9​  
​ …  
HTTP ERROR 500

​when i try to export the epub Check box is even not available to Check also.

​I can´t import any epub… i miss something that i did not find yet in documentation.​

​Can any one Help? Somebody with the same problem?

Thanks.  
QQC

---

<div class="post-metadata">

**Author:** ![dac.chartrand](https://pressbooks.community/user_avatar/pressbooks.community/dac.chartrand/32/152_2.png) [@dac.chartrand](https://pressbooks.community/u/dac.chartrand)\
**Post date:** [March 14, 2018, 12:52pm UTC](https://pressbooks.community/t/import-epub-ebooks/428/2 "2018-03-14T12:52:51Z")

</div>

> HTTP ERROR 500

Hi. This is not sufficient. Please look at the log files and paste more information.

More info: [Debugging in WordPress « WordPress Codex](https://codex.wordpress.org/Debugging_in_WordPress)

---

<div class="post-metadata">

**Author:** ![Qazqaz](https://pressbooks.community/letter_avatar_proxy/v4/letter/q/e99b99/32.png) [@Qazqaz](https://pressbooks.community/u/Qazqaz)\
**Post date:** [March 15, 2018, 4:52pm UTC](https://pressbooks.community/t/import-epub-ebooks/428/3 "2018-03-15T16:52:19Z")

</div>

Hi!

With Debug activated the error is:

Fatal error: Uncaught Error: Class ‘ZipArchive’ not found in /var/www/html/wp-content/plugins/pressbooks/inc/modules/import/epub/class-epub201.php:68 Stack trace: #0 /var/www/html/wp-content/plugins/pressbooks/inc/modules/import/class-import.php(403): Pressbooks\Modules\Import\Epub\Epub201-\>\_\_construct() #1 /var/www/html/wp-content/plugins/pressbooks/inc/modules/import/class-import.php(262): Pressbooks\Modules\Import\Import::setImportOptions() #2 /var/www/html/wp-includes/class-wp-hook.php(286): Pressbooks\Modules\Import\Import::formSubmit(’’) #3 /var/www/html/wp-includes/class-wp-hook.php(310): WP\_Hook-\>apply\_filters(NULL, Array) #4 /var/www/html/wp-includes/plugin.php(453): WP\_Hook-\>do\_action(Array) #5 /var/www/html/wp-settings.php(450): do\_action(‘init’) #6 /var/www/html/wp-config.php(125): require\_once(’/var/www/html/w…’) #7 /var/www/html/wp-load.php(37): require\_once(’/var/www/html/w…’) #8 /var/www/html/wp-admin/admin.php(31): require\_once(’/var/www/html/w…’) #9 /var/www/html/wp-admin/tools.php(10): require\_onc in /var/www/html/wp-content/plugins/pressbooks/inc/modules/import/epub/class-epub201.php on line 68

Thanks a lot

QQC

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [March 15, 2018, 4:56pm UTC](https://pressbooks.community/t/import-epub-ebooks/428/4 "2018-03-15T16:56:22Z")

</div>

It looks like your web host doesn’t include the [PHP ZipArchive module](https://encrypted.google.com/search?hl=en&q=php%20ziparchive%20module), which is required for Pressbooks to work with EPUB files (they are essentially specialized Zip archives). I suggest contacting your host and seeing if they can enable it for you.

---

<div class="post-metadata">

**Author:** ![Qazqaz](https://pressbooks.community/letter_avatar_proxy/v4/letter/q/e99b99/32.png) [@Qazqaz](https://pressbooks.community/u/Qazqaz)\
**Post date:** [April 20, 2018, 7:31pm UTC](https://pressbooks.community/t/import-epub-ebooks/428/5 "2018-04-20T19:31:41Z")

</div>

Thanks it works.  
AJ.
