Page 1 of 1
Downloads links not working (Above root directory)
Posted: 03 Dec 2011, 07:31
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.
Re: Downloads links not working (Above root directory)
Posted: 03 Dec 2011, 19:29
by clintj
I have moved downloads to the public folder and still no luck. Any other ideas?
Re: Downloads links not working (Above root directory)
Posted: 04 Dec 2011, 20:40
by Jan
And does it work if the files are included in standard phocadownload folder?
Re: Downloads links not working (Above root directory)
Posted: 04 Dec 2011, 21:47
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.
Re: Downloads links not working (Above root directory)
Posted: 05 Dec 2011, 00:15
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?
Re: Downloads links not working (Above root directory)
Posted: 08 Dec 2011, 16:55
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
Jan
Re: Downloads links not working (Above root directory)
Posted: 11 Dec 2011, 14:36
by clintj
I removed the offending code there and everything worked as should. Sorry I didn't post the solution sooner.
Re: Downloads links not working (Above root directory)
Posted: 15 Dec 2011, 23:45
by Jan
Ok