Can't download my files

Phoca Download - download manager
stws
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 Jan 2009, 21:42

Can't download my files

Post by stws »

Hi

When installing the 1.0.5 component at my Joomla! 1.5.8 site I ended with a blank page, returning to my admin page I find the Phoca Download panel okay under Components->Phoca Download and I can create sections and categories okay, upload files & icons, create a menu section via the menu module 1.0.0 beta that lists my categories. Clicking on a section from the menu (/component/phocadownload/section/$id-$alias) give me a list of it's categories in the content pane with links like: /component/phocadownload/category/$id-$alias but clicking on such a link doesn't give any new/different content pane content, ie. just keeps listing selected sections categories instead of as expected a list of files in this category :x . Any clues as to why?

Let me know it you need any more details!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't download my files

Post by Jan »

hi, try to see permissions and ownership of your files and folders on your webhosting, try to see the tmp folder then the folder for phoca download files ... maybe the component was not successfully installed and it has problems then... try to disable SEF if enabled...

Jan
If you find Phoca extensions useful, please support the project
stws
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 Jan 2009, 21:42

Re: Can't download my files

Post by stws »

Sorry, this has nothing to do at all with file system permissions eta. everything are fine at the file system, my web server can also upload file into the phocadownload directory, no problem. It seems to some confusion around the routing, turning off SEF doesn't change a bit, links are still SEF converted showning up like /components/com_phocadownload/section/$id-$alias or /components/com_phocadownload/category/$id-$alias (this components looks much like the com_contact components with it's sections and categories) I'm thou new to Joomla development and can't just see what goes wrong and why calling /components/com_phocadownload/category/$id-$alias doesn't try to list the files in my category $id with alias $alias f.ex. /components/com_phocadownload/section/1-members will show me list of category but then clicking on /components/com_phocadownload/category/1-files will just return the same pageview as /components/com_phocadownload/section/1-members and not as I would expect a list of files in my members/files category :roll:
Under top downloaded below it does list my single file in members/files only the link here still just refs /components/com_phocadownload/category/1-files aka the same as the category link above. So I'm kind of stuck and can't get into my files :idea:

I even tried to uninstall and remove all ref to the component and reinstall it successfully with out getting a blank page at end of installation like the first time.

Any hints are appreciated... otherwise I might have to look at other download tools :(
stws
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 Jan 2009, 21:42

Re: Can't download my files

Post by stws »

My mistake, properly turning SEF off in configuration.phpo makes things work, at first I just unpublished the SEF plugin. Now I can se the full URLs and thus it works properly, fine!

But what if I would like to have SEF woring, why wouldn't this work out-of-the-box?
Any clue as to why SEF enabled doesn't work?
I'll look closer at router.php and compare it with similar router.php like from com_contacts or com_weblinks and see if I can make it work in SEF mode too...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't download my files

Post by Jan »

??? the standard SEF should work without any problems :-(
If you find Phoca extensions useful, please support the project
stws
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 Jan 2009, 21:42

Re: Can't download my files

Post by stws »

Finally found that changing router.php line 162&163 from this:

if($count == 3 ) {
$vars['view'] = $segments[$count - 3];

to these

if($count > 1 ) {
$vars['view'] = $segments[0];

makes the SEF with mod_rewrite tick fine at my site, otherwise I couldn't get to the category view&model because line 164&165 says:

} else {
$vars['view'] = 'section';

dunno why I never get 3 elements in segments... It might be because I jump past a sections view and straight from a download menu, providing links to diffenrent section views.

I extended my site from only having public,registered,special to public,registered,member,board,special luser groups and depending on if a luser is registered, member or board, he gets more or less items in his download menu linking directly to a section view&model, thus I never uses a sections view&model. For the same reason I turned off the 'up' link shown in upper right corner in a section view header thus not to led someone to trying to go back to a sections view..

Anyway my line 162&163 should work in either case as mine or with 3 elements in segments, so Jan might consider to incorp the change :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't download my files

Post by Jan »

ok, I will take a look at it, jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't download my files

Post by Jan »

phocadownload works fine with joomla 1.5.9 (SEF turned on) for me. But, its does not work with joomla 1.5.10 (SEF turned on)
Hi, no idea where can be the problem.

This site:
https://www.phoca.cz/download

was running 1.5.10 and now it is running 1.5.11 ... there are any changes there which can influence Phoca Download component :idea:
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't download my files

Post by Jan »

Was the menu link to Phoca Download created?
If you find Phoca extensions useful, please support the project
Post Reply