Just installed the download plugin and seems not to be working.
I add the code in a K2 article which appears fine, but when clicking on the download button, I get a 404.
These errors:
/home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'type' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'creationDate' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'author' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'copyright' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'authorEmail' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Cannot assign an empty string to a string offset in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'authorUrl' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'version' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'description' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'group' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Cannot assign an empty string to a string offset in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\nPHP message: PHP Warning: Illegal string offset 'filename' in /home/user/domains/domain.com/public_html/administrator/components/com_phocadownload/libraries/phocadownload/utils/utils.php on line 38\n', referer: https://domain.com/administrator/index. ... _installer
System info:
PHP Version 7.1.5
Web Server Apache/2
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.7.5 Stable [ Amani ] 14-August-2017 12:09 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
404 when opening file included in article
-
- Phoca Newbie
- Posts: 4
- Joined: 24 Aug 2017, 18:13
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: 404 when opening file included in article
Hi, can I see the site where this occurs? Disable displaying of development warnings (warnings for developers) in your Joomla! configuration, such warnings should not have any influence on running the code
https://www.phoca.cz/documents/50-phoca ... tic-method
Do you still get the same problems when you disable development warnings?
404 in fact does not have any dependency to the warnings as if there is a php fatal error, script is broken with error 500. 404 means that the article was not found.
Jan
https://www.phoca.cz/documents/50-phoca ... tic-method
Do you still get the same problems when you disable development warnings?
404 in fact does not have any dependency to the warnings as if there is a php fatal error, script is broken with error 500. 404 means that the article was not found.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 24 Aug 2017, 18:13
Re: 404 when opening file included in article
These are now disabled, I've created a new file and still same error:
404 - View is niet gevonden [name, type, prefix]: article, html, phocadownloadView
Code which I add to K2 article:
I have also SecurityCheck Pro running, maybe this blocks it?
404 - View is niet gevonden [name, type, prefix]: article, html, phocadownloadView
Code which I add to K2 article:
Code: Select all
{phocadownload view=file|id=4}
- Benno
- Phoca Hero
- Posts: 9451
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: 404 when opening file included in article
Hi,
did you create a menu link to Phoca Download Component (List of categories)?
See this article. It discribed the problem for Phoca Gallery & Phoca Gallery Plugin but for Phoca Download & Phoca Download Plugin it's the same: https://www.phoca.cz/documents/16-jooml ... -in-joomla
Benno
did you create a menu link to Phoca Download Component (List of categories)?
See this article. It discribed the problem for Phoca Gallery & Phoca Gallery Plugin but for Phoca Download & Phoca Download Plugin it's the same: https://www.phoca.cz/documents/16-jooml ... -in-joomla
Kind regards,So if you are using module or plugin which works together with component (e.g. modules and plugins for Phoca Download, Phoca Gallery, etc.) then you need to create menu link to component, so module or plugin can find Itemid of the component menu link and can create the link to component correctly.
Benno
-
- Phoca Newbie
- Posts: 4
- Joined: 24 Aug 2017, 18:13
Re: 404 when opening file included in article
So I've created a new menu with the link to the file and now the module seems to work fine and the download is found. Thanks! :)
- Benno
- Phoca Hero
- Posts: 9451
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: 404 when opening file included in article
You're welcome!
Kind regards,
Benno
Kind regards,
Benno