Hello i failed to upgrade

[root@racknerd-46bba9 community]# php flarum cache:clear
PHP Fatal error:  Uncaught ReflectionException: Class Reflar\LevelRanks\Listeners\LoadSettingsFromDatabase does not exist in /var/community/vendor/illuminate/container/Container.php:779
Stack trace:
#0 /var/community/vendor/illuminate/container/Container.php(779): ReflectionClass->__construct('Reflar\\LevelRan...')
#1 /var/community/vendor/illuminate/container/Container.php(658): Illuminate\Container\Container->build('Reflar\\LevelRan...')
#2 /var/community/vendor/illuminate/container/Container.php(609): Illuminate\Container\Container->resolve('Reflar\\LevelRan...', Array)
#3 /var/community/vendor/flarum/core/src/Foundation/Application.php(521): Illuminate\Container\Container->make('Reflar\\LevelRan...', Array)
#4 /var/community/vendor/illuminate/events/Dispatcher.php(154): Flarum\Foundation\Application->make('Reflar\\LevelRan...')
#5 /var/community/vendor/illuminate/events/Dispatcher.php(140): Illuminate\Events\Dispatcher->resolveSubscriber('Reflar\\LevelRan...')
#6 /var/community/vendor/reflar/level-ranks/extend.php(27): Ill in /var/community/vendor/illuminate/container/Container.php on line 779
[root@racknerd-46bba9 community]# 

It seems that the plug-in before the upgrade was not completely closed. How can I solve it now?

  • Kylo replied to this.

    Kylo
    ran the command, again php flarum php cache:clear show

    [root@racknerd-46bba9 community]# php flarum cache:clear
    PHP Fatal error:  Uncaught FastRoute\BadRouteException: Cannot register two routes matching "/admin-mail" for method "POST" in /var/community/vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php:55
    Stack trace:
    #0 /var/community/vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php(18): FastRoute\DataGenerator\RegexBasedAbstract->addStaticRoute('POST', Array, Object(Closure))
    #1 /var/community/vendor/flarum/core/src/Http/RouteCollection.php(68): FastRoute\DataGenerator\RegexBasedAbstract->addRoute('POST', Array, Object(Closure))
    #2 /var/community/vendor/flarum/core/src/Extend/Routes.php(82): Flarum\Http\RouteCollection->addRoute('POST', '/admin-mail', 'kilowhat.mailin...', Object(Closure))
    #3 /var/community/vendor/illuminate/container/Container.php(1069): Flarum\Extend\Routes->Flarum\Extend\{closure}(Object(Flarum\Http\RouteCollection), Object(Flarum\Foundation\Application))
    #4 /var/community/vendor/illuminate/container/Container.php(1015): Illuminate\Container\Container->fireCallbackArray(Object(Flarum\ in /var/community/vendor/nikic/fast-route/src/DataGenerator/RegexBasedAbstract.php on line 55
    [root@racknerd-46bba9 community]# 

    How fix it?

    • Kylo replied to this.
      • [deleted]

      • Edited

      luceos Step 1: Ensure you are on version 0.1.0-beta.11(.1) in your Admin Dashboard or by running php flarum info (use the previous release notes for upgrading from an earlier version)
      Step 2: Disable all 3rd party extensions.
      Step 3: Run the following commands:

      composer update --prefer-dist --no-dev -a --with-all-dependencies
      php flarum migrate
      php flarum cache:clear

      Step 4: Use your newly-upgraded Flarum site!

      @xinian520

      xinian520

      Okay this is how it works:

      You should be able to recognize 3rd party extensions since you're using them. So you can remove one simply, using:

      composer remove vendor-name/package

        Kylo don't uninstall fast route. It's part of core.

        The error is caused by an extension. Restore your backup and disable all third party extensions or change the extensions_enabled entry in the settings table of the database. Then do the upgrade.

        • Kylo replied to this.

          luceos oops, i wasn't aware of that. Sorry. -deleted that part to prevent misleading.

          The Cannot register two routes matching "/admin-mail" error most likely means you have both Users list and Kilowhat Mailing installed.

          Users list is incompatible since many Flarum versions now and should be removed.