News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Migrating from J3 to J4

Started by barraclm, 14.07.2023 22:31:17

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

barraclm

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:

  • copy the jDownloads folders and files to both new sites
  • copy the jDownloads database tables (changing the prefix appropriately)
  • install jDownloads on both new sites

Will this work?
  •  

ColinM

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



Colin M
  •  

barraclm

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

  •  

ColinM

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
Colin M
  •  

ColinM

Michael,
Attached is image of Black Joak as presenty viewed.  Please advise what is missing!!
Thanks
Colin
Colin M
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

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
Colin M
  •