Support

Site Restoration

#39489 Error for webP image "Could not open for writing"

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
8.2.10
CMS Type
Joomla!
CMS Version
Joomla 4.3.4
Backup Tool Version
Akeeba 9.7.1
Kickstart version
8.0.1

Latest post by nicholas on Tuesday, 26 September 2023 03:53 CDT

ssnobben

Hi

I do a restoration from a hosting web site to my Wamp local host and when doing this I get this error message stopping up the restoration completely. A jpa file.

I use AdaptiveImages from Extly its located here /var/www/www.site.com/media/xt-adaptive-images/. Dev extension: https://extensions.joomla.org/extension/xt-adaptive-images-pro/

An error occurred

Could not open C:/wamp64/www/2023/media/xt-adaptive-images/480 /media/com_easysocial/videos/13/3fb2db6cccf4a23383383394b28b2b31.webp for writing.


Any clue why this happens?

nicholas
Akeeba Staff
Manager

Kickstart is relaying the message from PHP, which is relaying the message from the Operating System (Windows). Check if you have enough free disk space and/or any permissions issues.

If that's not the case, I am observing that the full filesystem path to the file is rather long, 117 characters. I am wondering if you're somehow hitting the Win32 path limit (https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry) even though you're shy of 260 bytes even if I consider Unicode. The page I linked has a Windows Registry workaround to enable long paths, i.e. setting HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1.

If none of that helps, you can always check the “Ignore most errors” option in Kickstart to tell it to skip over these files it cannot write. Since this is a temporary file it should be safe to do so.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

tampe125
Akeeba Staff

Hello,

most likely the whole path is longer than the length allowed by Windows itself.

Please check the option "Ignore most errors" in the first page of Kickstart, that should do the trick.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ssnobben

Ok guys thks for the tips..

 

Please check the option "Ignore most errors" in the first page of Kickstart, that should do the trick.

 

I will try this later and hope that solve the problem :)


THks

ssnobben

I did the setting ---> "Ignore most errors" in the first page of Kickstart but nope got this error stopping the extrating process. C:/wamp64/www/site/media/xt-adaptive-images/992/images/cities/Miami/pic_t_d_miami_116.webp

hmmm

An error occurred

Could not create media/xt-adaptive-images/480 / folder

ssnobben

jepp tried with both a jpa and zip file same story..

"An error occurred

Could not create media/xt-adaptive-images/480 / folder"

nicholas
Akeeba Staff
Manager

Ultimately, your problem is XAMPP itself. You can extract the ZIP file with 7-Zip as a temporary solution.

They are using the non-threaded PHP SAPI as an Apache module. However, Apache needs all its modules to support threading since the default Apache MPM is multi-threaded. The discrepancy causes thread concurrency issues which manifest themselves in different ways including the inability to open files for reading or writing. The problems only happen when there are a lot of requests in a short amount of time which typically only happens if you have some kind of automation running, e.g. taking / restoring a backup, indexing article text, test sending a newsletter using a local mail server (e.g. MailCatcher or similar), and so on.

I have explained those finer points in my blog back in 2018, see Improve PHP performance on Windows. It's driving me nuts that XAMPP has not caught and fixed this problem in nearly twenty years. Argh! Every couple of months we have a client who, like you, has hit that brick wall.

For this reason I always recommend WAMPServer to our Windows users or, better yet, set up their (see IIS development server for PHP on Windows 10 for example if you want to use IIS; I have an older tutorial for Apache which is mostly okay, see Apache, MySQL, PHP server on Windows with multiple, simultaneous PHP versions).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ssnobben

Ok will test this later but as I said I using WAMP.

 

cheers!

nicholas
Akeeba Staff
Manager

Can you try selecting a different PHP version in WAMPserver? I am wondering if they messed something up with their PHP 8.2 build…

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!