• chugbug

    (@chugbug)


    Hello,

    I posted this topic on the general WP forum, and someone there gave me this link. So I’m hoping I can get further assistance with this issue here…

    ISSUE: When I click ‘EXPORT ZIP’ I get a ‘Fatal Error’ message. I’ve used it before, but looking back at my backups, the last zip backup I have is from July 2024, So it’s possible this issue may have started a while ago, but since I haven’t made any changes to the theme, I just didn’t take the time to investigate it..

    I contacted my site host and they suggested I increase some php setting, which I did (by doubling them), but the increases didn’t make a difference. Next it was suggested I enabled debugging, which I did. Below is the line from the debug log file about Export Zip. The message is warning: NO SUCH FILE OR DIRECTLY.

    Since this is my first post here, I’ll wait for instructions before I post anything else. I assume the first step would be to confirm that the directory exists, but how do I do that in WP? If the site is working, why would this be reporting a file or directory is “missing”? And if it is there, why wouldn’t it know where it is? Possibly a bug in the plugin after an update?

    If you want to review the previous thread, here is the link:
    https://ww.wp.xz.cn/support/topic/error-after-trying-to-use-theme-export-zip/#post-18784374

    Thanks…JEB

    [12-Jan-2026 22:00:25 UTC] PHP Warning: ZipArchive::addFile(): No such file or directory in /home/REMOVED*/public_html/wp-content/plugins/create-block-theme/includes/create-theme/cbt-zip-archive.php on line 24
    [12-Jan-2026 22:00:26 UTC] PHP Fatal error: Uncaught TypeError: parse_url(): Argument #1 ($url) must be of type string, array given in /home/REMOVED*/public_html/wp-admin/includes/file.php:1161
    Stack trace:
    Then it lists 16 different files and their directories. I assume these are the files it should be backing up.
    *NOTE: I removed the actual directory name.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chugbug

    (@chugbug)

    Hello. In case it makes a difference, I found the newer backups (I thought I made them – I just moved them to a different folder). The last Theme Zip backup I made was just THREE MONTHS ago (10/26/25).

    Thanks…JEB

    Thread Starter chugbug

    (@chugbug)

    Hello. Since I didn’t get any suggestions offered yet, I tried to do a little investigating on my own. Using FileZilla, I took the time go through the list and confirmed that all the files and directories that are listed in the debug log for the ZipArchive error DO EXIST. I even carefully checked the spelling of each one. So if none of them are missing, why is it reporting that one doesn’t?

    The only thing I question in the file directorie addresses is ‘/home’ at the beginning. The word REMOVED is the name of the user name I use for the login and ‘public_html’ is the name of the main directory. So where is ‘/home’ comming from?

    Further investigating… If I want to do any additional investigating, Do I have to open each of the files and check the line that is referenced to be sure that the directory address there matches?
    Example, on the line below, I’m assuming the #16 at the end is referencing a line number in the php file. So must I open the php file and look at the code on line 16? Should that have the same file & directory address?

    13 /home/REMOVED*/public_html/wp-blog-header.php(16): wp()
    *I removed the actual name.

    Theme changes – Maybe this information will be helpful…
    I have not made any changes to my theme (such as updating or adding templates). However as I was checking the files with FileZilla, I noticed the dates on many of the theme files had a recent date (1/6/26). For example ALL the php files in the folder: <../wp-content/plugins/create-block-theme/includes/create-theme/> have the date of 1/6/26. Looking at the dates of some images I added recently, 1/6 was the first day in almost three months that I logged in to add new content. And on that day I had to update nearly all of plugins (I have 21), and CBT (Create Block Theme) was one of them. I remember because I held that one off until last to update because I was hesitent to update it.

    Looking over the CBT changelog (v2.8.0) I noticed two items that might be related to directories:
    a) Save All Patterns (#790)
    b) Added filters for changing paths (assuming this is ‘file’ paths)

    Folder plugin… I’m using two folder directory plugins, one for media called ‘Media Library Organizer’ (by themeisle) and one for pages called ‘Wicked Folders’ (by Wicked Plugins). I’ve used them from the beginning, but looking at the details page, those also show they’ve been updated in the past month. Because they are sorting my files, and I use a lot of images, I did not want to attempt to disable them.

    I’m trying to investigate this on my own, so I’m looking everywhere that I can think of. But I don’t know where to go from here.

    Thanks…JEB

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

You must be logged in to reply to this topic.