A
A
AMK882KXX2019-06-28 18:55:00
opencart
AMK882KXX, 2019-06-28 18:55:00

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');

Tell me pliz where to dig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question