Skip to content

[Bug]: Nextcloud 26.0.2 email notification error #38957

@cycu85

Description

@cycu85

⚠️ This issue respects the following points: ⚠️

Bug description

hello

there is a bug in mail notification setting.

in log i have:

Exception: Symfony\Component\Mailer\Transport\Smtp\Stream\SocketStream::setTimeout(): Argument #1 ($timeout) must be of type float, string given, called in /var/www/nextcloud/lib/private/Mail/Mailer.php on line 305 in file '/var/www/nextcloud/3rdparty/symfony/mailer/Transport/Smtp/Stream/SocketStream.php' line 37

Steps to reproduce

in config.php i try change
"mail_smtptimeout" => '30', to "mail_smtptimeout" => 30,
but no efect.

so i delete "mail_smtptimeout" => '30' from config.php
still nothing.

chnge setting from web admin panel restore "mail_smtptimeout" => '30', to config.php

only delete "mail_smtptimeout" => '30', from config.php
and
change
/var/www/nextcloud/3rdparty/symfony/mailer/Transport/Smtp/Stream/SocketStream.php in line 47
from
return $this->timeout ?? (float) \ini_get('default_socket_timeout');
to:
return $this->timeout ?? (float) \ini_get(30);

help me to workaround problem

Expected behavior

can you fix it?

Installation method

None

Nextcloud Server version

26

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions