Title: Uncaught Error: Class &#8216;ZipArchive&#8217;
Last modified: March 26, 2023

---

# Uncaught Error: Class ‘ZipArchive’

 *  Resolved [sathishkumars2396](https://wordpress.org/support/users/sathishkumars2396/)
 * (@sathishkumars2396)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-class-ziparchive/)
 * Hi
 * I am getting this error **Fatal error**: Uncaught Error: Class ‘ZipArchive’ not
   found in
 *     ```wp-block-code
       Fatal error: Uncaught Error: Class 'ZipArchive' not found in /home/onlineqd/public_html/wp-content/plugins/wpdatatables/lib/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php:400 Stack trace: #0 /home/onlineqd/public_html/wp-content/plugins/wpdatatables/source/class.wpdatatable.php(1702): PhpOffice\PhpSpreadsheet\Reader\Xlsx->load('/home/onlineqd/...') #1 /home/onlineqd/public_html/wp-content/plugins/wpdatatables/source/class.wpdatatable.php(2247): WPDataTable->excelBasedConstruct('/home/onlineqd/...', Array) #2 /home/onlineqd/public_html/wp-content/plugins/wpdatatables/controllers/wdt_functions.php(825): WPDataTable->fillFromData(Object(stdClass), Array) #3 /home/onlineqd/public_html/wp-includes/shortcodes.php(355): wdtWpDataTableShortcodeHandler(Array, '', 'wpdatatable') #4 [internal function]: do_shortcode_tag(Array) #5 /home/onlineqd/public_html/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(wpdata...', 'do_shortcode_ta...', '[wpdatatable id...') #6 /home/onlineqd/public_html/wp-content/pl in /home/onlineqd/public_html/wp-content/plugins/wpdatatables/lib/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 400
       ```
   
 * Screen Shot
 * ![](https://i0.wp.com/i.ibb.co/TTRygzx/download.png?ssl=1)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-error-class-ziparchive%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-class-ziparchive/#post-16603245)
 * Hello.
   This error seems to indicate that you don’t have a Zip extension installed
   on your Hosting Server.
 * Can you please make sure that your PHP configuration includes the Zip extension?
   
   You can check in our plugin’s System Info tab in your WP Dashboard, and see what
   it says under Server Environment/ “Zip extension”, it should say “installed.”
 * ![](https://i0.wp.com/ticksy_attachments.s3.amazonaws.com/3344226057.png?ssl=
   1)
 * 
   If it says “not installed”, you should reach out to your hosting support and
   have them install it on the server.
 * For more information about this particular error, there’s this Stackoverflow 
   thread which I found helpful: [https://stackoverflow.com/questions/3872555/fatal-error-class-ziparchive-not-found-in](https://stackoverflow.com/questions/3872555/fatal-error-class-ziparchive-not-found-in)
 * 
   We hope this helps. Let us know if you check and if you already have a Zip extension
   installed on the hosting server.Thank you.
 *  Thread Starter [sathishkumars2396](https://wordpress.org/support/users/sathishkumars2396/)
 * (@sathishkumars2396)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-class-ziparchive/#post-16607141)
 * Hi,
 * Yes Zip extension is not installed and it worked when i have enabled it
 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-class-ziparchive/#post-16628900)
 * Hello.
   Just following up, we are happy to see that this has resolved the issue.
   Please don’t hesitate to reach out to us again if any other issue comes up.Kind
   regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught Error: Class ‘ZipArchive’’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-error-class-ziparchive/#post-16628900)
 * Status: resolved