tinyMCEfileman and php8.x

Post Reply
bastian
Ssr. Bludit
Posts: 20
Joined: Sun Jan 05, 2020 9:57 pm
Has thanked: 1 time

Hello,

after the upgrade from php7.x to php8.x tinyMCEfileman seems to be broken. Clicking on the filemanager icon just opens an (almost) empty window.

Does anybody made the same experience?

Anything to do about it?

Sebastian
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

First please try to contact the author of the plugin:

https://plugins.bludit.com/plugin/tinymcefileman
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
bastian
Ssr. Bludit
Posts: 20
Joined: Sun Jan 05, 2020 9:57 pm
Has thanked: 1 time

Unfortunately, no reaction for a week.

Sebastian
alex611
Ssr. Bludit
Posts: 13
Joined: Fri Jun 02, 2023 6:07 pm
Has thanked: 6 times
Been thanked: 2 times

I had a similar issue (blank popup) and this did the trick for me:
STEP 1:

modules/TinyMCE/responsive_filemanager/filemanager/config/config.php

Line 9:

replace

Code: Select all

mb_http_input('UTF-8');
with:

Code: Select all

mb_http_input();
After doing that you will see the download files again instead of the empty pop
up. But trying to upload new files will give an error such as "saveImage: This
is not a resource". So go to step 2.

STEP 2:

modules/TinyMCE/responsive_filemanager/filemanager/include/php_image_magician.php

Line 2791:

replace:

Code: Select all

if ( ! is_resource($this->imageResized))
with:

Code: Select all

if ( ! is_resource($this->imageResized) && !($this->imageResized instanceof
\GdImage))
Hope it will help :)
Bludit 3.14.1 / Default admin theme / Theme docs-x-3.2 / PHP 8.1.7 / Ngnix
bastian
Ssr. Bludit
Posts: 20
Joined: Sun Jan 05, 2020 9:57 pm
Has thanked: 1 time

Sorry for the late answer. Yes, that's it! Thank you.
Post Reply