Create user error: An error occurred during the request. Unable to proceed

I got this error when creating new user on nextcloud 29.0.4


I determined the cause was that when I created an add user to a group, this error appeared.

And here is the log when I make the error
{“reqId”:“bfjgEatg7WCHcCGWhCfv”,“level”:3,“time”:“2025-03-19 01:08:08”,“remoteAddr”:“101.96.120.42”,“user”:“admin”,“app”:“PHP”,“method”:“GET”,“url”:“/ocs/v2.php/search/providers/settings_apps/search?term=iway3&from=%2Fsettings%2Fusers”,“message”:“Undefined array key "name" at /mnt/nextcloud/apps/settings/lib/Search/AppSearch.php#67”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36”,“version”:“29.0.4.1”,“data”:{“app”:“PHP”}}
{“reqId”:“bfjgEatg7WCHcCGWhCfv”,“level”:3,“time”:“2025-03-19 01:08:08”,“remoteAddr”:“101.96.120.42”,“user”:“admin”,“app”:“no app in context”,“method”:“GET”,“url”:“/ocs/v2.php/search/providers/settings_apps/search?term=iway3&from=%2Fsettings%2Fusers”,“message”:“stripos(): Argument #1 ($haystack) must be of type string, null given in file ‘/mnt/nextcloud/apps/settings/lib/Search/AppSearch.php’ line 67”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36”,“version”:“29.0.4.1”,“exception”:{“Exception”:“Exception”,“Message”:“stripos(): Argument #1 ($haystack) must be of type string, null given in file ‘/mnt/nextcloud/apps/settings/lib/Search/AppSearch.php’ line 67”,“Code”:0,“Trace”:[{“file”:“/mnt/nextcloud/lib/private/AppFramework/App.php”,“line”:184,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/mnt/nextcloud/lib/private/Route/Router.php”,“line”:338,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/mnt/nextcloud/ocs/v1.php”,“line”:66,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/mnt/nextcloud/ocs/v2.php”,“line”:23,“args”:[“/mnt/nextcloud/ocs/v1.php”],“function”:“require_once”}],“File”:“/mnt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“Line”:170,“Previous”:{“Exception”:“TypeError”,“Message”:“stripos(): Argument #1 ($haystack) must be of type string, null given”,“Code”:0,“Trace”:[{“file”:“/mnt/nextcloud/apps/settings/lib/Search/AppSearch.php”,“line”:67,“function”:“stripos”},{“file”:“/mnt/nextcloud/lib/private/Search/SearchComposer.php”,“line”:345,“function”:“search”,“class”:“OCA\Settings\Search\AppSearch”,“type”:“->”},{“file”:“/mnt/nextcloud/core/Controller/UnifiedSearchController.php”,“line”:125,“function”:“search”,“class”:“OC\Search\SearchComposer”,“type”:“->”},{“file”:“/mnt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:232,“function”:“search”,“class”:“OC\Core\Controller\UnifiedSearchController”,“type”:“->”},{“file”:“/mnt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:138,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/mnt/nextcloud/lib/private/AppFramework/App.php”,“line”:184,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/mnt/nextcloud/lib/private/Route/Router.php”,“line”:338,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/mnt/nextcloud/ocs/v1.php”,“line”:66,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/mnt/nextcloud/ocs/v2.php”,“line”:23,“args”:[“/mnt/nextcloud/ocs/v1.php”],“function”:“require_once”}],“File”:“/mnt/nextcloud/apps/settings/lib/Search/AppSearch.php”,“Line”:67},“message”:“stripos(): Argument #1 ($haystack) must be of type string, null given in file ‘/mnt/nextcloud/apps/settings/lib/Search/AppSearch.php’ line 67”,“exception”:{},“CustomMessage”:“stripos(): Argument #1 ($haystack) must be of type string, null given in file ‘/mnt/nextcloud/apps/settings/lib/Search/AppSearch.php’ line 67”}}

Is there any way to determine the cause?

Unfortunately you have ignored the support template and didn’t provide enough information about your environment, software versions, installed apps etc. to allow further analysis.

1 Like

The server I run:

  • Rocky Linux 9.4
  • PHP-FPM 8.2
  • Nginx 1.20.1
  • Nextcloud 29.0.4
  • Mariadb 10.5.22

You’are still ignoring the support template :frowning: What about installed addons, the Nextcloud configuration etc.? Additionally please set the log lines in a ''' (three backticks) block so that it is formatted correctly.

1 Like

Before we spend time troubleshooting this, can you at least make sure you’re up-to-date with maintenance releases? You’re ten (!) maintenance releases behind.

The latest maintenance release for v29 is 29.0.14 as of this week.

1 Like