Page 1 of 1

[FIXED] Phoca Download plugin for version 3.0.0 & Joomla 3.x

Posted: 21 Jun 2013, 17:53
by elric_olalekan
Hope this helps someone :)

For those experiencing this/these error(s) after activating the Phoca Download plugin on Jooma 3.x,
1

Code: Select all

Warning: require_once(/www/siteDScomponentsDScom_phocadownloadDShelpersDSroute.php) [function.require-once]: failed to open stream: No such file or directory in /www/site/plugins/content/phocadownload/phocadownload.php on line 16

Fatal error: require_once() [function.require]: Failed opening required '/www/siteDScomponentsDScom_phocadownloadDShelpersDSroute.php' (include_path='.:/usr/local/php53/lib/php') in /www/site/plugins/content/phocadownload/phocadownload.php on line 16
The solution is adding this line

Code: Select all

if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
on file site/plugins/content/phocadownload/phocadownload.php most preferably at the top.
Seems to have been omitted on this version 3.0 of Phoca download.

2

Code: Select all

Warning: require_once(/www/site/components/com_phocadownload/helpers/route.php) [function.require-once]: failed to open stream: No such file or directory in(/www/site/plugins/content/phocadownload/phocadownload.php on line 16

Fatal error: require_once() [function.require]: Failed opening required '/www/site/components/com_phocadownload/helpers/route.php' (include_path='.:/usr/local/php53/lib/php') in /www/site/plugins/content/phocadownload/phocadownload.php on line 16
Download the Phoca donwload component version 2.1.9, copy files route.php, phocadownloadlayout.php and phocadownload.php from 'com_phocadownload_v2.1.9/site/helpers' and paste them on the helpers folder of the version 3.0 (front-end) component.

3

Code: Select all

Warning: require_once(/www/site/administrator/components/com_phocadownload/helpers/phocadownload.php) [function.require-once]: failed to open stream: No such file or directory in /www/site/plugins/content/phocadownload/phocadownload.php on line 20 or 19

Fatal error: require_once() [function.require]: Failed opening required '/www/site/administrator/components/com_phocadownload/helpers/phocadownload.php' (include_path='.:/usr/local/php53/lib/php') in /www/site/plugins/content/phocadownload/phocadownload.php on line 20 or 19
Download the Phoca donwload component version 2.1.9, copy file phocadownload.php from 'com_phocadownload_v2.1.9/helpers' and paste it on the helpers folder of the version 3.0 component that is under /administrator.

That fixed my issues.

Re: [FIXED] Phoca Download plugin for version 3.0.0 & Joomla

Posted: 22 Jun 2013, 17:04
by yvanvds
Thanks a lot! I was having this exact problem.

Re: [FIXED] Phoca Download plugin for version 3.0.0 & Joomla

Posted: 23 Jun 2013, 16:19
by yvanvds
After this fix, i stumbled on a new error. When using the component to display a category view, some class were already defined. I solved it by making the class definition in the helpers directory conditional:

if (!class_exists('PhocaDownloadLayout')) {
(here goes the definition of the class)
}

I know this is not very good programming, but it might help until the plugin is fixed properly.