Getting Errors in Log Notifications.php#297 and #296 & i'm not beable to stop the upload & sharing to mail doesn't work

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com 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:

example

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

longer
example
here

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): 26.0.1
Operating system and version (eg, Ubuntu 20.04): Synology NAS
Apache or nginx version (eg, Apache 2.4.25): 2.4.54-0125
PHP version (eg, 7.4): 8.0.23-0103

The issue you are facing:
Getting the following Errors inside the Logfile:

[PHP] ERROR: Trying to access array offset on value of type null at nextcloud/apps/federatedfilesharing/lib/Notifications.php#297
Also
[PHP] ERROR Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296
didn’t find out yet when excactly it happens but it comes in a row about 12 times.

I also found out i am not beable to stop the upload … even if i get the message Upload aborted.

Also the sharing to mail addon didn’t work at all no email was send out.
I’m not 100% sure but i guess it was followed by

[PHP] ERROR: Undefined array key 1 at [PHP] Fehler: Undefined array key 1 at /nextcloud/lib/private/Profile/Actions/FediverseAction.php#87
GET /index.php/settings/user
from IP.IP.IP.IP by 123456FE-5678-123E-A123-123AD45678 at 2023-04-21T012:51:29+00:00

maybe related by using the LDAP/AD Integration

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

Steps to replicate it:

don’t know yet i need some help i guess

The output of your Nextcloud log in Admin > Logging:

[PHP] Fehler: Trying to access array offset on value of type null at nextcloud/apps/federatedfilesharing/lib/Notifications.php#297 
Also 
[PHP] Fehler: Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296
and
[PHP] ERROR: Undefined array key 1 at [PHP] Fehler: Undefined array key 1 at /nextcloud/lib/private/Profile/Actions/FediverseAction.php#87
GET /index.php/settings/user
from IP.IP.IP.IP by 123456FE-5678-123E-A123-123AD45678 at 2023-04-21T012:51:29+00:00


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

<?php
$CONFIG = array (
  'instanceid' => 'x123',
  'passwordsalt' => 'x123',
  'secret' => 'x123',
  'trusted_domains' => 
  array (
    0 => 'somewhereontheinternet.com',
  ),
  'datadirectory' => '/volume1/nextcloudData',
  'dbtype' => 'mysql',
  'version' => '26.0.1.1',
  'overwrite.cli.url' => 'https://somewhereontheinternet.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'dbuser',
  'dbpassword' => 'x123',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtphost' => 'usingMS.mail.protection.outlook.com',
  'mail_smtpport' => '25',
  'mail_from_address' => 'email',
  'mail_domain' => 'somewhereontheinternet.com',
  'updater.secret' => '12345',
  'default_phone_region' => 'DE',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'Group1',
    1 => 'Group2',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
    0 => 'Group3',
  ),
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'redis' => 
  array (
    'host' => '127.0.0.1',
    'port' => 6379,
    'timeout' => '0',
    'dbindex' => '0',
  ),
);

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

if needed i'll get them

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.

{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER1”,“level”:3,“time”:“2023-04-22T08:35:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“aNMeFnZLfLls9JZpWzC5”,“level”:3,“time”:“2023-04-22T08:50:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#296”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}
{“reqId”:“IDUSER3”,“level”:3,“time”:“2023-04-22T09:05:03+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Trying to access array offset on value of type null at /nextcloud/apps/federatedfilesharing/lib/Notifications.php#297”,“userAgent”:“–”,“version”:“26.0.1.1”,“data”:{“app”:“PHP”}}