Answer the question
In order to leave comments, you need to log in
Opencart error - use of undefined GLOB_BRACE constant?
Opencart is installed from scratch on hosting. When entering the modules menu, it gives an error:
Notice: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' in /mnt/web418/a1/28/59982128/htdocs/admin/controller/extension/extension.php on line 40Warning: glob() expects parameter 2 to be integer, string given in /mnt/web418/a1/28/59982128/htdocs/admin/controller/extension/extension.php on line 40Warning: Invalid argument supplied for foreach() in /mnt/web418/a1 /28/59982128/htdocs/admin/controller/extension/extension.php on line 42
In the specified extensions.php file, lines 40-42 have the following code:
$files = glob(DIR_APPLICATION . 'controller/extension/extension/*.php', GLOB_BRACE);
foreach ($files as $file) {
$extension = basename($file, '.php');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question