Closed (fixed)
Project:
Drupal core
Version:
4.7.11
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2006 at 11:19 UTC
Updated:
31 May 2010 at 15:59 UTC
In all versions of drupal (4.6, 4.7, cvs) sometimes I receive the same error
"warning: array_map(): The first argument, 'utf8_encode', should be either NULL or a valid callback in /home/hombreo1/favt.org/includes/unicode.inc on line 284.
"
Currently I am using yesterday's drupal cvs.
I think need to mention that I'm using Russian language pack and my site www.favt.org contain mostly Russian content.
But:
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation UTF8_general_ci
PHP compiled with multi byte extension
In unicode.inc on line 284 we see:
// PHP gives us ISO-8859-1 data, we need UTF-8.
$table = array_map('utf8_encode', $table);
Comments
Comment #1
killes@www.drop.org commentedvery strange, utf8_encode is a native PHP function, it should be always defined.
which php version do you use?
Comment #2
Igor Borovkov commentedsome data from phpinfo:
PHP Version 4.4.1
Configure Command './configure' '--with-apache=../apache' '--with-mysql=/usr/local' '--without-pear' '--disable-xml' '--without-xmlrpc' '--disable-debug' '--enable-mbstring' '--enable-session' '--without-pdflib' '--without-ming' '--without-ctype' '--with-zlib' '--with-gettext' '--enable-ftp' '--with-gd' '--with-jpeg-dir' '--with-freetype-dir' '--without-cpdflib' '--without-swf' '--with-curl' '--enable-inline-optimization' '--with-gnu-ld' '--enable-memory-limit' '--disable-exif' '--enable-track-vars' '--enable-static' '--disable-overload' '--disable-posix'
Comment #3
beginner commentedDo you use Mandriva?
In anycase, you seem to be missing the php4-xml package.
install it and restart the server.
See also:
http://drupal.org/node/28972
Comment #4
beginner commentedyou have '--disable-xml' in your config command.
Comment #5
beginner commentedI didn't notice this issue was two months old, already.
I guess that having found the problem, we can close this.
Comment #6
Johnyp commentedI'm still seeing this issue in drupal 4.7 official
Running on Gentoo, Apache2, PHP 4 compiled with nls and unicode.
Comment #7
beginner commentedmake sure you have xml support on.
Reopen if you can confirm you have xml support on and you still have the problem.
Comment #8
Johnyp commentedYes, i have compiled PHP with xml support enabled and i'm still seeing this problem. Just did a completely fresh isntall of Drupal on Gentoo
PHP version = 4.4.2-pl0-gentoo apache2handler
Webserver = Apache2
Database = mysql 4.1.19-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail
Comment #9
killes@www.drop.org commentedcan you post your phpinfo output?
Comment #10
magico commented@Johnyp: provide some more info.
Comment #11
l8a commentedI am getting the same error from time to time (i think when editing nodes). However it seems all to work as it should.
Mayb somebody could have a view at my phpinfo ( http://web39.itsaserver.org/drupal/test.php ) ?
Sincerally l8a
Comment #12
Zen commentedComment #13
Conditi0n commentedUser and topic are inactive.