# Apps page error after update to 25

**URL:** <https://help.nextcloud.com/t/apps-page-error-after-update-to-25/148083>\
**Category:** ℹ️ Support\
**Tags:** update\_problems, nc25\
**Created:** [October 22, 2022, 10:53am UTC](https://help.nextcloud.com/t/apps-page-error-after-update-to-25/148083 "2022-10-22T10:53:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [October 24, 2022, 9:58am UTC](https://help.nextcloud.com/t/apps-page-error-after-update-to-25/148083/4 "2022-10-24T09:58:50Z")

</div>

If you have suggestions for improvements, please submit a pull request on [Issues · nextcloud/server · GitHub](http://github.com/nextcloud/server/issues). This way, it will get in the updates, it will be tested and reviewed.

There is already a corresponding bug report, please refer to it when submitting a fix:

> <https://github.com/nextcloud/server/issues/34716>
>
> \### ⚠️ This issue respects the following points: ⚠️
> 
> \- \[X\] This is a \*\*bug\*\*, no…t a question or a configuration/webserver/proxy issue.
> \- \[X\] This issue is \*\*not\*\* already reported on Github \_(I've searched it)\_.
> \- \[X\] Nextcloud Server \*\*is\*\* up to date. See \[Maintenance and Release Schedule\](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
> \- \[X\] Nextcloud Server \*\*is\*\* running on 64bit capable CPU, PHP and OS.
> \- \[X\] I agree to follow Nextcloud's \[Code of Conduct\](https://nextcloud.com/contribute/code-of-conduct/).
> 
> \### Bug description
> 
> After fresh install of Nextcloud Server 25, "Applications" page does not load properly. Log page shows the following error:
> 
> \> \[index\] Erreur: Exception: OC\\App\\PlatformRepository::normalizeVersion(): Argument #1 ($version) must be of type string, null given, called in /home/qamydtds/drive/lib/private/App/PlatformRepository.php on line 53 in file '/home/qamydtds/drive/lib/private/App/PlatformRepository.php' line 148 at \<\<closure\>\>
> \> 
> \> 0. /home/qamydtds/drive/lib/private/AppFramework/App.php line 172
> \> OC\\AppFramework\\Http\\Dispatcher-\>dispatch()
> \> 1. /home/qamydtds/drive/lib/private/Route/Router.php line 298
> \> OC\\AppFramework\\App::main()
> \> 2. /home/qamydtds/drive/lib/base.php line 1047
> \> OC\\Route\\Router-\>match()
> \> 3. /home/qamydtds/drive/index.php line 36
> \> OC::handleRequest()
> \> 
> \> GET /index.php/settings/apps/list
> \> from 81.251.75.201 by \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* at 2022-10-21T01:57:46+00:00
> 
> Seems to be a problem with the way the exception is handled in the \[following code\](https://github.com/nextcloud/server/blob/67ce025d6190975b6c2b5a09ae700051d28f6b73/lib/private/App/PlatformRepository.php):
> \`\`\`php
> $ext = new \\ReflectionExtension($name);
> try {
> $prettyVersion = $ext-\>getVersion();
> $prettyVersion = $this-\>normalizeVersion($prettyVersion);
> } catch (\\UnexpectedValueException $e) {
> $prettyVersion = '0';
> $prettyVersion = $this-\>normalizeVersion($prettyVersion);
> }
> \`\`\`
> 
> 
> \### Steps to reproduce
> 
> 1. Do a fresh install using the \[web installer\](https://download.nextcloud.com/server/installer/setup-nextcloud.php)
> 2. Go the the "Applications" page
> 
> 
> \### Expected behavior
> 
> Applications page should load list of installed apps.
> 
> \### Installation method
> 
> Community Web installer on a VPS or web space
> 
> \### Operating system
> 
> Other
> 
> \### PHP engine version
> 
> PHP 8.0
> 
> \### Web server
> 
> Apache (supported)
> 
> \### Database engine version
> 
> MariaDB
> 
> \### Is this bug present after an update or on a fresh install?
> 
> Fresh Nextcloud Server install
> 
> \### Are you using the Nextcloud Server Encryption module?
> 
> Encryption is Disabled
> 
> \### What user-backends are you using?
> 
> \- \[X\] Default user-backend \_(database)\_
> \- \[\] LDAP/ Active Directory
> \- \[\] SSO - SAML
> \- \[\] Other
> 
> \### Configuration report
> 
> \`\`\`shell
> {
> "system": {
> "instanceid": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "passwordsalt": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "secret": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "trusted\_domains": \[
> "drive.brassbanddulaonnois.fr"
> \],
> "datadirectory": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbtype": "mysql",
> "version": "25.0.0.18",
> "overwrite.cli.url": "https:\\/\\/drive.brassbanddulaonnois.fr",
> "dbname": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbhost": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbport": "",
> "dbtableprefix": "oc\_",
> "mysql.utf8mb4": true,
> "dbuser": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbpassword": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "installed": true,
> "mail\_from\_address": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtpmode": "smtp",
> "mail\_sendmailmode": "smtp",
> "mail\_smtpsecure": "ssl",
> "mail\_domain": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtphost": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtpport": "465",
> "mail\_smtpauthtype": "LOGIN",
> "mail\_smtpauth": 1,
> "mail\_smtpname": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtppassword": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "default\_phone\_region": "FR"
> }
> }
> \`\`\`
> 
> 
> \### List of activated Apps
> 
> \`\`\`shell
> Enabled:
> - activity: 2.17.0
> - circles: 25.0.0
> - cloud\_federation\_api: 1.8.0
> - comments: 1.15.0
> - contactsinteraction: 1.6.0
> - dashboard: 7.5.0
> - dav: 1.24.0
> - federatedfilesharing: 1.15.0
> - federation: 1.15.0
> - files: 1.20.1
> - files\_pdfviewer: 2.6.0
> - files\_rightclick: 1.4.0
> - files\_sharing: 1.17.0
> - files\_trashbin: 1.15.0
> - files\_versions: 1.18.0
> - firstrunwizard: 2.14.0
> - logreader: 2.10.0
> - lookup\_server\_connector: 1.13.0
> - nextcloud\_announcements: 1.14.0
> - notifications: 2.13.1
> - oauth2: 1.13.0
> - password\_policy: 1.15.0
> - photos: 2.0.0
> - privacy: 1.9.0
> - provisioning\_api: 1.15.0
> - recommendations: 1.4.0
> - related\_resources: 1.0.0
> - serverinfo: 1.15.0
> - settings: 1.7.0
> - sharebymail: 1.15.0
> - support: 1.8.0
> - survey\_client: 1.13.0
> - systemtags: 1.15.0
> - text: 3.6.0
> - theming: 2.0.0
> - twofactor\_backupcodes: 1.14.0
> - updatenotification: 1.15.0
> - user\_status: 1.5.0
> - viewer: 1.9.0
> - weather\_status: 1.5.0
> - workflowengine: 2.7.0
> Disabled:
> - admin\_audit
> - bruteforcesettings
> - encryption
> - files\_external
> - suspicious\_login
> - twofactor\_totp
> - user\_ldap
> \`\`\`
> 
> 
> \### Nextcloud Signing status
> 
> \`\`\`shell
> No errors have been found.
> \`\`\`
> 
> 
> \### Nextcloud Logs
> 
> \`\`\`shell
> {"reqId":"Y1IGzjFupGkiWxMNgsXoGQAAUQo","level":3,"time":"2022-10-21T02:41:19+00:00","remoteAddr":"81.251.75.201","user":"Mathieu Desmidt","app":"index","method":"GET","url":"/index.php/settings/apps/list","message":"OC\\\\App\\\\PlatformRepository::normalizeVersion(): Argument #1 ($version) must be of type string, null given, called in /home/qamydtds/drive/lib/private/App/PlatformRepository.php on line 53 in file '/home/qamydtds/drive/lib/private/App/PlatformRepository.php' line 148","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:105.0) Gecko/20100101 Firefox/105.0","version":"25.0.0.18","exception":{"Exception":"Exception","Message":"OC\\\\App\\\\PlatformRepository::normalizeVersion(): Argument #1 ($version) must be of type string, null given, called in /home/qamydtds/drive/lib/private/App/PlatformRepository.php on line 53 in file '/home/qamydtds/drive/lib/private/App/PlatformRepository.php' line 148","Code":0,"Trace":\[{"file":"/home/qamydtds/drive/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher","type":"-\>"},{"file":"/home/qamydtds/drive/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\\\AppFramework\\\\App","type":"::"},{"file":"/home/qamydtds/drive/lib/base.php","line":1047,"function":"match","class":"OC\\\\Route\\\\Router","type":"-\>"},{"file":"/home/qamydtds/drive/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}\],"File":"/home/qamydtds/drive/lib/private/AppFramework/Http/Dispatcher.php","Line":165,"Previous":{"Exception":"TypeError","Message":"OC\\\\App\\\\PlatformRepository::normalizeVersion(): Argument #1 ($version) must be of type string, null given, called in /home/qamydtds/drive/lib/private/App/PlatformRepository.php on line 53","Code":0,"Trace":\[{"file":"/home/qamydtds/drive/lib/private/App/PlatformRepository.php","line":53,"function":"normalizeVersion","class":"OC\\\\App\\\\PlatformRepository","type":"-\>"},{"file":"/home/qamydtds/drive/lib/private/App/PlatformRepository.php","line":37,"function":"initialize","class":"OC\\\\App\\\\PlatformRepository","type":"-\>"},{"file":"/home/qamydtds/drive/lib/private/App/Platform.php","line":79,"function":"\_\_construct","class":"OC\\\\App\\\\PlatformRepository","type":"-\>"},{"file":"/home/qamydtds/drive/lib/private/App/DependencyAnalyzer.php","line":276,"function":"getLibraryVersion","class":"OC\\\\App\\\\Platform","type":"-\>"},{"file":"/home/qamydtds/drive/lib/private/App/DependencyAnalyzer.php","line":70,"function":"analyzeLibraries","class":"OC\\\\App\\\\DependencyAnalyzer","type":"-\>"},{"file":"/home/qamydtds/drive/apps/settings/lib/Controller/AppSettingsController.php","line":285,"function":"analyze","class":"OC\\\\App\\\\DependencyAnalyzer","type":"-\>"},{"function":"OCA\\\\Settings\\\\Controller\\\\{closure}","class":"OCA\\\\Settings\\\\Controller\\\\AppSettingsController","type":"-\>","args":\["\*\*\* sensitive parameters replaced \*\*\*"\]},{"file":"/home/qamydtds/drive/apps/settings/lib/Controller/AppSettingsController.php","line":251,"function":"array\_map"},{"file":"/home/qamydtds/drive/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"listApps","class":"OCA\\\\Settings\\\\Controller\\\\AppSettingsController","type":"-\>"},{"file":"/home/qamydtds/drive/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher","type":"-\>"},{"file":"/home/qamydtds/drive/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher","type":"-\>"},{"file":"/home/qamydtds/drive/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\\\AppFramework\\\\App","type":"::"},{"file":"/home/qamydtds/drive/lib/base.php","line":1047,"function":"match","class":"OC\\\\Route\\\\Router","type":"-\>"},{"file":"/home/qamydtds/drive/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}\],"File":"/home/qamydtds/drive/lib/private/App/PlatformRepository.php","Line":148},"CustomMessage":"--"}}
> \`\`\`
> 
> 
> \### Additional info
> 
> Just going to mention that the error was reproducible with php 7.4 and 8.1 too.

I just see that you disable the type hints. That might be a workaround if you are blocked by the issue. For a clean fix, there should probably be a cleaner fix that the type hints won’t fail any more. Sorry for the noise about the pull request.

---

_[View the full topic](https://help.nextcloud.com/t/apps-page-error-after-update-to-25/148083)._
