Open the1bit opened 3 years ago
Important missing detail: what version of PHP is running on the Wordpress server?
Hi,
You are right.
PHP version: 7.2
You seem to be hitting issue #94, try downgrading any other instances of GuzzleHttp
to v6.5.5.
Could you please help me how I can do it? Thx
Which wordpress plugins have you installed?
There are several ones. Latest was the online invoice maker for Woocommerce.
I cannot help you unless you list full names of all installed plug-ins.
Plugin Name: Integration for Billingo & WooCommerce Version: 2.5.0
I checked the plugin related files. I cannot find GuzzleHttp but I found BuzzleHttp.
Additionally I found the choose_handler part in vendor/buzzlehttp/buzzle/src/functions.php:
function choose_handler()
{
$handler = null;
if (function_exists('curl_multi_exec') && function_exists('curl_exec')) {
$handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
} elseif (function_exists('curl_exec')) {
$handler = new CurlHandler();
} elseif (function_exists('curl_multi_exec')) {
$handler = new CurlMultiHandler();
}
if (ini_get('allow_url_fopen')) {
$handler = $handler
? Proxy::wrapStreaming($handler, new StreamHandler())
: new StreamHandler();
} elseif (!$handler) {
throw new \RuntimeException('BuzzleHttp requires cURL, the '
. 'allow_url_fopen ini setting, or a custom HTTP handler.');
}
return $handler;
}
and this in vendor/buzzlehttp/buzzle/src/HandlerStack.php
public static function create(callable $handler = null)
{
$stack = new self($handler ?: choose_handler());
$stack->push(Middleware::httpErrors(), 'http_errors');
$stack->push(Middleware::redirect(), 'allow_redirects');
$stack->push(Middleware::cookies(), 'cookies');
$stack->push(Middleware::prepareBody(), 'prepare_body');
return $stack;
}
Looking at the plug-in page: https://wordpress.org/plugins/integration-for-billingo-woocommerce/
This plugin has been closed as of August 14, 2018 and is not available for download. This closure is permanent. Reason: Author Request.
The last commit was 4 years ago. I suggest finding a newer alternative plug-in.
But that may not be your issue since BuzzleHttp
is not referenced in your error logs.
Do you have any other plug-ins installed?
Ah, I found the correct link for your plug-in - could this be the issue: https://wordpress.org/support/topic/2-0-2-a-guzzlehttp-verzioja-breaking-change-et-tartalmaz/
Hi,
I have found the latest version of this plugin. https://plugins.trac.wordpress.org/browser/billingo/tags/2.5.0?order=name
I upgraded for it, but it uses the same method so the backup still fail.
I am having the same error. have you found a solution for this yet?
Hi,
I have been using your tool for ages. And some weeks ago my backup job fails every time with the following error: ERROR: Exception caught in Error: Call to undefined function GuzzleHttp\Psr7\uri_for()
Accordingly, I have no backup now. :-(
Steps to reproduce the behavior:
Expected behavior Run without error and do backup
System (please complete the following information):
Detailed error log: