3.3.13 "Unable to generate a URL for the named route" after update error

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
GIK-Team
Registered User
Posts: 24
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko

Re: 3.3.13 "Unable to generate a URL for the named route" after update error

Post by GIK-Team »

Screenshot 2024-09-02 at 23.49.54.png
:) I was able to manually update the forum using the following command:

Code: Select all

php ./bin/phpbbcli.php db:migrate --safe-mode
You do not have the required permissions to view the files attached to this post.
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
MarkDHamill
Registered User
Posts: 4929
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: 3.3.13 "Unable to generate a URL for the named route" after update error

Post by MarkDHamill »

I am having a similar issue. I get a 404 and this in error_log:

Code: Select all

[05-Sep-2024 14:26:31 UTC] PHP Fatal error:  Uncaught Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "phpbb_ucp_delete_cookies_controller" as such route does not exist. in /home/bw3ydu2u/public_html/forum/cache/production/url_generator.php:47
Stack trace:
#0 /home/bw3ydu2u/public_html/forum/phpbb/routing/router.php(168): phpbb_url_generator->generate()
#1 /home/bw3ydu2u/public_html/forum/phpbb/routing/helper.php(148): phpbb\routing\router->generate()
#2 /home/bw3ydu2u/public_html/forum/phpbb/controller/helper.php(212): phpbb\routing\helper->route()
#3 /home/bw3ydu2u/public_html/forum/includes/functions.php(4064): phpbb\controller\helper->route()
#4 /home/bw3ydu2u/public_html/forum/includes/functions.php(2568): page_header()
#5 /home/bw3ydu2u/public_html/forum/ucp.php(92): login_box()
#6 {main}
  thrown in /home/bw3ydu2u/public_html/forum/cache/production/url_generator.php on line 47
Any ideas? I've purged the cache multiple times. ACP access is okay, but I can't get to the index.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
GIK-Team
Registered User
Posts: 24
Joined: Wed Jan 08, 2020 4:49 pm
Name: Georgii Leoshko

Re: 3.3.13 "Unable to generate a URL for the named route" after update error

Post by GIK-Team »

MarkDHamill wrote: Thu Sep 05, 2024 2:52 pm Any ideas? I've purged the cache multiple times. ACP access is okay, but I can't get to the index.
What worked for me was replacing all the core files from a full installation archive (keeping only configurations, extensions, themes, and user files) and manually updating the database. That might resolve the issue for you as well!
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
warmweer
Jr. Extension Validator
Posts: 11623
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: 3.3.13 "Unable to generate a URL for the named route" after update error

Post by warmweer »

GIK-Team wrote: Fri Sep 06, 2024 9:17 pm ... and manually updating the database ...
manually ?? What do you mean by that?
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
Madalin10
Registered User
Posts: 84
Joined: Wed Jun 18, 2014 2:42 pm
Name: Madalin C.

Re: 3.3.13 "Unable to generate a URL for the named route" after update error

Post by Madalin10 »

MarkDHamill wrote: Thu Sep 05, 2024 2:52 pm I am having a similar issue. I get a 404 and this in error_log:

Code: Select all

[05-Sep-2024 14:26:31 UTC] PHP Fatal error:  Uncaught Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "phpbb_ucp_delete_cookies_controller" as such route does not exist. in /home/bw3ydu2u/public_html/forum/cache/production/url_generator.php:47
Stack trace:
#0 /home/bw3ydu2u/public_html/forum/phpbb/routing/router.php(168): phpbb_url_generator->generate()
#1 /home/bw3ydu2u/public_html/forum/phpbb/routing/helper.php(148): phpbb\routing\router->generate()
#2 /home/bw3ydu2u/public_html/forum/phpbb/controller/helper.php(212): phpbb\routing\helper->route()
#3 /home/bw3ydu2u/public_html/forum/includes/functions.php(4064): phpbb\controller\helper->route()
#4 /home/bw3ydu2u/public_html/forum/includes/functions.php(2568): page_header()
#5 /home/bw3ydu2u/public_html/forum/ucp.php(92): login_box()
#6 {main}
  thrown in /home/bw3ydu2u/public_html/forum/cache/production/url_generator.php on line 47
Any ideas? I've purged the cache multiple times. ACP access is okay, but I can't get to the index.
Uploading the full package and then updating the db is the key it seems, resulting in a healthy update without errors/issues.
(at least that's what I did for *someone* :shock: )
https://awesome-web.design - I offer phpBB & web design services at fair prices.
exemplary1
Registered User
Posts: 129
Joined: Mon Feb 05, 2024 11:41 am

Re: 3.3.13 "Unable to generate a URL for the named route" after update error

Post by exemplary1 »

GIK-Team wrote: Mon Sep 02, 2024 6:19 pm Is there a manual instruction available that I can follow to do everything manually? I understand the part with the files, but what should I do with the database to update it to version 3.3.13? I have a very large forum, so I would like to experiment on a local server first and then transfer everything to production.
How do you keep the local copy of your forum ? Backup (and download) data from ACP and use Restore on localhost forum ?

Return to “[3.3.x] Support Forum”