Tag Archives: Development

Wildcard domains DNS and local WAMP for website development

When developing websites on a  local WAMP installation, I often need control over the DNS. It is no problem to add a hostname to the Windows hosts file, but a wildcard in the domain does not work. For example you need a wildcard domain when installing Wordpress Multisite locally with subdomains. This article has the solution to add wildcards to your local WAMP installation, without installing Bind or other heavy DNS solutions.

Continue reading

warning: htmlspecialchars() expects parameter 1 to be string, array given in includes/bootstrap.inc on line 857

After the from Drupal 6.17 to 6.19, I was getting the following message on a multi-language installation:

warning: htmlspecialchars() expects parameter 1 to be string, array given in includes/bootstrap.inc on line 857.

This is nearly the same problem as described in post.

Also this problem, was only when I was logged in or switched to the default language.
The problem appears when not logged in and the language was set to the non-default language.

Continue reading

warning: preg_match() expects parameter 2 to be string, array given in bootstrap.inc

After an upgrade of module Internationalization (i18n), I was getting the following message on a multi-language installation (Drupal 6.16):
warning: preg_match() expects parameter 2 to be string, array given in includes/bootstrap.inc on line 777.

I did not had this problem, when I was logged in or switched to the default language.
The problem appears when not logged in and the language was set to the non-default language.

Continue reading