Hello. I have migrated Phoca Download to version 4.0.2 in a Joomla migrated from 3.10.10 to 4.1.5. I have done this twice following the rules from https://www.phoca.cz/documents/50-jooml ... o-joomla-4.
The files can be downloaded, however there is one confusing thing. Each file got a misleading title, beacause a name of a random file stuck to the original name. The random names were different each time. It looks like this:
The name of the migrated file:
sitename/index.php/the_name_of_a_random_file_from_transferred_files?view=category&download=1933:the_title_of_the_original_file&id=146:the_name_of_the_subcategory
The name of the original file:
sitename/index.php/2021-22/category/146-the_name_of_the_subcategory?download=1933:the_title_of_the_original_file
The categories and files systemm looks like this:
upper category (ie. a year) > category (ie. a month) > subcategory (ie. a week) > file (ie. a day)
The debug mode is on and shows nothing here, because the files can be downloaded from the categories (altough with the misleading title).
Is it possible to fix this issue?
Kind regards, Mirek.
Random file names after upgrade to Joomla 4
-
- Phoca Member
- Posts: 21
- Joined: 27 Jun 2022, 21:48
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Random file names after upgrade to Joomla 4
Hi, sorry, I don't understand what do you mean with random names? What part of system changed your titles?
In Joomla 4, the system router changed (but for SEF links only, not for standard links) but URLs do not somehow change the name of files or categories or menu links
After index.php there is mostly a menu link alias, so try to check if the menu links are the same for the new site like for the original site.
Jan
In Joomla 4, the system router changed (but for SEF links only, not for standard links) but URLs do not somehow change the name of files or categories or menu links

After index.php there is mostly a menu link alias, so try to check if the menu links are the same for the new site like for the original site.

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 21
- Joined: 27 Jun 2022, 21:48
Re: Random file names after upgrade to Joomla 4
Hello.
This is original website:
website/index.php/2021-2022/category/149-z-zycia-szkoly?download=2124:osiagniecia-uczniow
This is migrated website:
website/index.php/plan-lekcji?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly
plan-lekcji is a text added to every file in every category and it's a name of one of the uploaded files.
Regards, Mirek
This is original website:
website/index.php/2021-2022/category/149-z-zycia-szkoly?download=2124:osiagniecia-uczniow
This is migrated website:
website/index.php/plan-lekcji?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly
plan-lekcji is a text added to every file in every category and it's a name of one of the uploaded files.
Regards, Mirek
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Random file names after upgrade to Joomla 4
Hi, what is the menu link name? The second link looks like no SEF link. "plan-lekcji" should be the menu alias. 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 21
- Joined: 27 Jun 2022, 21:48
Re: Random file names after upgrade to Joomla 4
Hello.
It looks like the name of an uploaded file replaces the right name of a category. In this example plan-lekcji is the name of an uploaded file.
The link should be:
website/index.php/2021-2022?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly
The link is:
website/index.php/plan-lekcji?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly
But the current link is downloadable anyway.
SEF is on.
Regards, Mirek
It looks like the name of an uploaded file replaces the right name of a category. In this example plan-lekcji is the name of an uploaded file.
The link should be:
website/index.php/2021-2022?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly
The link is:
website/index.php/plan-lekcji?view=category&download=2124:osiagniecia-uczniow&id=149:z-zycia-szkoly
But the current link is downloadable anyway.
SEF is on.
Regards, Mirek
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Random file names after upgrade to Joomla 4
Hi, testing now and get everything all right on my test servers, really hard to say what can be wrong there 
Jan

Jan
If you find Phoca extensions useful, please support the project