jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: newbie01 on 15.06.2015 06:15:41

Title: Errors with New Install on Joomla 3.4.1 on LocalHost - [Solved in 3.2.34!!!]
Post by: newbie01 on 15.06.2015 06:15:41
Based on feedback from other users, I am looking forward to installing jDownloads as a repository for user upload/download on my site once it goes live.  It would be greatly appreciated if you could help me resolve the errors encountered.  Many thanks in advance for the help!

- The Joomla Release Version: Joomla! 3.4.1 Stable [ Ember ]

- The used jDownloads version: 3.2.33

- System Information: PHP, MySQL and version numbers for each (important!)
PHP Built On   Windows NT build 9200 (Windows 8 Home Premium Edition) AMD64
Database Version   5.6.17
Database Collation   utf8_bin
PHP Version   5.5.12
Web Server   Apache/2.4.9 (Win64) PHP/5.5.12
WebServer to PHP Interface   apache2handler

- Localhost: WAMP

What is the problem in detail:
- What you were trying to do, what the errors were
Received following errors while attempting to access jDownloads after installation.
Notice: Undefined offset: -1 in C:\Program Files (x86)\wamp\www\bbb4ihr\components\com_jdownloads\helpers\jdownloadshelper.php on line 841
Notice: Trying to get property of non-object in C:\Program Files (x86)\wamp\www\bbb4ihr\components\com_jdownloads\helpers\jdownloadshelper.php on line 841

- What you have tried to solve the issue (changing settings).
Nothing. Not sure how to resolve.

- What searches you have done.
This forum for posts related to jdownloadshelper.php and 841 but no luck.

- If using specially Extensions (SEF addons as sample)
Only Kunena installed thus far.

What settings are currently set and have been changed in the jDownloads configuration?
Activated Sample with 4 columns for Layout

[gelöscht durch Administrator]
Title: Re: Errors with New Install on Joomla 3.4.1 on LocalHost
Post by: ColinM on 16.06.2015 00:39:17
Hi
I have had no trouble with jDownloads in WAMP and also XAMPP.  The WAMP site was a backup restore.  In WAMP I was not able to install by 'Upload Package File' but I could apparently install by 'Install from Directory'.  But then jD had problems.  I asked Arno and he said the install only works properly from 'Upload Package File' for some reason I do not understand.  So I switched to XAMPP and all was well after I modified the file upload sizes (post_max_size and max_file_size {think name is wrong its late!})  Then installed jD and all OK.

Colin
PS you can get a free test site from Site Ground for a limited period
Title: Re: Errors with New Install on Joomla 3.4.1 on LocalHost
Post by: newbie01 on 16.06.2015 01:37:05
Hi, Colin,

Thank you for taking the time.  It turns out that I was able to install with "Upload Package File" in WAMP.  Maybe what I'll try is to modify the file size limits and check if that solves the issue.

Will give you another update.

Cheers!
Title: Re: Errors with New Install on Joomla 3.4.1 on LocalHost
Post by: newbie01 on 16.06.2015 14:46:54
Hi, Colin,

I checked the php file and noticed that clue for the error lies in the coding for line 841 -
$max_cat_id = $src_for_url_list[count($src_for_url_list)-1]->id;

The reason why I see the error is that I tried to access jDownloads before creating valid Categories.  Still, to the uninitiated, it would be helpful to code a message prompting the user to create a Category before accessing jDownloads again.

Thanks again!
Title: Re: Errors with New Install on Joomla 3.4.1 on LocalHost
Post by: ColinM on 18.06.2015 22:55:45
Hi
Thanks for input./  That problem is a real new one!  Had not thought of the possibility.
Will talk to Arno about it.

Colin
Title: Re: Errors with New Install on Joomla 3.4.1 on LocalHost - [Solved in 3.2.34!!!]
Post by: Arno on 19.06.2015 00:02:07
Hi newbie01,
please note that this "errors" are only "notices" and not heavy errors. And the results from the script are still correct.
So when you use the default settings for the ' Error Reporting' in your Joomla global configuration, you should not have any problems.

But we will fix the notices in next version.

[gelöscht durch Administrator]