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: 27
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: 4933
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: 27
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: 11879
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

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: 117
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: 216
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 ?
User avatar
GIK-Team
Registered User
Posts: 27
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 »

warmweer wrote: Fri Sep 06, 2024 9:57 pm
GIK-Team wrote: Fri Sep 06, 2024 9:17 pm ... and manually updating the database ...
manually ?? What do you mean by that?

Code: Select all

php ./bin/phpbbcli.php db:migrate --safe-mode
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
GIK-Team
Registered User
Posts: 27
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 »

exemplary1 wrote: Sat Sep 07, 2024 2:50 pm
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 ?
To maintain a local copy of your forum, you typically need to use server-side backup tools, as the forum’s Admin Control Panel (ACP) does not provide the capability to perform full backup and restore operations. It’s recommended to use server-based software or scripts that can manage database and file backups effectively. This ensures you have a complete backup of all data, which can then be used to restore on a localhost or another server environment if needed.
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
warmweer
Jr. Extension Validator
Posts: 11879
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

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

Post by warmweer »

Slightly off-topic but I feel it's necessary in this case.
GIK-Team wrote: Sun Nov 24, 2024 10:28 pm ...
To maintain a local copy of your forum, you typically need to use server-side backup tools, as the forum’s Admin Control Panel (ACP) does not provide the capability to perform full backup and restore operations.
server side backup tools ?
Let's not overcomplicate things.
For a local copy of the board , the files are needed (and these can be downloaded) from phpBB.com but to make sure all extra files (e.g. images, styles, extensions not part of default phpBB) just FTP the whole board directory. Then there's the database: FTP the database backup.

To get the copy working locally (I suppose you're referring to a PWS on PC) it's just a matter of editing (on the local copy) the config.php and editing some values in the config_table.

@ exemplary1:

You mention "experiment on a local server first and then transfer everything to production".
The word experiment is important part. That you can do on your PC using a PWS or even on your host itself (if you can make 2 databases - but even if that is not allowed: your live database ... can contain a second phpBB table set, albeit with a different table-prefix.
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.
exemplary1
Registered User
Posts: 216
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 »

I successfully copied live forum and setup on localhost few days back.

Took full backup via webhost tool.
Copy-pasted phpbb folder to localhost.
Created new database and imported sql data from the backup.
Made necessary changes in config.php.
Had to change forum-website-name to localhost somewhere in ACP settings.

And its running perfectly.
User avatar
GIK-Team
Registered User
Posts: 27
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 »

warmweer wrote: Mon Nov 25, 2024 8:21 am server side backup tools ?
Let's not overcomplicate things.
For a local copy of the board , the files are needed (and these can be downloaded) from phpBB.com but to make sure all extra files (e.g. images, styles, extensions not part of default phpBB) just FTP the whole board directory. Then there's the database: FTP the database backup.
Tools like mysqldump are more reliable for database backups compared to various web interfaces. mysqldump is a command-line utility that allows you to perform thorough backups of your database. This method is not limited by the configurations of your web server, which makes it particularly effective for large databases.
"sometimes it's scary but it's still just you and me” — Leaving Laurel

Return to “[3.3.x] Support Forum”