Downloads links not working (Above root directory)

Phoca Download - download manager
clintj
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Dec 2011, 06:41

Downloads links not working (Above root directory)

Post by clintj »

So this is my first time dealing with phoca download and files located above the web root directory. One page is located here: http://www.hypnosisbusinesscoaching.com ... egory&id=2

I have error logging turned on according to cpanel settings however I only get a blank page and nothing in my error log. Also I get no errors when I turn on Joomla debugging (on the blank page after download).

I have also tried creating links with the plugin and get the same result.

Any ideas - Thanks a million.

PS I have also turned off all SEF.
clintj
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Dec 2011, 06:41

Re: Downloads links not working (Above root directory)

Post by clintj »

I have moved downloads to the public folder and still no luck. Any other ideas?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48610
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Downloads links not working (Above root directory)

Post by Jan »

And does it work if the files are included in standard phocadownload folder?
If you find Phoca extensions useful, please support the project
clintj
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Dec 2011, 06:41

Re: Downloads links not working (Above root directory)

Post by clintj »

No. I relocated them into the standard phocadownload folder and still the same results. This is a HostGator "Business Package". I have used phocadownload successfully on other sites being hosted on my Host Gator VPS.

According to hostgator tech support all error logging is turned on but I still just get a blank screen. I am working with a tech there to try and see what the error is.
clintj
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Dec 2011, 06:41

Re: Downloads links not working (Above root directory)

Post by clintj »

Thank you for contacting Hostgator.com, I ran a strace on the script while I pressed the download button and it appears the processes is getting caught up on some missing files, here is what strace shows before the processes terminates:

14:30:06 lstat64("/home/aka42me/public_html/hypnosisbusinesscoaching.com/administrator/components/com_osemsc/warehouse", 0xbfd47a5c) = -1 ENOENT (No such file or directory)
14:30:06 open("/home/aka42me/public_html/hypnosisbusinesscoaching.com/administrator/components/com_osemsc/warehouse/api.php", O_RDONLY) = -1 ENOENT (No such file or directory)

-----------------------------------

Next I backed up mySQL tables for files, categories, and sections for phoca download, removed it under addons in OSE Mem, uninstalled components and plugins for Phoca Download, then reinstalled Phoca, imported my backed up tables for files, sections, and categories and now it is giving me the error instead of a blank screen when I click the download in phoca download:


Warning: require_once(/home/aka42me/public_html/hypnosisbusinesscoaching.com/administrator/components/com_osemsc/warehouse/api.php) [function.require-once]: failed to open stream: No such file or directory in /home/aka42me/public_html/hypnosisbusinesscoaching.com/components/com_phocadownload/models/category.php on line 289

Fatal error: require_once() [function.require]: Failed opening required '/home/aka42me/public_html/hypnosisbusinesscoaching.com/administrator/components/com_osemsc/warehouse/api.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aka42me/public_html/hypnosisbusinesscoaching.com/components/com_phocadownload/models/category.php on line 289

--------------------------
components/com_phocadownload/models/category.php Line 289:

//OSE Modified Start;
if (!empty($filename)){
if (JComponentHelper::isEnabled('com_osemsc', true)) {
require_once (JPATH_ADMINISTRATOR . DS . "components" . DS . "com_osemsc" . DS . "warehouse" . DS . "api.php");
$checkmsc = new OSEMSCAPI();
$checkmsc->ACLCheck("phoca", "cat", $filename[0]->catid, true);
}
}
//OSE Modified End;
------------------------

Sure enough there is no 'wharehouse' folder.

Now where to go from here?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48610
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Downloads links not working (Above root directory)

Post by Jan »

Hi, if you run com_osemsc on your server, I think, you need to ask developer of this component, if the support for Phoca Download is up-to-date :idea:

Jan
If you find Phoca extensions useful, please support the project
clintj
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Dec 2011, 06:41

Re: Downloads links not working (Above root directory)

Post by clintj »

I removed the offending code there and everything worked as should. Sorry I didn't post the solution sooner.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48610
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Downloads links not working (Above root directory)

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply