Self-update fait page blanche #46

Closed
opened 3 months ago by marcimat · 1 comments
Collaborator

PHP Warning:  include(phar:///~/spip_loader.php/vendor/composer/../guzzlehttp/promises/src/FulfilledPromise.php): 
failed to open stream: phar error: internal corruption of phar "/~/spip_loader.php" 
(actual filesize mismatch on file "vendor/guzzlehttp/promises/src/FulfilledPromise.php") 
in phar:///~/spip_loader.php/vendor/composer/ClassLoader.php on line 582

PHP Warning:  include(): Failed opening 'phar:///~/spip_loader.php/vendor/composer/../guzzlehttp/promises/src/FulfilledPromise.php' for inclusion 
(include_path='.:/Applications/MAMP/bin/php/php7.4.33/lib/php') in phar:///~/spip_loader.php/vendor/composer/ClassLoader.php on line 582

PHP Fatal error:  Uncaught Error: Class 'GuzzleHttp\Promise\FulfilledPromise' not found 
in phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:117

Stack trace:
#0 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#1 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#2 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#3 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/PrepareBo in phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 117
```text PHP Warning: include(phar:///~/spip_loader.php/vendor/composer/../guzzlehttp/promises/src/FulfilledPromise.php): failed to open stream: phar error: internal corruption of phar "/~/spip_loader.php" (actual filesize mismatch on file "vendor/guzzlehttp/promises/src/FulfilledPromise.php") in phar:///~/spip_loader.php/vendor/composer/ClassLoader.php on line 582 PHP Warning: include(): Failed opening 'phar:///~/spip_loader.php/vendor/composer/../guzzlehttp/promises/src/FulfilledPromise.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php7.4.33/lib/php') in phar:///~/spip_loader.php/vendor/composer/ClassLoader.php on line 582 PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\Promise\FulfilledPromise' not found in phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:117 Stack trace: #0 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #1 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #2 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #3 phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/PrepareBo in phar:///~/spip_loader.php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 117 ```
Poster
Collaborator

On fait un

$remote->copyTo($url_spip_loader, basename($url_spip_loader));

Qui appelle Guzzle avec l’option sink donc, pour réécrire le fichier.

Il semblerait qu’il se passe quelque chose dans Guzzle, après la copie, qui nécessite une relecture du phar:// qui n’a pas totalement été fini d’écrire véritablement ou qqc d’approchant

On fait un ```php $remote->copyTo($url_spip_loader, basename($url_spip_loader)); ``` Qui appelle Guzzle avec l’option `sink` donc, pour réécrire le fichier. Il semblerait qu’il se passe quelque chose dans Guzzle, après la copie, qui nécessite une relecture du `phar://` qui n’a pas totalement été fini d’écrire véritablement ou qqc d’approchant
marcimat referenced this issue from a commit 3 months ago
b_b closed this issue 3 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: spip-contrib-outils/spip_loader#46
Loading…
There is no content yet.