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

marco’s picture

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

Geoff Holden’s picture

I noticed that we were running php 4.04 after posting this.

I'll get that upgraded as soon as possible Only local images are allowed.

thx again

moshe weitzman’s picture

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.