Hi all,
New installation of Drupal 4.7 beta results:
I use Verio web hosting and tested on VPS1 and VPS2 server accounts.
both accounts are set up with a default installation of php and mysql as would be common.
drupal 4.7
apache 1.3.33
php 4.4.1
mysql 4.1.14
pcre 6.4
http://drupal.brandform.net/ is a vps2 account
http://brandform.net/ is a vps1 account

I receive the same error on every page with a basic install however everything seems to be functioning otherwise fine.

warning: preg_match(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /home/brandform/www/drupal.brandform.net/includes/unicode.inc on line 32.

ive tried all the obvious solutions... like all the stuff listed on other posts, increasing php memory, messing with pcre... and only succeeded in breaking my apache configuration to the point i needed to have a support tech help me heal my blunder.

just thought you guys would like to know.
it sure would be cool if there was a feature where we could turn off utf-8/unicode support so that we can use VPS servers like the one's at NTT/VERIO etc.

Comments

isaachorton’s picture

Hey the solution was much more difficult to find than i had hoped so maybe this post will be useful to some others as well.

I had to uninstall the pcre package and reinstall the proper one with utf-8.
heres the procedure:
login to server via shell,
on VPS2 accounts,
# su root
then type password
basically you want to be root user.
then type:
# pkg_info
which will show you the installed packages.
type:
# pkg_delete pcre-6.4
for me it was 6.4 but yours may be different. make sure to enter the proper version of pcre displayed in pkg_info.
then you want to change to the directory where your ports collection is.
on FreeBSD it is:
/ports/devel/pcre-utf8
so type into your shell prompt:

# cd /
# cd ports/devel/pcre-utf8
# make
# make install
# make clean

then youll want to restart the apache server...
something like this:
# restart_apache

thats it...
fixed everything for me.
after over a day of pulling my hair out and almost abandoning the effort......

sepeck’s picture

Go here: http://drupal.org/node/21875
Click add child page and please add a handbook page.
It goes into moderation and will be approved soon after (generally a few days).

This way those thay come after benefit from your contributions.

thanks,
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

Anonymous’s picture

PHP comes with its own pcre library. Specifying --with-pcre-regex=/path/to/pcre disables the PHP internal library. For what ever reason not using the internal library causes this issue.

Earnie -- http://for-my-kids.com