WebP Express CloudHost.es Fix v0.25.9-cloudhost
✅ Fixed bulk conversion getting stuck on missing files ✅ Added robust error handling and timeout protection ✅ Improved JavaScript response parsing ✅ Added file existence validation ✅ Fixed missing PHP class imports ✅ Added comprehensive try-catch error recovery 🔧 Key fixes: - File existence checks before conversion attempts - 30-second timeout protection per file - Graceful handling of 500 errors and JSON parsing issues - Automatic continuation to next file on failures - Cache busting for JavaScript updates 🎯 Result: Bulk conversion now completes successfully even with missing files 🚀 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
43
vendor/rosell-dk/dom-util-for-webp/docs/development.md
vendored
Normal file
43
vendor/rosell-dk/dom-util-for-webp/docs/development.md
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
# Development
|
||||
|
||||
## Setting up the environment.
|
||||
|
||||
First, clone the repository:
|
||||
```
|
||||
cd whatever/folder/you/want
|
||||
git clone git@github.com:rosell-dk/dom-util-for-webp.git
|
||||
```
|
||||
|
||||
Then install the dev tools with composer:
|
||||
|
||||
```
|
||||
composer install
|
||||
```
|
||||
|
||||
If you don't have composer yet:
|
||||
- Get it ([download phar](https://getcomposer.org/composer.phar) and move it to /usr/local/bin/composer)
|
||||
- PS: PHPUnit requires php-xml, php-mbstring and php-curl. To install: `sudo apt install php-xml php-mbstring curl php-curl`
|
||||
|
||||
|
||||
Make sure you have [xdebug](https://xdebug.org/docs/install) installed, if you want phpunit tog generate code coverage report
|
||||
|
||||
## Unit Testing
|
||||
|
||||
To run all the unit tests do this:
|
||||
```
|
||||
composer test
|
||||
```
|
||||
This also runs tests on the builds.
|
||||
If you do not the coverage report:
|
||||
```
|
||||
composer phpunit
|
||||
```
|
||||
|
||||
Individual test files can be executed like this:
|
||||
```
|
||||
composer phpunit tests/ImageUrlReplacerTest.php
|
||||
composer phpunit tests/PictureTagsTest.php
|
||||
```
|
||||
|
||||
Note:
|
||||
The code coverage requires [xdebug](https://xdebug.org/docs/install)
|
||||
Reference in New Issue
Block a user