Updated to the newest Phoca Download version 3.1.7 (from a really old version created a couple of years ago). When a page with Phoca Download download is opened, it shows an error:
Warning: Invalid argument supplied for foreach() in /data/www/horackova.cz/www.horackova.cz/templates/zshorackova/ ... efault.php on line 23
When old template default.php is disabled the page with Phoca Download categories is displayed correctly, but when clicking on category name, the following error is generated:
---------------------------------------------
Class 'Joomla\CMS\Uri\Uri' not found
Call stack
# Function Location
1 () JROOT/components/com_phocadownload/views/category/view.html.php:26
2 PhocaDownloadViewCategory->display() JROOT/libraries/legacy/controller/legacy.php:671
3 JControllerLegacy->display() JROOT/components/com_phocadownload/controller.php:34
4 PhocaDownloadController->display() JROOT/libraries/legacy/controller/legacy.php:709
5 JControllerLegacy->execute() JROOT/components/com_phocadownload/phocadownload.php:56
6 require_once() JROOT/libraries/cms/component/helper.php:389
7 JComponentHelper::executeComponent() JROOT/libraries/cms/component/helper.php:364
8 JComponentHelper::renderComponent() JROOT/libraries/cms/application/site.php:191
9 JApplicationSite->dispatch() JROOT/libraries/cms/application/site.php:230
10 JApplicationSite->doExecute() JROOT/libraries/cms/application/cms.php:265
11 JApplicationCms->execute() JROOT/index.php:49
---------------------------------------------
Is it possible to solve the issue easily for Joomla 3.7.5 - without updating Joomla CMS itself (because of many other components dependencies)? Can you please direct me the right way?
0 - Class 'Joomla\CMS\Uri\Uri' not found
-
- Phoca Newbie
- Posts: 3
- Joined: 12 Jun 2015, 23:38
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: 0 - Class 'Joomla\CMS\Uri\Uri' not found
Hi,
the problem is in your template:
../templates/zshorackova/html/com_phocadownload/categories/default.php
Your template overrides the Phoca Download output and it seems it included obsolete code and needs to be updated. This should be independent to Joomla! so there is no need to update Joomla! but the template output file.
But regarding the secon problem, it seems that obsolete Joomla! does not know newest Joomla! methods, so:
- you should downgrade Phoca Download so it runs correnctly on obsolete website (not recommended)
- or upgrade Joomla! to the newest (recommended)
Jan
the problem is in your template:
../templates/zshorackova/html/com_phocadownload/categories/default.php
Your template overrides the Phoca Download output and it seems it included obsolete code and needs to be updated. This should be independent to Joomla! so there is no need to update Joomla! but the template output file.
But regarding the secon problem, it seems that obsolete Joomla! does not know newest Joomla! methods, so:
- you should downgrade Phoca Download so it runs correnctly on obsolete website (not recommended)
- or upgrade Joomla! to the newest (recommended)
Jan
If you find Phoca extensions useful, please support the project