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

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

Post by GIK-Team »

Got an error after updating to 3.3.13. I did everything according to the instructions as usual. But this time it turned out like this:

Code: Select all

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/site/public_html/forum/cache/production/url_generator.php:58
Stack trace:
#0 /home/site/public_html/forum/phpbb/routing/router.php(168): phpbb_url_generator->generate()
#1 /home/site/public_html/forum/phpbb/routing/helper.php(148): phpbb\routing\router->generate()
#2 /home/site/public_html/forum/phpbb/controller/helper.php(212): phpbb\routing\helper->route()
#3 /home/site/public_html/forum/includes/functions.php(4127): phpbb\controller\helper->route()
#4 /home/site/public_html/forum/posting.php(2107): page_header()
#5 {main}
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 672
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

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

Post by danieltj »

Have you tried clearly your forums cache?
MY EXTENSIONS:
Verified Profiles | Awesome Payments: a phpBB shop

Available for paid extension work: PM me.
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 »

danieltj wrote: Mon Sep 02, 2024 4:23 pm Have you tried clearly your forums cache?
Yep
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2545
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

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

Post by P_I »

GIK-Team wrote: Mon Sep 02, 2024 3:19 pm Got an error after updating to 3.3.13. I did everything according to the instructions as usual.
What instructions did you follow?
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
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 »

P_I wrote: Mon Sep 02, 2024 4:44 pm
GIK-Team wrote: Mon Sep 02, 2024 3:19 pm Got an error after updating to 3.3.13. I did everything according to the instructions as usual.
What instructions did you follow?
  1. Backup all board files and the database.
  2. Go to the phpBB.com downloads page and download the latest "Full Package" archive.
  3. Unpack the archive.
  4. Remove (delete) the config.php file, and the /images, /store and /files folders from the package (not your site).
  5. Go to the ACP, Board settings, and make sure prosilver is set as the default style. If not, set it to prosilver.
  6. Delete the /vendor and /cache folders from the board’s root folder on the host.
  7. Via FTP or SSH upload the remaining files and folders (that is, the remaining CONTENTS of the phpBB3 folder) to the root folder of your board installation on the server, overwriting the existing files. (Note: take care not to delete any extensions in your /ext folder when uploading the new phpBB3 contents.)
  8. Now start the update process by pointing your browser to the install folder.
  9. Follow the steps to update the database and let that run to completion.
  10. Via FTP or SSH delete the /install folder from the root of your board installation.
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
janus_zonstraal
Registered User
Posts: 6617
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal »

And you are 100% sure that your ftp program upload all the folders and files?
Sorry! My English is bat ;) !!!
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 5:35 pm
  1. Backup all board files and the database.
  2. Go to the phpBB.com downloads page and download the latest "Full Package" archive.
  3. Unpack the archive.
  4. Remove (delete) the config.php file, and the /images, /store and /files folders from the package (not your site).
  5. Go to the ACP, Board settings, and make sure prosilver is set as the default style. If not, set it to prosilver.
  6. Delete the /vendor and /cache folders from the board’s root folder on the host.
  7. Via FTP or SSH upload the remaining files and folders (that is, the remaining CONTENTS of the phpBB3 folder) to the root folder of your board installation on the server, overwriting the existing files. (Note: take care not to delete any extensions in your /ext folder when uploading the new phpBB3 contents.)
  8. Now start the update process by pointing your browser to the install folder.
  9. Follow the steps to update the database and let that run to completion.
  10. Via FTP or SSH delete the /install folder from the root of your board installation.
Steps 4 and 6 in red. Did you do it right ?
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 »

janus_zonstraal wrote: Mon Sep 02, 2024 5:38 pm And you are 100% sure that your ftp program upload all the folders and files?
Yes. I do the same every time, for 5-6 years. According to this instruction.
"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: Mon Sep 02, 2024 6:01 pm Steps 4 and 6 in red. Did you do it right ?
Yes. My ACP works fine, but the forum itself does not work.
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6543
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

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

Post by thecoalman »

Use the full package update:

https://www.phpbb.com/support/docs/en/3 ... date_full/

Edit, links are on the left if you are updating from 3.2.X etc.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
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 »

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.
"sometimes it's scary but it's still just you and me” — Leaving Laurel
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6543
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

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

Post by thecoalman »

The instructions I linked to are as manual as they get. If you want to test locally you can use XAMPP for that.

https://www.phpbb.com/support/docs/en/3 ... eb-server/

Generally speaking with large forum the one issue you can run into is php timeout. Temporarily raise max_execution_time in the php.ini
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
janus_zonstraal
Registered User
Posts: 6617
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal »

https://www.phpbb.com/support/docs/en/3 ... date_full/
Tip

For large boards, you may wish to update via the command line instead of using a web browser. From your board's root, execute the following command: php ./bin/phpbbcli.php db:migrate --safe-mode
Sorry! My English is bat ;) !!!
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6543
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

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

Post by thecoalman »

Just to add for large forum use SSH for backups, the php timeout can cause truncated backup when using phpBB's backup system or phpMyadmin.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
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 »

Thank you all for the suggestions, I will try all the options. Here are some statistics about my forum:

- Database size: 776.23 MiB
- Number of users: 513,905
- Number of posts: 15,839"
"sometimes it's scary but it's still just you and me” — Leaving Laurel

Return to “[3.3.x] Support Forum”