Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

RESPONSIVE filemanager 9.14.0 obsolète php 8 (resolved) #733

Open
winr777 opened this issue Mar 13, 2024 · 15 comments
Open

RESPONSIVE filemanager 9.14.0 obsolète php 8 (resolved) #733

winr777 opened this issue Mar 13, 2024 · 15 comments

Comments

@winr777
Copy link

winr777 commented Mar 13, 2024

Good morning,
I have just changed the version of PHP on my server from PHP 7.4 to PHP 8.2 and I see that RESPONSIVE filemanager 9.14.0 can no longer display the files in the folders and it gives an error during uploads: "SyntaxError: JSON .parse: unexpected character at line 1 column 1 of the JSON data " while it works great with PHP 7.4 so I tried to replace all the codes I found here, but nothing works. Was there a patch to update it, because it's a shame not to be able to use this great filemanager anymore.
Thanks a lot for anyone who could help me !

@jshster
Copy link

jshster commented Mar 13, 2024

If you pick up the latest files (not the latest release) you will find this issue is fixed.

@winr777
Copy link
Author

winr777 commented Mar 14, 2024

Hi jshster!
Many thanks for your message.
My problem seems to be solved!!
Thanks again !!

@winr777 winr777 closed this as completed Mar 14, 2024
@winr777 winr777 reopened this Mar 14, 2024
@winr777 winr777 changed the title RESPONSIVE filemanager 9.14.0 obsolète php 8 RESPONSIVE filemanager 9.14.0 obsolète php 8 (resolved) Mar 14, 2024
@Link2Trials
Copy link

where are the files.. in the zip or here on github?... the zip contains a version which does not work at all

@dleffler
Copy link

dleffler commented Apr 5, 2024

The updates have not been released nor tagged. Go to the Code page,, click the green code button and download the Zip

@AleksVas-code
Copy link

Will these fixes made for PHP 8 still allow the code to run in PHP 7?

@keyboardman
Copy link

I replaced line 12 in this file /filemanager/config/config.php
mb_http_input('UTF-8') by mb_http_input('L')
It works now

@winr777
Copy link
Author

winr777 commented Sep 2, 2024

Hi!
with the new php8 adapted version of ResponsiveFilemanager, I can no longer import images into CKEditor 4.16.2 via ResponsiveFilemanager

@quakeglen
Copy link

Hi! with the new php8 adapted version of ResponsiveFilemanager, I can no longer import images into CKEditor 4.16.2 via ResponsiveFilemanager

Where did you get the files compatible with php8?

@dleffler
Copy link

It's not yet included as a release, you'll need to download the code. Click the green Code button and select Download Zip

@winr777
Copy link
Author

winr777 commented Oct 18, 2024

It's not yet included as a release, you'll need to download the code. Click the green Code button and select Download Zip

Hi dleffler, I already updated on March 13, 2024 by downloading the zip, but maybe it has been updated since then.
Can you tell me if the zip has been updated?

Thank you for the help

@quakeglen
Copy link

It's not yet included as a release, you'll need to download the code. Click the green Code button and select Download Zip

I just did, downloaded the code as zip file, from the green "Code" button, but still got this error:
Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in ...

i'm using php 8.3 btw... may be php 8.0 may work... i'll try

@dleffler
Copy link

Sounds like you need to install/activate the PHP mbstring extension in your PHP.ini file.

@quakeglen
Copy link

quakeglen commented Oct 18, 2024

It's not yet included as a release, you'll need to download the code. Click the green Code button and select Download Zip

I just did, downloaded the code as zip file, from the green "Code" button, but still got this error: Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in ...

i'm using php 8.3 btw... may be php 8.0 may work... i'll try

PHP 8.0: Works
PHP 8.1: Works
PHP 8.2: Works
PHP 8.3: Error

Sounds like you need to install/activate the PHP mbstring extension in your PHP.ini file.

as @dleffler said, it seems mbstring is not installed/enabled by default in php 8.3

UPDATE: after installing and enabling mbstring extension in php 8.3, Responsive File Manager finally works in php 8.3

@quakeglen
Copy link

quakeglen commented Oct 18, 2024

I got another error when try to upload files using php 8.x:

Fatal error: Uncaught Error: Call to undefined function mime_content_type() in ... include/php_image_magician.php on line 2722

Fix;

  • Open file include/php_image_magician.php
  • Replace line 2722:
// Before
$extension = mime_content_type($file);
// After
$extension = finfo_file(finfo_open(FILEINFO_MIME_TYPE), $file);
  • Install and enable php extension fileinfo
  • Restart web server (apache/nginx)

After doing this, i can now upload files again

@winr777
Copy link
Author

winr777 commented Oct 20, 2024

Hi!
with the new php8 adapted version of ResponsiveFilemanager, I can no longer import images into CKEditor 4.16.2 via ResponsiveFilemanager.

has there been a fix since then?
Thanks for the help and for your work tracking the code.

Win777

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants