-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Nextcloud 26.0.2 email notification error #38957
Comments
If you run into the situation that a configuration value is “unchangeable”, a frequent explanation is another file in the configuration directory ending with |
I understand, but in this case it is an incorrectly defined variable type or incorrectly fetched from the config. a float is required and a string is fetched.
|
Do you have another file, in your config directory, ending with
Our default is 10 (without quotes) which is, in php, a valid float.
string, wont work.
int, should work.
Correct? If mail_smtptimeout => '30' reappears it's defined somewhere else. |
I don't have another *.config.php file there is only:
Exactly |
Then |
Unfortunately it does not work |
Same problem here on Synology DSM 7.2 with php8.1 and Apache2.4. Many Thanks for the tipp with the workaround - "solved" my problem for now. Best regards |
Just documenting, RHEL 8 with PHP 8.0.27, this setting is a gotcha during upgrade. Prior to version 26, this setting allowed quotes, now that causes email to fail. I had to make the change documented in this ticket: 33c33
|
Bug description
hello
there is a bug in mail notification setting.
in log i have:
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.phpstill nothing.
chnge setting from web admin panel restore
"mail_smtptimeout" => '30',
to config.phponly delete
"mail_smtptimeout" => '30'
, from config.phpand
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?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: