The function glob (hidden link) does not support GLOB_BRACE on systems like Solaris (see the note in the documentation). Strato (hidden link), one of the biggest German web hosting companies, is using Solaris servers. This causes the following two warnings and prevented any login to WordPress in our case.
PHP Warning: glob() expects parameter 2 to be integer, string given in /www/wp-content/plugins/types/vendor/toolset/toolset-common/utility/condition/theme/layouts-support/native/available.php on line 30
PHP Warning: Invalid argument supplied for foreach() in /www/wp-content/plugins/types/vendor/toolset/toolset-common/utility/condition/theme/layouts-support/native/available.php on line 30
Class Toolset_Condition_Theme_Layouts_Support_Native_Available in file available.php already contains a check for function_exists( 'glob' ). I suggest to extend the check by: defined( GLOB_BRACE )
Other than that, please provide an email address to send bugs like these. I am still wondering if it was worth the time to create an account just to leave a suggestion in a non-supported customer forum which is most likely never read by anyone important enough...
Hi, rest assured we do check this queue and your support requests here will be attended to. I have escalated this problem to our 2nd Tier support team for some additional investigation, because I'm not sure exactly what we do or do not support in terms of GNU vs non-GNU systems, etc. Please stand by and I will update you when I have some feedback that I can share.
Hi, just a quick update to let you know there is still some discussion pending about this.
It looks like core WP avoided GLOB_BRACE due to some servers not allowing it:
https://make.wordpress.org/cli/2017/10/17/version-1-4-0-released/ > Avoids use of GLOB_BRACE for compatibility with Alpine Linux [#14]
But several other plugins use it, including Events Calendar. Some people suggest to fix this in Solaris, not on the server:
hidden link
Our developers are considering options and I'll provide some additional feedback when I receive it.
Hi, my developers just let us know that this issue has been resolved for a related ticket. The Solaris GLOB_BRACE issue should now be resolved in Solaris systems. Let me know if this is not the case and I can ask for some clarification from the developers. Thank you.