jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: ddjenkins on 11.12.2014 07:59:44

Title: Fatal error: Class 'JDContentHelperQuery' - [Fixed in 3.2.19!!!]
Post by: ddjenkins on 11.12.2014 07:59:44
I have version  3.2.18 & when I click on a download title I get the message "Fatal error: Class 'JDContentHelperQuery' not found in /home5/pdarcsco/public_html/components/com_jdownloads/helpers/jdownloadshelper.php on line 685"

This only started after installing 3.2.17 I've upgraded to .18 but the problem still exists. If you go to this view http://www.pdarcs.com.au/index.php/items-of-interest/club-newsletters & click on any newsletter title you can see what I mean.

This has now completely broke my document downloading ability, so any help to fix this would be appreciated.

Title: Re: Fatal error: Class 'JDContentHelperQuery'
Post by: Arno on 11.12.2014 11:16:47
Hi,
hm... can you please check via FTP whether it exists in this folder: /components/com_jdownloads/helpers the file query.php ?
Title: Re: Fatal error: Class 'JDContentHelperQuery' - [Fixed in 3.2.19!!!]
Post by: Arno on 11.12.2014 11:31:34
Please try this:
Copy the unzipped files below to this folder on your server: /components/com_jdownloads/models/ and overwrite the original files.
Test it then again and post here your result.
This should fix the bug.

Edit:
Sorry i had forget to post the zip file...  :-[

[gelöscht durch Administrator]
Title: Re: Fatal error: Class 'JDContentHelperQuery' - [Fixed in 3.2.19!!!]
Post by: ddjenkins on 11.12.2014 13:19:29
Hi Arno,

Yes the query.php file exists.

I've copied the files provided to the server & it's fixed the issue with fatal error. However, now on each file it says "Only registered and logged in users can download this file."All files are public & therefore should not require login so this is obviously still an issue.

This appears to effect all documents which have always been set as public. So one problem fixed, one to go!!

Thanks.
Title: Re: Fatal error: Class 'JDContentHelperQuery' - [Fixed in 3.2.19!!!]
Post by: Arno on 11.12.2014 18:21:59
Hi,
thanks for the result.

QuoteAll files are public & therefore should not require login so this is obviously still an issue.
A file can be public but users must be logged in to download it (when you set it in this way). So this should not be a bug.

So please check your download  permission settings like it is described here:
http://www.jdownloads.net/documentations/item/show-permissions-overview
Title: Re: Fatal error: Class 'JDContentHelperQuery' - [Fixed in 3.2.19!!!]
Post by: ddjenkins on 12.12.2014 02:41:48
Anro,

Now I'm lost & don't know how to fix this. I've looked at the report you specified & yes it says the docs cannot be downloaded by public.

I've changed nothing on the security side I've only updated the software to 3.12.18. What's changed???

When I look at an individual document download & view permissions it says public cannot download. Yet if I go into Global Configurations for JDownload it shows that public have the right to download. See attached images. It looks like individual downloads are not inheriting the parent value, even though the parent value is correct.

I know I can edit each download & change it, but that's a lot of documents to edit. How do I fix this?

[gelöscht durch Administrator]
Title: Re: Fatal error: Class 'JDContentHelperQuery' - [Fixed in 3.2.19!!!]
Post by: Arno on 12.12.2014 15:31:50
Hi,
yes the permissions are not correct inherited in the moment. We work an o solution.

For the moment can you fix it in this way:

- when all your categories and downloads shall have the same permissions, you can repair it with a simple db query in phpmyadmin:

Example to allowed public download for all Downloads:

Code:

UPDATE `xxx_assets`
SET rules = '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[],"download":{"1":1}}'
WHERE `name` LIKE '%jdownloads.download%'


The first value in: download":{"1":1} is the ID from your public user group and the second value activate this action.
The 'xxx' in the table name must be replaced with the prefix from your db.

For the jD categories can you use:
Code:

UPDATE `xxx_assets`
SET rules = '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[],"download":{"1":1}}'
WHERE `name` LIKE '%jdownloads.category%'


But create always before a DB backup from the _assets table.
Title: Re: Fatal error: Class 'JDContentHelperQuery' - [Fixed in 3.2.19!!!]
Post by: ddjenkins on 13.12.2014 10:16:09
Thanks Arno that got me out of trouble.

Regards, Daniel