Random file names after upgrade to Joomla 4

Phoca Download - download manager
mirekjl
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 27 Jun 2022, 21:48

Random file names after upgrade to Joomla 4

Post by mirekjl » 06 Jul 2022, 08:35

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.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 45253
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Random file names after upgrade to Joomla 4

Post by Jan » 06 Jul 2022, 13:57

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 :idea:

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. :idea:

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

mirekjl
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 27 Jun 2022, 21:48

Re: Random file names after upgrade to Joomla 4

Post by mirekjl » 06 Jul 2022, 16:03

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

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 45253
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Random file names after upgrade to Joomla 4

Post by Jan » 06 Jul 2022, 16:57

Hi, what is the menu link name? The second link looks like no SEF link. "plan-lekcji" should be the menu alias. :idea:

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

mirekjl
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 27 Jun 2022, 21:48

Re: Random file names after upgrade to Joomla 4

Post by mirekjl » 07 Jul 2022, 08:23

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

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 45253
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Random file names after upgrade to Joomla 4

Post by Jan » 08 Jul 2022, 21:20

Hi, testing now and get everything all right on my test servers, really hard to say what can be wrong there :idea:

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

Post Reply