1

Topic: PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.4.2
- Deployed with iRedMail Easy or the downloadable installer? iRedmail Easy
- Linux/BSD distribution name and version: Ubuntu Server 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB/MySQL
- Web server (Apache or Nginx): Ngninx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

So i have been maintaing the updates on my Mail Server but since upgrading Roundcube to 1.5.1 i have been having this error in mail.log, PHP Fatal error:  Uncaught Error: Class 'GuzzleHttp\Client' not found in /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/rcube.php:271

Any ideas ?

Thanks.

Jack.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found

jackb wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.4.2
- Deployed with iRedMail Easy or the downloadable installer? iRedmail Easy
- Linux/BSD distribution name and version: Ubuntu Server 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB/MySQL
- Web server (Apache or Nginx): Ngninx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

So i have been maintaing the updates on my Mail Server but since upgrading Roundcube to 1.5.1 i have been having this error in mail.log, PHP Fatal error:  Uncaught Error: Class 'GuzzleHttp\Client' not found in /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/rcube.php:271

Any ideas ?

Thanks.

Jack.

Update, I just looked in Roundcube/rcube.php and line 271 shows,

/**
     * Initialize HTTP client
     *
     * @param array $options Configuration options
     *
     * @return \GuzzleHttp\Client HTTP client
     */
    public function get_http_client($options = [])
    {
        return new \GuzzleHttp\Client($options + $this->config->get('http_client'));
    }


I think this is a bug.

3

Re: PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found

Updating Roundcube with the "roundcubemail-x.y.z-complete.tar.gz" package should fix the issue. The "-complete" package contains all required dependent packages.
https://github.com/roundcube/roundcubemail/tags

4

Re: PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found

ZhangHuangbin wrote:

Updating Roundcube with the "roundcubemail-x.y.z-complete.tar.gz" package should fix the issue. The "-complete" package contains all required dependent packages.
https://github.com/roundcube/roundcubemail/tags

Hi,

Thanks for your message, I did the following you mentioned a few hours ago now running 1.5.2 and the error has disappeared in the mail.log will monitor it.

Thanks.

Jack.