php 8.1 the two navigation windows disappear

Phoca Commander - dual panel file manager for Joomla! CMS
User avatar
oxido
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 28 Apr 2023, 10:41

php 8.1 the two navigation windows disappear

Post by oxido »

Hi,

PHP 8.1
Joomla 4.3.0
Phoca commander 4.0.0


When I click any link in any of the two navigation windows:
1) Nothing is happening (the navigation is not working)
2) The navigation windows disappear

https://i.imgur.com/9ddLEoH.gif
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: php 8.1 the two navigation windows disappear

Post by Jan »

Hi, this can be due to some Javascript conflict, try to open Javascript console and check if there is no error in console or in network (ajax) tab.

https://www.phoca.cz/documents/16-jooml ... -conflicts

Testing now version 4.0.0 on Joomla 4.3, everything seems to be OK :idea:

Image

Jan
If you find Phoca extensions useful, please support the project
divocak
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Jan 2009, 17:33

Re: php 8.1 the two navigation windows disappear

Post by divocak »

Hi, i have same problem.

Php 8.1 and joomla 4.3
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: php 8.1 the two navigation windows disappear

Post by Jan »

Did you open the Javascript console a checked for the Javascript errors?

Jan
If you find Phoca extensions useful, please support the project
p.luks
Phoca Member
Phoca Member
Posts: 48
Joined: 19 Jan 2020, 20:51

Re: php 8.1 the two navigation windows disappear

Post by p.luks »

Hello Jan,
I also have this problem under PHP 8.1, but no javascript errors.
https://imgur.com/FtZAIew

If I change the PHP to 8.0, then it works without problems
p.luks
Phoca Member
Phoca Member
Posts: 48
Joined: 19 Jan 2020, 20:51

Re: php 8.1 the two navigation windows disappear

Post by p.luks »

I have checked with a other Test-System and here i have not the Problem.

but i have checked the xhr response from the Problem-site. This site send the error:

Code: Select all

XHRPOST
https://test.xxx.de/administrator/index.php?option=com_phocacommander&view=phocacommanderfilesa&format=json&tmpl=component&961cfe63abf06c494ae3eafe151781a2=1
[HTTP/2 200  280ms]

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

1 <br />
2 <b>Deprecated</b>:  base64_encode(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/www/htdocs/v118360/test.it-conserv.de/administrator/components/com_phocacommander/views/phocacommanderfilesa/view.json.php</b> on line <b>262</b><br />
3 {"status":"1","message":"<div class=\"ph-box-s\"><div class=\"ph-status ph-status-active\" id=\"phStatusB\"><\/div><table class=\"ph-table\"><tr><th class=\"ph-check\"><input type=\"checkbox\" name=\"selectAll\" id=\"selectAllB\" \/><\/th><th class=\"ph-name\"><a href=\"javascript: void(0)\" onclick=\"var phLFAc = {};phLFAc['panel'] = 'B';phLFAc['activepanel'] = 'B';phLFAc['folderb'] = 'aW1hZ2Vz';phLFAc['foldera'] = '*';phLFAc['orderingb'] = 'name';phLFAc['orderinga'] = '';phLFAc['directionb'] = 'DESC';phLFAc['directiona'] = '';phLoadFiles(phLFAc);\">Name<\/a> <span class=\"ph-arrow\">
...
shortened
...
<input type=\"hidden\" value=\"aW1hZ2Vz\" name=\"ph-panelB\" id=\"phPanelB\" \/><\/form>"}
I will continue to check whether there is anything installed that is related to this.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: php 8.1 the two navigation windows disappear

Post by Jan »

Hi, try to install Phoca Commander 5.0.0 (on your Joomla 4 version, it should be compatible):
https://www.phoca.cz/download/95-phoca- ... -component

This should be solved there.

Jan
If you find Phoca extensions useful, please support the project
p.luks
Phoca Member
Phoca Member
Posts: 48
Joined: 19 Jan 2020, 20:51

Re: php 8.1 the two navigation windows disappear

Post by p.luks »

Hello Jan,

I installed the 5.0.0 beta today and it works fine. :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: php 8.1 the two navigation windows disappear

Post by Jan »

Hi, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply