Apps: An error occurred during the request. Unable to proceed

After updating to 25, the Apps-List shows an error. No apps are displayed. Before updating, everything was okay. A clean, new installation has the same error. Because it’s a webhosting-server, I don’t have ssh-connection.

“An error occurred during the request. Unable to proceed.”

Anybody had the same problem and knows a solution?

Here is the log:

Exception: OC\App\PlatformRepository::normalizeVersion(): Argument #1 ($version) must be of type string, null given, called in /home/hub3/lib/private/App/PlatformRepository.php on line 53 in file ‘/home/hub3/lib/private/App/PlatformRepository.php’ line 148

    /home/hub3/lib/private/AppFramework/App.php - line 172:
    OC\AppFramework\Http\Dispatcher->dispatch()

    /home/hub3/lib/private/Route/Router.php - line 298:
    OC\AppFramework\App::main()

    /home/hub3/lib/base.php - line 1047:
    OC\Route\Router->match()

    /home/hub3/index.php - line 36:
    OC::handleRequest()

Caused by TypeError: OC\App\PlatformRepository::normalizeVersion(): Argument #1 ($version) must be of type string, null given, called in /home/hub3/lib/private/App/PlatformRepository.php on line 53

    /home/hub3/lib/private/App/PlatformRepository.php - line 53:
    OC\App\PlatformRepository->normalizeVersion()

    /home/hub3/lib/private/App/PlatformRepository.php - line 37:
    OC\App\PlatformRepository->initialize()

    /home/hub3/lib/private/App/Platform.php - line 79:
    OC\App\PlatformRepository->__construct()

    /home/hub3/lib/private/App/DependencyAnalyzer.php - line 276:
    OC\App\Platform->getLibraryVersion()

    /home/hub3/lib/private/App/DependencyAnalyzer.php - line 70:
    OC\App\DependencyAnalyzer->analyzeLibraries()

    /home/hub3/apps/settings/lib/Controller/AppSettingsController.php - line 285:
    OC\App\DependencyAnalyzer->analyze()

    <<closure>>

    OCA\Settings\Controller\AppSettingsController->OCA\Settings\Controller\{closure}("*** sensiti ... *")

    /home/hub3/apps/settings/lib/Controller/AppSettingsController.php - line 251:
    array_map()

    /home/hub3/lib/private/AppFramework/Http/Dispatcher.php - line 225:
    OCA\Settings\Controller\AppSettingsController->listApps()

    /home/hub3/lib/private/AppFramework/Http/Dispatcher.php - line 133:
    OC\AppFramework\Http\Dispatcher->executeController()

    /home/hub3/lib/private/AppFramework/App.php - line 172:
    OC\AppFramework\Http\Dispatcher->dispatch()

    /home/hub3/lib/private/Route/Router.php - line 298:
    OC\AppFramework\App::main()

    /home/hub3/lib/base.php - line 1047:
    OC\Route\Router->match()

    /home/hub3/index.php - line 36:
    OC::handleRequest()

Nextcloud version: 25.0.1
Operating system and version: Linux 4.18.0-348.12.2.lve.1.el7h.x86_64 x86_64 (Webhosting)
Apache version: 2.4.54
PHP version: 8.1.12
MySQL version: 10.3.36-MariaDB-log-cll-lve


SOLUTION from NC100:

Go this page PlatformRepository

Copy the code

Open a new text file, paste the code and save it. Rename the file to PlatformRepository.php

Go to your Nextcloud installation and find this file /lib/private/App/PlatformRepository.php

Delete the old file and upload the new file you just created.

I am having the same error starting after the upgrade to Nextcloud Hub 3 (25.0.1).
Operating System: Linux 3.10.0-962.3.2.lve1.5.68.el7.x86_64 x86_64
CPU: Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz (64 cores)
Memory: 251.06 GB
PHP: Version: 7.4.32
Type: mysql Version: 10.3.37

I’m new to Nextcloud and I’m facing the same problem when I choose the apps

A fix for this problem is posted on Github (you can download the file and replace the old one).

#34937

See this thread…

Wow, NC100, thank you! It’s workin :slight_smile:

Solution:

Change /lib/private/App/PlatformRepository.php line 148

from

public function normalizeVersion(string $version, ?string $fullVersion = null): string {

to

public function normalizeVersion($version, $fullVersion = null) {

That’s only a temporary solution. You’ll find the real fix on Github…

#34937

Thanks NC100 for your efforts, as simple nc-user and non-github-user, the real solution is absolutely incomprehensible for me. Would it be possible for you to translate these chinese-looking information? Please?

Otherwise I have to wait for an official fixed update.

Sure :slight_smile:

Go this page PlatformRepository

Copy the code

Open a new text file, paste the code and save it. Rename the file to platformrepository.php

Go to your Nextcloud installation and find this file /lib/private/app/plattformrepository.php

Delete the old file and upload the new file you just created.

You are great, NC100, thank you so much! Maybe, I should learn to use Github :smiley:

This worked for me also! Thank you. Will there be any upgrade issue next time with having this “custom” PlatformRepository.php file?

There should be no upgrade issue, however if the fix is not implemented in the next release you might need to repeat the process.

Unfortunatley exchanging PlattformRepository.php does not work in my new 25.0.1 installation.
I got 3 errors:
1.
[PHP] Fehler: Error: include(/home/…/lib/composer/composer/…/…/…/lib/private/App/PlatformRepository.php): failed to open stream: No such file or directory at /hime/…/lib/composer/composer/ClassLoader.php#571 at <>

  1. /home/…/lib/composer/composer/ClassLoader.php line 571
    OC\Log\ErrorHandler::onError(2, “include(/home/m … y”, “/home/ … p”, 571, ["/home/modelena … "])

  2. /home/…/lib/composer/composer/ClassLoader.php line 571
    include()

  3. /home/…/lib/composer/composer/ClassLoader.php line 428
    Composer\Autoload\includeFile(“/home/modelena/ … p”)

  4. <>
    Composer\Autoload\ClassLoader->loadClass(“OC\App\PlatformRepository”)

  5. /home/…/lib/private/App/Platform.php line 79
    spl_autoload_call(“OC\App\PlatformRepository”)

  6. /home/…/lib/private/App/DependencyAnalyzer.php line 276
    OC\App\Platform->getLibraryVersion(“openssl”)

  7. /home/…/lib/private/App/DependencyAnalyzer.php line 70
    OC\App\DependencyAnalyzer->analyzeLibraries([“openssl”,[[“25”,“25”]]])

  8. /home/…/apps/settings/lib/Controller/AppSettingsController.php line 285
    OC\App\DependencyAnalyzer->analyze(“*** sensitive parameters replaced ***”, false)

  9. <>
    OCA\Settings\Controller\AppSettingsController->OCA\Settings\Controller{closure}(“*** sensitive parameters replaced ***”)

  10. /home/…/apps/settings/lib/Controller/AppSettingsController.php line 251
    array_map(Closure {}, [[“activity”,"Ac … "])

  11. /home/…/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Settings\Controller\AppSettingsController->listApps()

  12. /home/…/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con … {}, “listApps”)

  13. …/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con … {}, “listApps”)

  14. …/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main(“OCA\Settings\ … r”, “listApps”, OC\AppFramework\ … {}, [“settings.AppSettings.listApps”])

  15. …/lib/base.php line 1047
    OC\Route\Router->match(“/settings/apps/list”)

  16. …/index.php line 36
    OC::handleRequest()

[PHP] Fehler: Error: include(): Failed opening ‘…/lib/composer/composer/…/…/…/lib/private/App/PlatformRepository.php’ for inclusion (include_path=‘…/3rdparty/pear/archive_tar:…/3rdparty/pear/console_getopt:…/3rdparty/pear/pear-core-minimal/src:…/3rdparty/pear/pear_exception:…/apps’) at …/lib/composer/composer/ClassLoader.php#571 at <>

  1. …/lib/composer/composer/ClassLoader.php line 571
    OC\Log\ErrorHandler::onError(2, “include(): Fail … )”, “/home/modelena/ … p”, 571, ["/home/modelena … "])
  2. …/lib/composer/composer/ClassLoader.php line 571
    include()
  3. …/lib/composer/composer/ClassLoader.php line 428
    Composer\Autoload\includeFile(“/home/modelena/ … p”)
  4. <>
    Composer\Autoload\ClassLoader->loadClass(“OC\App\PlatformRepository”)
  5. …/lib/private/App/Platform.php line 79
    spl_autoload_call(“OC\App\PlatformRepository”)
  6. …/lib/private/App/DependencyAnalyzer.php line 276
    OC\App\Platform->getLibraryVersion(“openssl”)
  7. …/lib/private/App/DependencyAnalyzer.php line 70
    OC\App\DependencyAnalyzer->analyzeLibraries([“openssl”,[[“25”,“25”]]])
  8. …/apps/settings/lib/Controller/AppSettingsController.php line 285
    OC\App\DependencyAnalyzer->analyze(“*** sensitive parameters replaced ***”, false)
  9. <>
    OCA\Settings\Controller\AppSettingsController->OCA\Settings\Controller{closure}(“*** sensitive parameters replaced ***”)
  10. …/apps/settings/lib/Controller/AppSettingsController.php line 251
    array_map(Closure {}, [[“activity”,"Ac … "])
  11. …/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Settings\Controller\AppSettingsController->listApps()
  12. …/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con … {}, “listApps”)
  13. …/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con … {}, “listApps”)
  14. …/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main(“OCA\Settings\ … r”, “listApps”, OC\AppFramework\ … {}, [“settings.AppSettings.listApps”])
  15. …/lib/base.php line 1047
    OC\Route\Router->match(“/settings/apps/list”)
  16. …/index.php line 36
    OC::handleRequest()

GET …/index.php/settings/apps/list

[index] Fehler: Exception: Class ‘OC\App\PlatformRepository’ not found in file ‘…/lib/private/App/Platform.php’ line 79 at <>

  1. …/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con … {}, “listApps”)
  2. …/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main(“OCA\Settings\ … r”, “listApps”, OC\AppFramework\ … {}, [“settings.AppSettings.listApps”])
  3. …/lib/base.php line 1047
    OC\Route\Router->match(“/settings/apps/list”)
  4. …/index.php line 36
    OC::handleRequest()

GET …/index.php/settings/apps/list

Been working with nextcloud version 25.0.2 for a while, all apps up to date.Today an update notification from calendar to 4.2.1.
Clicked asks for password and probably typed wrong password and now get this notification.
Restart does not help and can not access my apps because immediately the message An error occurred during the request. Unable to proceed.
I checked the file /lib/private/App/PlatformRepository.php and everything is there as indicated in #34937.
Are there any other solutions I can check?

Will continue to look for other solutions but am open to suggestions here.

Regards,
Jan
image

Solved.
Problem turned out to be a reverse nginx proxy.
Fixed that and then the app update went ok again and no more errors.

Hi I’m new to this and I have the same issue,… however…
I can’t find the directory /lib/private/App/ anywhere on my server…
and I can’t find the file /lib/private/App/PlatformRepository.php too…