Cant share email links

been using nextcloud for 2 years, and never had to use forum, unfortunately i have an issue now.
i have moved server to another physical server and did a restore using virtualmin and ubuntu 20.04.
restore worked as it should, only issue i have now is that i cannot share links via email.
email is setup in settings and i can send confirmation email, i can also read email using the email app.
what could be the issue?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): replace me
Operating system and version (eg, Ubuntu 20.04): replace me
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____:



Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.


i updated to the very last version of nextcloud as of today and i cannot see the log because i get this message pop every half second
A non-numeric value encountered at /home/my.domain/public_html/cloud/3rdparty/phpseclib/phpseclib/phpseclib/bootstrap.php#10
i had this issue before and didnt have anything to do with email sharing but id like to fix it nonetheless

You find the log at

Maybe you must increase the loglevel in config/config.php (documentation).

Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 = Warning, 3 = Error, and 4 = Fatal. The default value is Warning.

here is the log, but i cant see any issues that relate to emails not being sent.
{“reqId”:“zzBOpw1krSB4M0ILof9N”,“level”:3,“time”:“2022-07-06T00:11:21+00:00”,“remoteAddr”:“”,“user”:“admin”,“app”:“PHP”,“method”:“POST”,“url”:"/cloud/index.php/apps/text/session/sync",“message”:“A non-numeric value encountered at /home/”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0”,“version”:“”}
{“reqId”:“ypXjegur7EMC1NY8o4vz”,“level”:3,“time”:“2022-07-06T00:11:27+00:00”,“remoteAddr”:“”,“user”:“admin”,“app”:“PHP”,“method”:“POST”,“url”:"/cloud/index.php/apps/text/session/sync",“message”:“A non-numeric value encountered at /home/”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0”,“version”:“”}
{“reqId”:“viSkcFk9aep75Vpq2E6G”,“level”:3,“time”:“2022-07-06T00:11:29+00:00”,“remoteAddr”:“”,“user”:“admin”,“app”:“PHP”,“method”:“GET”,“url”:"/cloud/index.php/csrftoken",“message”:“A non-numeric value encountered at /home/”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36 Edg/103.0.1264.44”,“version”:“”}
{“reqId”:“kJmXPULPq5Y1mUVaQ5Fp”,“level”:3,“time”:“2022-07-06T00:11:32+00:00”,“remoteAddr”:“”,“user”:“admin”,“app”:“PHP”,“method”:“PROPFIND”,“url”:"/cloud/remote.php/dav/files/admin/",“message”:“A non-numeric value encountered at /home/”,“userAgent”:“Mozilla/5.0 (Windows) mirall/3.5.0stable-Win64 (build 20220502) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“”}

Maybe the logs does not belong to your problem. But also i do not find your error in the internet. I found different errors for “phpseclib” and maybe they belong to the php version. Can you check your php-version? Do you use the default php-version from Ubuntu 20.04 LTS PHP 7.4?

Thanks for reply, yes i am using php 7.4