exstreme / Jcomments-4

Modified Jcomments 3.0.7 with Recaptcha 2 in comments. Adapted to Joomla 4. No compatibility with Joomla 1.5\2.5\3.x
16 stars 13 forks source link

JDownloads integration file uses out of date identifier "file_id" #136

Closed Rajada closed 1 year ago

Rajada commented 1 year ago

File components/com_jcomments/plugins/com_jdownloads.plugin.php uses an identifier "file_id" in lines 19 and 21 that was changed to just "id" as of JDownloads 3.2. There may be other out of date identifiers as well.

Rajada commented 1 year ago

I fixed this issue on my own site by changing the offending query on lines 19-21 to:

$query = "SELECT id as id, title as title, submitted_by as owner, catid"
. " FROM #__jdownloads_files"
. " WHERE id = " . $id;
Globulopolis commented 1 year ago

Tanks for report a problem. I need some test on J4 and jDownloads 4 beta.

Rajada commented 1 year ago

I have just been made aware that the author of JDownloads has made an updated version of this plugin file at https://www.jdownloads.com/index.php/downloads/download/22-special-extensions-jd4-0/72-jcomments-plugin-for-jd-4-0.html