# Extending ZipArchive class generating error

**URL:** <https://forum.mautic.org/t/extending-ziparchive-class-generating-error/13559>\
**Category:** Product Support\
**Created:** [March 22, 2020, 2:27pm UTC](https://forum.mautic.org/t/extending-ziparchive-class-generating-error/13559 "2020-03-22T14:27:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauticdeveloper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mauticdeveloper/32/627_2.png) [@mauticdeveloper](https://forum.mautic.org/u/mauticdeveloper)\
**Post date:** [March 22, 2020, 2:27pm UTC](https://forum.mautic.org/t/extending-ziparchive-class-generating-error/13559/1 "2020-03-22T14:27:47Z")

</div>

**Your software**  
My Mautic version is: v2.15.3

My PHP version is: 7.2.6

**Your problem**  
My problem is:  
I am extending ZipArchive class [https://www.php.net/manual/en/class.ziparchive.php](https://www.php.net/manual/en/class.ziparchive.php) in my plugin  
class CustomZipArchive extends \ZipArchive  
but I am seeing below error  
Compile Error: require\_once(): Failed opening required ‘PHPEXCEL\_ROOTPHPExc  
el/Shared/PCLZip/pclzip.lib.php’ (include\_path=‘C:\xampp\php\PEAR’)

Steps I have tried to fix the problem:  
When I add return false on top of file vendor\phpoffice\phpexcel\Classes\PHPExcel\Shared\ZipArchive.php my code starts working. It seems like mauitc is loading class from PHPexcel bundle instead of loading class from PHP.  
How can I fix this issue so that it should load class from php not from phpexcel bundle in vendor directory.

Thanks
