Unable to generate a URL for the named route

Hey, i found another Error since the Update to Nextcloud 12.
Everything works fine for me, connection via IOS App and Online, even the themed things like Logo and the new Background works for me.

Raspberry Pi 2 with Apache 2 and Php 5

Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getLogo" as such route does not exist.

The Full error looks like this.

Error	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getLogo" as such route does not exist.
/var/www/nextcloud/lib/private/Route/Router.php - line 339: Symfony\Component\Routing\Generator\UrlGenerator->generate('theming.Theming...', Array, 1)
/var/www/nextcloud/lib/private/Route/CachingRouter.php - line 60: OC\Route\Router->generate('theming.Theming...', Array, false)
/var/www/nextcloud/lib/private/URLGenerator.php - line 70: OC\Route\CachingRouter->generate('theming.Theming...', Array)
/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php - line 156: OC\URLGenerator->linkToRoute('theming.Theming...')
/var/www/nextcloud/lib/public/Defaults.php - line 186: OCA\Theming\ThemingDefaults->getLogo(true)
/var/www/nextcloud/core/templates/layout.guest.php - line 45: OCP\Defaults->getLogo()
/var/www/nextcloud/lib/private/Template/Base.php - line 176: include('/var/www/nextcl...')
/var/www/nextcloud/lib/private/Template/Base.php - line 151: OC\Template\Base->load('/var/www/nextcl...', NULL)
/var/www/nextcloud/lib/private/legacy/template.php - line 202: OC\Template\Base->fetchPage(NULL)
/var/www/nextcloud/lib/private/legacy/template.php - line 224: OC_Template->fetchPage()
/var/www/nextcloud/lib/private/Template/Base.php - line 132: OC_Template->fetchPage()
/var/www/nextcloud/core/templates/404.php - line 10: OC\Template\Base->printPage()
{main}

Hm no one an idea? :confused:

Same here, the error appears but everything works just fine. No ideas though.

For me, the following did the job:

Delete /nextcloud/apps/theming and then reupload the original theming-app to your nextcloud-instance.

The issue seems to be triggered by an error during the auto-update process…

Cheers,
mistabob

1 Like

Thanks for your help :slight_smile:
Seems to work for me too but i will test it afew days first.

Hmm I did the following.
I logged in via SSH into my Raspberry and removed the theming folder in /Nextcloud/Apps/
After that i downloaded a fresh install of Nextcloud to my Mac and pushed the new theming Folder via FTP to my /Nextcloud/Apps/ and activate it in the Admin Panel. The error did Show up again but not this often then before.

Bump. Same error is filling my log. Did not delete the theming app yet.

Raspberry Pi 3, Apache 2, PHP 7, NC 12.0

I deleted the theming App as explained but i also still get the errors :confused: don’t know what to do here…

I had similar issue.
I just found out that if I re-upload the logo into Nextcloud via LAN, then it only show on LAN, not on WAN.
Vice versa.
How can I get it to display on both LAN and WAN?

NC v12
Nginx
PHP 5.6

Same issue as tx7.
upgrade to 12 and seeing this error every time someone connects via external network.
You cant see the custom background or logo, yet if your on the internal network you can see them
and no error happens.

xt Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route “theming.Theming.getLogo” as such route does not exist.

/var/www/nextcloud/lib/private/Route/Router.php - line 339: Symfony\Component\Routing\Generator\UrlGenerator->generate('theming.Theming...', Array, 1)
/var/www/nextcloud/lib/private/Route/CachingRouter.php - line 60: OC\Route\Router->generate('theming.Theming...', Array, false)
/var/www/nextcloud/lib/private/URLGenerator.php - line 70: OC\Route\CachingRouter->generate('theming.Theming...', Array)
/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php - line 156: OC\URLGenerator->linkToRoute('theming.Theming...')
/var/www/nextcloud/lib/public/Defaults.php - line 186: OCA\Theming\ThemingDefaults->getLogo(true)
/var/www/nextcloud/core/templates/layout.guest.php - line 45: OCP\Defaults->getLogo()
/var/www/nextcloud/lib/private/Template/Base.php - line 176: include('/var/www/nextcl...')
/var/www/nextcloud/lib/private/Template/Base.php - line 151: OC\Template\Base->load('/var/www/nextcl...', NULL)
/var/www/nextcloud/lib/private/legacy/template.php - line 202: OC\Template\Base->fetchPage(NULL)
/var/www/nextcloud/lib/private/legacy/template.php - line 224: OC_Template->fetchPage()
/var/www/nextcloud/lib/private/Template/Base.php - line 132: OC_Template->fetchPage()
/var/www/nextcloud/lib/base.php - line 809: OC\Template\Base->printPage()
/var/www/nextcloud/lib/base.php - line 1082: OC init()
/var/www/nextcloud/index.php - line 38: require_once('/var/www/nextcl...')
{main}

Debian
Apache
Php fpm
Mysql (remote)

Same error here

Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route “theming.Theming.getLogo” as such route does not exist.

I replaced the Theming-App and set permissions for www-data recrusively, still get this error.

Debian 8 (OpenMediaVault 3)
Nginx
PHP FPM
PHP 5.6.30
MySQL 5.5.55

Seems nobody had a fix for this yet…
I also tried a few things but no luck at all. :frowning:

same problem here. I get a lot of errors like

Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getLogo" as such route does not exist.

/var/www/cloudnc/lib/private/Route/Router.php - line 339: Symfony\Component\Routing\Generator\UrlGenerator->generate('theming.Theming...', Array, 1)
/var/www/cloudnc/lib/private/Route/CachingRouter.php - line 60: OC\Route\Router->generate('theming.Theming...', Array, false)
/var/www/cloudnc/lib/private/URLGenerator.php - line 70: OC\Route\CachingRouter->generate('theming.Theming...', Array)
/var/www/cloudnc/apps/theming/lib/ThemingDefaults.php - line 156: OC\URLGenerator->linkToRoute('theming.Theming...')
/var/www/cloudnc/lib/public/Defaults.php - line 186: OCA\Theming\ThemingDefaults->getLogo(true)
/var/www/cloudnc/core/templates/layout.guest.php - line 45: OCP\Defaults->getLogo()
/var/www/cloudnc/lib/private/Template/Base.php - line 176: include('/var/www/cloudnc/...')
/var/www/cloudnc/lib/private/Template/Base.php - line 151: OC\Template\Base->load('/var/www/cloudnc/...', NULL)
/var/www/cloudnc/lib/private/legacy/template.php - line 202: OC\Template\Base->fetchPage(NULL)
/var/www/cloudnc/lib/private/legacy/template.php - line 224: OC_Template->fetchPage()
/var/www/cloudnc/lib/private/Template/Base.php - line 132: OC_Template->fetchPage()
/var/www/cloudnc/core/templates/404.php - line 10: OC\Template\Base->printPage()
{main}

I’m not shure but this github issue looks like the same problem:

I think this is not an error, only a misconfigured setting. I’ve had the same issue. Reading the error log you will see: “Unable to generate a URL for the named route”.

The following solution worked for me.

Go to Theming, Settings and check your given Internet address. In my case it was misspelled.

Greetings

1 Like

I got the same error, which only shows up when I change to a custom logo. As well the exception page (“File not found”) is not correctly themed. The backround image and logo are standard ones.

Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route “theming.Theming.getLogo” as such route does not exist.
/volume1/web/nextcloud/lib/private/Route/Router.php - line 339: Symfony\Component\Routing\Generator\UrlGenerator->generate(‘theming.Theming…’, Array, 1)
/volume1/web/nextcloud/lib/private/URLGenerator.php - line 77: OC\Route\Router->generate(‘theming.Theming…’, Array)
/volume1/web/nextcloud/apps/theming/lib/ThemingDefaults.php - line 165: OC\URLGenerator->linkToRoute(‘theming.Theming…’)
/volume1/web/nextcloud/lib/public/Defaults.php - line 186: OCA\Theming\ThemingDefaults->getLogo(true)
/volume1/web/nextcloud/core/templates/layout.guest.php - line 45: OCP\Defaults->getLogo()
/volume1/web/nextcloud/lib/private/Template/Base.php - line 176: include(’/volume1/web/ne…’)
/volume1/web/nextcloud/lib/private/Template/Base.php - line 151: OC\Template\Base->load(’/volume1/web/ne…’, NULL)
/volume1/web/nextcloud/lib/private/legacy/template.php - line 202: OC\Template\Base->fetchPage(NULL)
/volume1/web/nextcloud/lib/private/legacy/template.php - line 224: OC_Template->fetchPage()
/volume1/web/nextcloud/lib/private/Template/Base.php - line 132: OC_Template->fetchPage()
/volume1/web/nextcloud/core/templates/403.php - line 7: OC\Template\Base->printPage()
{main}

Installed 12.0.3 a few days ago and setup a custom theme and saw no entries in the log. Updated a couple of days later to 12.0.4 and now getting the “no app in context” message repeatedly in the log.

"Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route “theming.Theming.getLogo” as such route does not exist.

Everything seems to be working fine. Both locally and remotely I see my custom logo, and background. Still would like a fix though if anyone has an idea as to keep from filling log with useless entries.