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.
Downloads links not working (Above root directory)
-
- Phoca Newbie
- Posts: 5
- Joined: 03 Dec 2011, 06:41
-
- Phoca Newbie
- Posts: 5
- Joined: 03 Dec 2011, 06:41
Re: Downloads links not working (Above root directory)
I have moved downloads to the public folder and still no luck. Any other ideas?
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Downloads links not working (Above root directory)
And does it work if the files are included in standard phocadownload folder?
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 03 Dec 2011, 06:41
Re: Downloads links not working (Above root directory)
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.
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.
-
- Phoca Newbie
- Posts: 5
- Joined: 03 Dec 2011, 06:41
Re: Downloads links not working (Above root directory)
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?
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?
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Downloads links not working (Above root directory)
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 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 03 Dec 2011, 06:41
Re: Downloads links not working (Above root directory)
I removed the offending code there and everything worked as should. Sorry I didn't post the solution sooner.
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Downloads links not working (Above root directory)
Ok
If you find Phoca extensions useful, please support the project