Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Anonymous (not verified) on
I installed drupal earlier today, its using a virtual host through apache.
I receive the following error on viewing the index.php
Fatal error: Call to undefined function: array_map() in includes/database.mysql.inc on line 16
Comments
use this
you use a pre 4.0.6 php, copy the replacement function from here in your conf.php
http://mail.zind.net/pipermail/drupal-devel/2002-April/007808.html
(remove the leading underscore from the function name)
better, ask your admin to update php, there could be security holes.
--
Marco
--
Marco
thanks
I noticed that we were running php 4.04 after posting this.
I'll get that upgraded as soon as possible
thx again
a workaround
a workaround is presented in the FAQ if you can't upgrade. See the 'minimum version of PHP question.
Upgrading is always preferable though, for security reasons.