jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => General => Topic started by: barraclm on 14.07.2023 22:31:17

Title: Migrating from J3 to J4
Post by: barraclm on 14.07.2023 22:31:17
I am splitting an existing J3 site which includes an extensive jDownloads setup into 2 new J4 sites, both of which will have jDownloads installed.

What I would like to do is:

Will this work?
Title: Re: Migrating from J3 to J4
Post by: ColinM on 15.07.2023 17:56:37
Hi

Not sure I understand the question
I would approach this by converting your existing site to J4 as described in
https://www.jdownloads.net/documentation/getting-started-v3-9/upgrading-from-jd3-9-to-jd4 
Then make an Akeeba backup and restore it to your second site. Tailor each site as required

Colin



Title: Re: Migrating from J3 to J4
Post by: barraclm on 15.07.2023 18:39:35
Sorry not to be clear. I have an existing J3 site which was so problematic to migrate to J4 that I started a new J4 site. This is mostly built. The last area to deal with is jDownloads. It seems that the directory structure and the database structure is the same for both J3 and J4. I have (I hope) successfully copied the database tables and the documents to the J4 site and installed jDownloads. From the backend, everything looks the same and correct. However, I deliver all my downloads using the content plugin. Using the same layout and the same code - {jd_file file==154} - in both J3 and J4, this is the code that is generated for the download button:

J3: <a target="_blank" href="/en/component/jdownloads/?task=download.send&amp;id=154&amp;catid=3&amp;m=0&amp;Itemid=101" alt="Down" class="jdbutton jblue jmedium">Download</a>
J4: <a href="/J4test/component/jdownloads/summary/3-no-license-approval-needed/154-black-joak?Itemid=653" aria-label="Go to download overview" alt="Down" class="jdbutton jblue jmedium">Download</a>

Downloading from J3 works. Trying to download from J4 I get a 404 error (?because the Itemid is different).

Some help would be much appreciated.

Michael Barraclough

Title: Re: Migrating from J3 to J4
Post by: ColinM on 15.07.2023 23:28:21
Micheal,
I have sent you a Personal Message.
I suspect that the id of a Download in V3 site and V4 site are different.

Have you looked at the articles 'Content Plugin Options' and 'Using the Content Plugin in Articles and Modules'

https://www.jdownloads.net/documentation/modules-plugins-v3-9/content-plugin-options and   https://www.jdownloads.net/documentation/modules-plugins-v3-9/using-the-content-plugin-in-articles-and-modules

There may be some differences in the setup from jD3 to jD4

I have sent you a Private Message - these are secure point to point transmissions

Colin
Colin
Title: Re: Migrating from J3 to J4
Post by: ColinM on 17.07.2023 13:38:32
Michael,
Attached is image of Black Joak as presenty viewed.  Please advise what is missing!!
Thanks
Colin
Title: Re: Migrating from J3 to J4
Post by: Arno on 18.07.2023 19:59:07
Hi Michael,
the DB tables are not identical between versions 3 and 4, so a manual update with copying of the tables from version 3 will not work one hundred percent and is strongly discouraged. If a user nevertheless wants to proceed in this way, he will have to do without our support, as this will make it unnecessarily difficult to provide assistance.

In your case, I would proceed as Colin recommended in his first answer. The parts that are not needed in the respective installation can then be easily removed via the backend.

About the invalid link:
Is there a menu type for 'All categories' in the new version 4? This is mandatory, but can be created hidden. See the documentation.
Title: Re: Migrating from J3 to J4
Post by: ColinM on 22.07.2023 00:09:00
Michael
Problem was that no 'List All Categories' menu item had not been created - it can be hidden
Also see
https://www.jdownloads.net/documentation/getting-started-v3-9/first-time-installation-jdownloads-4-series#create-menu-item
Content Plugin items now work
Colin