Commander v6.1 File editing not possible

Phoca Commander - dual panel file manager for Joomla! CMS
rogerco
Phoca Member
Phoca Member
Posts: 48
Joined: 18 Sep 2011, 16:17

Commander v6.1 File editing not possible

Post by rogerco »

Have I made a terrible mistake by updating to v6.1.2 on a Joomla 5.4.7 site? It was offered as a standard extension update from 6.0. but now editing any file is not working. The editor window opens but when you click Save I get a yello box at the top of the screen with the message "Save failed with the following error:" in bold white and no further text.
In the console with dev tools inspect is the following message:
==================
"editors.js?45c778:31 Direct access to Joomla.editors.instances is deprecated. Use JoomlaEditor.getActive() or JoomlaEditor.get(id) to retrieve the editor instance.
get @ editors.js?45c778:31
phSaveEdit @ phocacommander.js?45c778:92
Joomla.submitbutton @ index.php?option=com…2RlZmF1bHQucGhw:231
executeTask @ joomla-toolbar-button.js?623aee:119
==================
Save and Close gives the slightly more informative message which I can screenshot but don't seem to be able to paste here (imgur as per your documentation gives a not available in your region error (I'm in GB). The top lines are
===================:
danger
Error - this file type is not allowed
An error has occurred.
0 Call to undefined method PhocaCommanderCpControllerPhocaCommanderEdit::setError()
=====================
The call stack is
=====================
# Function Location
1 () JROOT/administrator/components/com_phocacommander/controllers/phocacommanderedit.php:313
2 PhocaCommanderCpControllerPhocaCommanderEdit->save() JROOT/libraries/src/MVC/Controller/BaseController.php:730
3 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocacommander/phocacommander.php:33
4 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
5 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
6 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
7 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
8 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:206
9 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:304
10 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
11 require_once() JROOT/administrator/index.php:32
=======================
and the console says
=======================
POST http://j5.localhost/administrator/index ... F1bHQucGhw 500 (Internal Server Error)
=======================

Everything was working normally just before the update. I have tried turning it off and turning it on again (TIO&TIOA). The file I am trying to edit is a php one with permissions 644 - which is exactly the same as before the update and was working normally.

I have reinstalled v6.0.o over the top of 6.1.2 and all is fine again. I don't currently have a J6 site to test against but Commander 6.1.2 is broken on J5.4.7
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49507
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Commander v6.1 File editing not possible

Post by Jan »

Hi, Phoca Commander does not store any data, so you can easily install the previous working version on Joomla 5 and ithis is all. The only one problem could be the security, the latest Joomla 6 and Phoca Commander solves security problems. So in case you need to run old version be sure, noone other than you can use Phoca Commander on your site.
If you find Phoca extensions useful, please support the project
Post Reply