jDownloadsownloads.com


Author Topic: Updating JDownloads 1.9.1.6 on a Joomla 3.4.4 site  (Read 1427 times)

0 Members and 1 Guest are viewing this topic.

Offline CandiceG

  • Newbie
  • *
  • Posts: 2
Hi,



I think I am caught between a rock and a hard place. I'm using this topic category because my JDownload is 1.9.1.6
.     I disabled JDownloads and upgraded my site to Joomla 3.4.4.  I went back to update my JDownloads from 1.9.1.6 to 1.9.2.11 and to do so, I thought I had to enable them again.  As soon as I enabled the two (System-jdownloads and JDownloads), the browser window changed and gave me the following error.....  Fatal error: Call to undefined method Joomla\Registry\Registry::loadJSON() in /home3/ab19899/public_html/plugins/system/jdownloads/jdownloads.php on line 39.  So I re-enabled the two through the extensions table and my site is back and I can log into my Administrator section.  Is there a way I can just do a fresh install to the latest version?  I can rebuild the downloads I have, I won't lose a lot.  Can I uninstall the two disabled components?  If I can, do I uninstall the site plugin and THEN the Administrator jDownloads?  I'm using JDownloads v 1.9.1.6, Joomla 3.4.4, PHP 5.4.45 and MySQL = 5.5.42-37.1.  This is happening on a hosted site and not my local laptop.  Or can I run 1.9.2.11 update while the jDownloads are disabled?  Any help on how to proceed would be absolutely super.  My goal is to get to the latest jDownloads update.  Attached is a screen shot of the two components I'm referring to that I tried to re-enable.

Offline ColinM

  • jD Tester
  • *
  • Posts: 3.541
Re: Updating JDownloads 1.9.1.6 on a Joomla 3.4.4 site
« Reply #1 on: 18.10.2015 11:43:37 »
Hi
If you have a relatively small number of Downloads then 'reloading' them is a good option.  You indicate that all went well on the version on your laptop so that would enable another route.  The 'purist' in me would like to see what went wrong but I think a more pragmatic approach is needed!

1. So in either case make sure you have a copy of the jdownloads directory with all the categories (directories) and files.  You probably have that on your laptop anyway. The jdownloads directory is in the root of your site.
2. The next step is to ensure that jD and all its parts are 'removed'.  Suggest you look at
 http://www.jdownloads.net/documentations/item/how-to-uninstall-all-of-jdownloads
3. The third step is to now install the latest copy of jD in the usual manner.

Method A Reloading the directories and files directly
Please note that in this method there will be a lot of server activity so you may wish to increase the server time limits, or just up load a few directories and files at a time.
A4. In the jD Configuration - Monitoring tab ensure you have
  • Download directory monitoring? set to No.
  • Also ensure you have Monitor all file types? set to Yes
  • And Automatically publish Downloads? to No (this reduces the number of database accesses at this stage)
A5. In Config - Pictures tab then look at the Thumbnails section. In particular the settings Create Thumbnails from uploaded pics? and Use this also for auto monitoring? Suggest you set the auto monitoring one to No, again to minimise server usage.

A6.  Now copy over your directories and files into the jdownloads directory using ftp, your server Control Panel or a suitable Joomla! file manager such as Profiles or eXtplorer.  If you are doing this in multiple stages then obviously copy over in a logical fashion.

A7.  Now go to the jD Control panel. You should see on the Status tab the two lines in the Status Monitoring Section
                      Status Monitoring
                       Automatic monitoring of the Download directories is deactivated.
    followed by the link Check Download area now.  So click on that link.
This will now create the Categories and Downloads.
A8. You can repeat steps A6 and A7 to upload more items.  The question is how many? This depends on your server, but I would expect a 100 items to be ok.
A9. Now go to jD  Control Panel and use Categories to publish your categories and similarly Downloads.

Should be OK but let us know anyway.

Method B Use jD Backup Tool
B4.  In the jD Configuration - Monitoring tab ensure you have Download directory monitoring? set to No on your website.
B5. On the website go to jD Config Uploads tab. The first entry is the Upload directory path. Make a copy of that entry as it is needed later.
B6.  On your laptop, after testing jD is all OK then use the Tool Backup to Create a new backup file. Ensure you tick the Option bit. Store this  text file on your laptop.
B6.  Now copy over your all the directories and files into the jdownloads directory using ftp, your server Control Panel or a suitable Joomla! file manager such as Profiles or eXtplorer.
B7. You can
  • EITHER edit the saved backup file (use say Notepad++) to change the line
Code: [Select]
$db->setQuery("INSERT INTO #__jdownloads_config ( `id`,`setting_name`,`setting_value` ) VALUES ( '1','files.uploaddir','YOUR LAPTOP REFERENCE/jdownloads' );"); $db->execute();$i++;
    so that the YOUR LAPTOP REFERENCE/jdownloads part is the same as the Upload directory path saved above (ensure you get it encolsed in ' as in the backup file.[/li]
       
  • OR  later overwrite directly into the Upload directory path field
B8. Use the Tools to Restore the original or modified Backup txt file.
B9. Adjust the Upload directory path field as may be necessary


Phew! All done


Colin



B7.  In Config

Offline CandiceG

  • Newbie
  • *
  • Posts: 2
Re: Updating JDownloads 1.9.1.6 on a Joomla 3.4.4 site
« Reply #2 on: 18.10.2015 17:19:46 »
Thank-you, thank-you, thank-you for guiding me in how to move forward!  I was able to uninstall the old version and install the new 3.2.39 version following your directions combined with the uninstall directions.  So my jDownloads is back online, I just need to rebuild the handful of file downloads I had, but that's ok, because it gives me time to review them anyways.  The jDownloads installer found some old components or tables which I did not see through my PHPMyAdmin "view" or through my Extensions manager, but your installer handled it by renaming them (I think) and all was ok.  And thank-you so much for such a quick response and the detailed instructions!