When searching with 20061106, I get one result, followed by the error: Fatal error: Call to undefined function: utf8_decode() in /var/www/localhost/htdocs/dokuwiki/inc/utf8.php on line 123 DokuWiki's bug tracker has an old, closed bug that refers to something similar to this indicating that it's due to an incomplete/limited build: http://bugs.splitbrain.org/?do=details&id=342 Since this appears to be a required function, DokuWiki should require this function to exist in PHP. I don't know which of the billions of use flags for PHP this function depends on. Here are my use flags for PHP: dev-lang/php-4.4.6 USE="apache2 berkdb bzip2 cgi cli crypt gd gdbm iconv mysql ncurses pcre readline session snmp ssl truetype unicode xml zlib -adabas -apache -bcmath -birdstep -calendar -cdb -cjk -concurrentmodphp -ctype -curl -db2 -dbase -dbmaker -dbx -debug -discard-path -doc -empress -empress-bcs -esoob -exif -expat -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd-external -gmp -hyperwave-api -imap -informix -inifile -interbase -iodbc -ipv6 -java-external -java-internal -kerberos -ldap -libedit -mcal -mcve -memlimit -mhash -ming -mnogosearch -msql -mssql -nls -oci8 -oci8-instant-client -odbc -oracle7 -overload -pcntl -pfpro -pic -posix -postgres -recode -sapdb -sharedext -sharedmem -sockets -solid -spell -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads -tokenizer -wddx -xmlrpc -xpm -xsl -yaz -zip" Also note that this error does not happen when the search returns no results. Reproducible: Always Steps to Reproduce: 1. Search for "dokuwiki" in dokuwiki
My emerge --info: Portage 2.1.2.2 (default-linux/x86/2006.1/server, gcc-3.4.6, glibc-2.5-r0, 2.6.18-gentoo-r4 i686) ================================================================= System uname: 2.6.18-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 20 Mar 2007 12:30:01 +0000 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php4/ext-active/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/ ftp://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://prometheus.cs.wmich.edu/gentoo http://modzer0.cs.uaf.edu/public/gentoo/ ftp://mirror.averse.net/pub/gentoo http://mirror.averse.net/pub/gentoo/" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 bash-completion berkdb bitmap-fonts bzip2 cgi cli cracklib crypt dri gd gdbm gpm iconv isdnlog libg++ mailwrapper md5sum midi mime mmx mysql ncurses nfs nptl nptlonly pam pcre perl ppds pppd python readline reflection sasl session snmp spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts vhosts x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Recompile your PHP w/ USE=expat if you are really using php-4; for any other version you need USE=xml
Roger that. A rebuild of php4 with USE="expat" fixes the search error. The ebuild probably needs something to warn you or detect that you don't have the proper PHP use flags.
Ok, 20061106 now checks for the USE flag. The check is both PHP4 and PHP5 aware. Thanks for your report!
Thanks Andrej!