No Code Attached Yet
avatar joeforjoomla
joeforjoomla
21 Sep 2021

Steps to reproduce the issue

Install Joomla 4 and open a view having a TinyMCE editor

Expected result

No errors, all works fine

Actual result

error 0: Undefined constant "GLOB_BRACE"

Additional comments

The line 477 of the file tinymce.php uses the 'GLOB_BRACE' flag:
foreach (glob(JPATH_ROOT . $template_path . '/*.{html,txt}', GLOB_BRACE) as $filepath)

but: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris or Alpine Linux.
see: https://www.php.net/manual/en/function.glob.php

That one should be removed

avatar joeforjoomla joeforjoomla - open - 21 Sep 2021
avatar joomla-cms-bot joomla-cms-bot - change - 21 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Sep 2021
avatar richard67
richard67 - comment - 22 Sep 2021

The use of that flag had been introduced with PR #33130 . Am working on a fix.

avatar richard67 richard67 - change - 22 Sep 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-09-22 10:35:51
Closed_By richard67
avatar richard67 richard67 - close - 22 Sep 2021
avatar richard67
richard67 - comment - 22 Sep 2021

Closing as having a pull request (PR). Please test #35636 and let me know if you would prefer the other possible solution described in that PR's description, the one with the try and catch. Thanks in advance.

Add a Comment

Login with GitHub to post a comment