• Resolved elenaocone

    (@elenaocone)


    Hello

    I am using Poe theme by Anders Noren in a website that’s part of a multisite install.

    When I try to export / clone / create child theme I get a fatal error – uncaught error: Call to undefined method WP_Error::addEmptyDir() …. public_html/wp-content/plugins/create-block-theme/admin/create-theme/theme-zip.php?on line?95.

    I succeed only in creating a style variation and an empty theme, so the plugin is working somehow – should this exclude incompatibility issues?

    Any suggestion?

    Thanks!

    EO

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter elenaocone

    (@elenaocone)

    Hello @zoonini and @jffng , thank you so much for all your help.

    Unfortunately we cannot install the lib zip library on our shared hosting.

    So we will not able to use the plugin, but at least now we know precisely why.

    Do you know of any possible workaround for this?

    • This reply was modified 1 year, 11 months ago by elenaocone.
    Moderator Kathryn Presner

    (@zoonini)

    @elenaocone Sorry to hear your host isn’t willing to enable the necessary PHP extension. The plugin does require this extension to create zip files.

    Thread Starter elenaocone

    (@elenaocone)

    Hello @zoonini

    Alas, at the moment I am not considering an upgrade to VPS hosting.

    Anyway I am happy that at least we found out the origin of the error, so we can consider this resolved.

    Thank you so much for all your support – it looked hopeless bur you didn’t give up ??

    All the best, EO

    Moderator Kathryn Presner

    (@zoonini)

    You’re very welcome!

    Hello. This thread is marked as resolved, but I ran into the same issue and I found that my php7.4 on Debian (bullseye) didn’t contain Zip extension.
    It seems that PHP does not bundle Zip by default anymore.

    FYI,
    https://www.php.net/manual/en/zip.installation.php

    Thanks

    Moderator Kathryn Presner

    (@zoonini)

    Hi @ankatsu – that’s quite right, the lipzip PHP library is required to use the Zip feature, as I mentioned here.

    Hopefully your host was able to activate it for you. ?? If you need further help, please start a separate thread.

    @elenaocone Confirming @zoonini solution worked for me as well! My host did not have “zip” module enabled and I was also getting similar errors to other folks exporting a zip thru create block theme as well as the site editor’s export theme.

    zip or libzip are located in your cpanel (or wherever you have checkboxes to install different modules for your php installation)

    FWIW it appears “libzip” was deprecated after 7.4 (and is enabled in windows servers via php.ini: https://www.php.net/manual/en/zip.installation.php

    But anyone who has a problem creating a zip, check your php installation in cpanel with your host and just look for anything with “zip” in it and install it! ??

    • This reply was modified 1 year, 4 months ago by James Monroe.
Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Fatal error on export/clone/create child theme’ is closed to new replies.