1. Installed https://flarum.org/extension/clarkwinkelmann/flarum-ext-predefined-avatars
  2. Did get the Error
  3. Deleted the predefined avatars extension folder manually via FTP (worked the last time with a another extension with the same problem)
  4. Error message presists.
  5. What else can i do?

TYIA

  • clarkwinkelmann replied to this.
  • NoIdeaWhatThatIs fof/links and gtdxyz/flarum-ui-links don't seem to be compatible. In fact I'm pretty sure the extensions will destroy each other's data as they use identically named database tables and API routes.

    Choose one and remove the other. You might need to delete the database tables, the migration log and re-install the extension you want to keep to make sure its data structure is not corrupted.

    clarkwinkelmann
    Hello,

    [2024-10-05 17:01:45] flarum.ERROR: RuntimeException: Route links.create already exists in /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Http/RouteCollection.php:80
    Stack trace:
    #0 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Extend/Routes.php(195): Flarum\Http\RouteCollection->addRoute('POST', '/links', 'links.create', Object(Closure))
    #1 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/Container.php(1265): Flarum\Extend\Routes->Flarum\Extend\{closure}(Object(Flarum\Http\RouteCollection), Object(Illuminate\Container\Container))
    #2 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/Container.php(1211): Illuminate\Container\Container->fireCallbackArray(Object(Flarum\Http\RouteCollection), Array)
    #3 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/Container.php(778): Illuminate\Container\Container->fireResolvingCallbacks('flarum.api.rout...', Object(Flarum\Http\RouteCollection))
    #4 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve('flarum.api.rout...', Array)
    #5 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Api/ApiServiceProvider.php(35): Illuminate\Container\Container->make('flarum.api.rout...')
    #6 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/Container.php(767): Flarum\Api\ApiServiceProvider->Flarum\Api\{closure}(Object(Flarum\Http\UrlGenerator), Object(Illuminate\Container\Container))
    #7 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve('Flarum\\Http\\Url...', Array)
    #8 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Frontend/FrontendServiceProvider.php(177): Illuminate\Container\Container->make('Flarum\\Http\\Url...')
    #9 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/BoundMethod.php(36): Flarum\Frontend\FrontendServiceProvider->boot(Object(Illuminate\Container\Container), Object(Illuminate\View\Factory))
    #10 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
    #11 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
    #12 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Container\Container), Array, Object(Closure))
    #13 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/illuminate/container/Container.php(653): Illuminate\Container\BoundMethod::call(Object(Illuminate\Container\Container), Array, Array, NULL)
    #14 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Foundation/Application.php(290): Illuminate\Container\Container->call(Array)
    #15 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Foundation/Application.php(273): Flarum\Foundation\Application->bootProvider(Object(Flarum\Frontend\FrontendServiceProvider))
    #16 [internal function]: Flarum\Foundation\Application->Flarum\Foundation\{closure}(Object(Flarum\Frontend\FrontendServiceProvider), 13)
    #17 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Foundation/Application.php(272): array_walk(Array, Object(Closure))
    #18 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
    #19 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
    #20 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
    #21 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
    #22 /var/www/vhosts/hosting706553.a140a.netcup.net/flarumforum.eu/httpdocs/social/public/index.php(26): Flarum\Http\Server->listen()
    #23 {main}

    TYIA

      NoIdeaWhatThatIs it seems like you might have 2 extensions conflicting with each other, but it doesn't look like Predefined Avatars is one of them.

      links.create is probably added by FriendsOfFlarum Links. But I don't know any other extension that might re-use the name.

      Can you share your php flarum info output so we can see the list of extensions?

        clarkwinkelmann Can you share your php flarum info output so we can see the list of extensions?

        Hi, i absolutely would but i have no idea where that file is, the only files i've found which resembles some kind of a "list of installed plugins" are vendor/installed.php and /composer.json.

        eg. composer.json:

        "require": {
        "acpl/flarum-lscache": "*",
        "askvortsov/flarum-pwa": "*",
        "askvortsov/flarum-rich-text": "*",
        "blomstra/fontawesome": "*",
        "clarkwinkelmann/flarum-ext-likes-received": "*",
        "clarkwinkelmann/flarum-ext-popular-discussion-badge": "*",
        "clarkwinkelmann/flarum-ext-predefined-avatars": "*",
        "clarkwinkelmann/flarum-ext-readonly-profile": "*",
        "darkle/fancybox": "*",
        "datlechin/flarum-chatgpt": "*",
        "flarum-lang/dutch": "*",
        "flarum-lang/german": "*",
        "flarum-lang/hungarian": "*",
        "flarum/approval": "*",
        "flarum/core": "^1.8",
        "flarum/emoji": "*",
        "flarum/extension-manager": "*",
        "flarum/flags": "*",
        "flarum/lang-english": "*",
        "flarum/likes": "*",
        "flarum/lock": "*",
        "flarum/markdown": "*",
        "flarum/mentions": "*",
        "flarum/statistics": "*",
        "flarum/sticky": "*",
        "flarum/subscriptions": "*",
        "flarum/suspend": "*",
        "flarum/tags": "*",
        "fof/anti-spam": "*",
        "fof/ban-ips": "*",
        "fof/best-answer": "*",
        "fof/byobu": "*",
        "fof/cookie-consent": "*",
        "fof/frontpage": "*",
        "fof/geoip": "*",
        "fof/ignore-users": "*",
        "fof/linguist": "*",
        "fof/links": "*",
        "fof/nightmode": "*",
        "fof/pages": "*",
        "fof/polls": "*",
        "fof/pretty-mail": "*",
        "fof/profile-image-crop": "*",
        "fof/recaptcha": "*",
        "fof/secure-https": "*",
        "fof/sitemap": "*",
        "fof/socialprofile": "*",
        "fof/terms": "*",
        "fof/upload": "*",
        "fof/user-bio": "*",
        "gtdxyz/flarum-ui-links": "*",
        "ianm/twofactor": "*",
        "justoverclock/custom-html-widget": "*",
        "justoverclock/flarum-ext-hashtag": "*",
        "justoverclock/flarum-ext-welcomebox": "*",
        "justoverclock/last-post-useravatar": "*",
        "michaelbelgium/flarum-discussion-views": "*",
        "michaelbelgium/flarum-profile-views": "*",
        "rob006/flarum-ext-last-post-avatar": "*",
        "the-turk/flarum-stickiest": "*",
        "v17development/flarum-seo": "*",
        "xypp/sticky-card": "*",
        "xypp/store-auto-checkin": "*",
        "xypp/store-group": "*"
        },
        "config": {
        "preferred-install": "dist",
        "sort-packages": true
        },
        "prefer-stable": true,
        "minimum-stability": "stable",
        "repositories": []

        TYIA

          NoIdeaWhatThatIs fof/links and gtdxyz/flarum-ui-links don't seem to be compatible. In fact I'm pretty sure the extensions will destroy each other's data as they use identically named database tables and API routes.

          Choose one and remove the other. You might need to delete the database tables, the migration log and re-install the extension you want to keep to make sure its data structure is not corrupted.