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

most_recently_downloaded module Error - [Fixed in 3.2.35!!!]

Started by ColinM, 13.07.2015 14:07:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ColinM

most_recently_downloaded module Error

This error occurs on first loading of Most_Recently_Downloaded module if another jD module such as  jDownloads Latest or jDownloads Top has not been loaded before it.

Fatal error: Call to a member function setState() on a non-object in <mysite>/modules/mod_jdownloads_most_recently_downloaded/helper.php on line 32
Lines 31 and 32 are:
       // Set application parameters in model
       $logs_model->setState('params', $appParams);
---------------------------------------------------------------------------------------------
Also line 44 in mod_jdownloads_most_recently_downloaded.php looks incorrect
Present Code is
$cat_id          = trim($params->get( 'cat_id' ) );
Think this should be something like
$cat_id          = $params->get( 'cat_id', array() );

$cat_id then has the actual ids of the selected categories or zero if none selected.
-------------------------------------------------------------------------------------

last_downloaded_files module should be removed if it exists!!

Colin
Colin M
  •  

Arno

Hi Colin,
Quotelast_downloaded_files module should be removed if it exists!
this module was not published, so i think only you can have this. ;)

QuoteFatal error: Call to a member function setState() on a non-object in <mysite>/modules/mod_jdownloads_most_recently_downloaded/helper.php on line 32
Fixed!
Quote$cat_id = trim($params->get( 'cat_id' ) );
Fixed!
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •