Installation throws warning: "Wrong parameter count for get_loaded_extensions() in ...../setup/index.php

When installing OXID eShop 4.0.0.2 (R 14842) some people report errors like:

Warning: Wrong parameter count for get_loaded_extensions() in /htdocs/…/setup/index.php on line 434Warning: Wrong parameter count for get_loaded_extensions() in /htdocs/…/setup/index.php on line 434Warning: array_merge() [[function.array-merge](file:///C:/Dokumente%20und%20Einstellungen/ralf%20trapp/Desktop/function.array-merge)]: Argument #1 is not an array in /htdocs/…/setup/index.php on line 434Warning: array_merge() [[function.array-merge](file:///C:/Dokumente%20und%20Einstellungen/ralf%20trapp/Desktop/function.array-merge)]: Argument #2 is not an array in /htdocs/…/setup/index.php on line 434

Team is currently working on that. We will post solution here very soon.

Ralf

Hi Ralf,

It looks like the reason causing this problem is clear. It happens due to changes in one of php function declarations. An additional parameter has been introduced in php function get_loaded_extensions() since php version 5.2.4. This error must happen for users having php version 5.2.3 and lower. As OXID eShop should be runing on php version 5.2.0 and higher, we made a fix for this problem which will be available in new eShop release. What we did we changed get_load_extension() call to many extension_loaded() checks. And a solution for the user having this problem:

  • Upgrade PHP installation to the newest.
    or
  • Get index.php from http://svn.oxid-esales.com/trunk/setup/ (applies for Community Edition)
    or
  • Change the code yourself (Community Edition) in setup/index.php file, line 442:
    from:
    $aLoadedExtensions = array_merge(get_loaded_extensions(false),get_loaded_extensions(true));
    to:
    $aLoadedExtensions = get_loaded_extensions();

Tomas