Page 1 of 2

[BUG] Phoca Download 2.0.0 beta1 bug report

Posted: 08 Dec 2010, 06:13
by mwotton
In administrator site, saving an existing file got the following error on the intermediate page:

Notice: Undefined property: TablePhocaDownload::$texonly in /path/to/site/administrator/components/com_phocadownload/tables/phocadownload.php on line 25

Seems to be missing a character, 'texonly' should read 'textonly'. File info is still saved, with the following exceptions:

"Direct download" or "Display Inaccessible file" options are not being saved when enabled.

Running Joomla! 1.6b15

Re: Phoca Download 2.0.0 beta1 bug report

Posted: 08 Dec 2010, 06:50
by mwotton
In addition, it seems the Joomla access levels are not being applied to categories or files the way I would expect.

I have created multiple categories and subcategories within Phoca Download, each with a matching Joomla access level and Joomla user group, with the idea that a user can be assigned to multiple user groups according to their interests. Each Phoca subcategory is linked to through a menu item of type: "List of Files (Category View)". When clicking on the menu item for a subcategory that my user groups should not allow access to, I can still see the list of files and download those files - even if each individual file is assigned an access level I do not have.

Re: Phoca Download 2.0.0 beta1 bug report

Posted: 08 Dec 2010, 08:38
by mwotton
When viewing a category with no visible files:

Notice: Undefined offset: 0 in /path/to/site/components/com_phocadownload/views/category/view.html.php on line 169

Notice: Trying to get property of non-object in /path/to/site/components/com_phocadownload/views/category/view.html.php on line 206

Notice: Trying to get property of non-object in /path/to/site/components/com_phocadownload/views/category/view.html.php on line 214

Edit: TEMPORARY FIX

/components/com_phocadownload/views/category/view.html.php line 169 - CHANGE FROM

Code: Select all

    $this->_prepareDocument($this->category[0]);
TO

Code: Select all

    if (isset($this->category[0]) && is_object($this->category[0])){
		  $this->_prepareDocument($this->category[0]);
    }

Re: Phoca Download 2.0.0 beta1 bug report

Posted: 08 Dec 2010, 08:49
by mwotton
The option to not show page title is not available in the component options, yet it is checked for in the view templates. Modifying the database table jos_extensions entry for phocadownload with "show_page_title":0 turns them off.

Re: [BUG] Phoca Download 2.0.0 beta1 bug report

Posted: 09 Dec 2010, 21:02
by Jan
Hi, thank you for the reports

What you exactly mean with "When viewing a category with no visible files:"
The option to not show page title is not available in the component options, yet it is checked for in the view templates
This should be taken from menu links parameters ??? :idea:
I have created multiple categories and subcategories within Phoca Download, each with a matching Joomla access level and Joomla user group, with the idea that a user can be assigned to multiple user groups according to their interests. Each Phoca subcategory is linked to through a menu item of type: "List of Files (Category View)". When clicking on the menu item for a subcategory that my user groups should not allow access to, I can still see the list of files and download those files - even if each individual file is assigned an access level I do not have.
Can you describe it in more details. ... The problem of new ACL in Joomla! (for me) I still didn't get it working (for me it is a little bit confusing so I must do a lot of tests there - to learn it better :-( )

Jan

Re: [BUG] Phoca Download 2.0.0 beta1 bug report

Posted: 10 Dec 2010, 02:33
by mwotton
Hi Jan,

"When viewing a category with no visible files" means I am viewing a category with either no files in it or no files that I have access to.

The "Show Page Title" option is not in the menu item parameters. There is an option for "Show Page Heading" under "Page Display Options", but this relates to the custom browser title option and not the actual page title.

ACL now seems to be working. I really am not sure what it was but now it is correctly showing me the message I have built into a layout override file. Previously it was showing me the files and letting me download them.

Re: [BUG] Phoca Download 2.0.0 beta1 bug report

Posted: 12 Dec 2010, 00:54
by Jan
Ok, thanks for the additional info, I will take a look at it and will fix it for beta2

Jan

Re: [BUG] Phoca Download 2.0.0 beta1 bug report

Posted: 14 Dec 2010, 17:11
by Jan
Hi, if you will edit the category, you can assign the rigth for Joomla! group there.

I will take a look at the problem

Unserstand I it correct, this you get while selecting menu link in menu manager?

Re: [BUG] Phoca Download 2.0.0 beta1 bug report

Posted: 05 Jan 2011, 11:48
by decite
Hi Jan,

i'm experiencing the same bug as "margreg" mentioned before.

Whenever I try to create a "List of Files (Category View)" menu item type in the menu manager, the menu item creation crashes with the following message:
Required Settings:
Select Category
Fatal error: Class 'PhocaDownloadHelper' not found in <serverpath taken out for privacy>\administrator\components\com_phocadownload\models\fields\phocadownloadcategory.php on line 51
My current setup is the following:
Phoca Download 2.0.0 beta1 with
Joomla 1.6 RC1 on
Apache Version : 2.2.11
PHP Version :5.3.0
MySQL Version :5.1.36

Regards,
decite

Re: [BUG] Phoca Download 2.0.0 beta1 bug report

Posted: 05 Jan 2011, 15:53
by Jan
Ok, I will take a look at it.

Jan