Hello !
Nextcloud version : 18.0.3
Operating system and version : Ubuntu 18.04 server
Nginx version : 1.14.0
PHP version : 7.2
Is this the first time you’ve seen this error? : Y
Steps to replicate it:
(I cannot try to reinstall everything to see if the problem persists after that, but I suppose something is wrong only with me because no one else has opened a thread for this)
But the issue occurs when :
Click on my admin avatar => Applications
A little notification popup shows and says :
“An error occured during the request. Unable to process request.”
[Something like that because my error message is in french]
The output of your Nextcloud log in Admin > Logging:
[index] Error: Exception: Argument 2 passed to OC\App\DependencyAnalyzer::analyze() must be of the type boolean, null given, called in /srv/nextcloud/apps/settings/lib/Controller/AppSettingsController.php on line 277 at <<closure>>
0. /srv/nextcloud/lib/private/AppFramework/App.php line 125
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "listApps")
1. /srv/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
OC\AppFramework\App::main("OCA\\Settings\\ ... r", "listApps", OC\AppFramework\ ... {}, {_route: "settings.AppSettings.listApps"})
2. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "settings.AppSettings.listApps"})
3. /srv/nextcloud/lib/private/Route/Router.php line 299
call_user_func(OC\AppFramework\ ... {}, {_route: "settings.AppSettings.listApps"})
4. /srv/nextcloud/lib/base.php line 1008
OC\Route\Router->match("/settings/apps/list")
5. /srv/nextcloud/index.php line 38
OC::handleRequest()
GET /settings/apps/list
from ***.***.***.*** by ******** at 2020-04-19T22:46:41+00:00
[PHP] Error: in_array() expects parameter 2 to be array, string given at /srv/nextcloud/apps/settings/lib/Controller/AppSettingsController.php#274
GET /settings/apps/list
from ***.***.***.*** by ********** at 2020-04-19T22:46:41+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'occusqrdantw',
'passwordsalt' => '*********************************',
'secret' => '************************************************',
'trusted_domains' =>
array (
0 => 'mydomain.name',
),
'datadirectory' => '/srv/nextcloud/data',
'dbtype' => 'mysql',
'version' => '18.0.3.0',
'overwrite.cli.url' => 'https://myIP',
'dbname' => 'nextclouddb',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'memcache.local' => '\\OC\\Memcache\\APCu',
'mysql.utf8mb4' => true,
'dbuser' => 'someDBuser',
'dbpassword' => 'someDBpwd',
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'somemail',
'mail_domain' => 'somemaildomain',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'somesmtphost',
'mail_smtpport' => '465',
'mail_smtpname' => 'somesmtpname',
'mail_smtppassword' => 'somesmtppwd',
'default_language' => 'fr',
'force_language' => 'fr',
'default_locale' => 'fr_FR',
'force_locale' => 'fr_FR',
'app_install_overwrite' => '',
'remember_login_cookie_lifetime' => 1296000,
'session_lifetime' => 172800,
'session_keepalive' => true,
0 =>
array (
0 => 'afterlogic',
),
'updater.release.channel' => 'stable',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
);
The output of your nginx log :
There is nothing related to this issue in NGINX error/access logs …
So here is my issue. I don’t really know when it appeared, but I remember that my update to 18.0.2 was fine. When I updated to 18.0.3, it was OK too, so I don’t really know more.
One recent change I made is some tweaking in php.ini file, but nothing related directly to NC.
I already tried to force occ to repair but nothing was needing repair.
I also tried occ update but just got “Nextcloud is already latest version”.
I want to say that if I comment out lines 274 and 277 in the “/srv/nextcloud/apps/settings/lib/Controller/AppSettingsController.php” file, eveything works great, and AppStore loads. I can update my apps and everything.
I tried different browsers and platforms, so it’s definitely not a client side issue !
Weird isn’t it ?
Thanks for your help !
Cheers
PS: I’m a complete noob about PHP and Symfony, sorry if I’m missing something obvious !
EDIT (23/04/2020) : Issue still there even after update to 18.0.4 today…