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.

Ubuntu: Installing Zend Framework with NetBeans

To install Zend Framework is not as straight forward like other PHP Frameworks. Also to install it with NetBeans it was not described very well on blogs.sun.com/netbeansphp¬†site. Let’s start! My assumption is that NetBeans is installed already on Ubuntu. I used NetBeans 6.9.1 and Ubuntu 10.10. In NetBeans are also the PHP plugins installed. Installing the Zend Framework First we are going to install Zend: $ sudo apt-get install zend-framework-bin This will also install the package: “libzend-framework-php”.

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.

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

Na de upgrade van Drupal 6.17 naar 6.19, kreeg ik de volgende melding op een meertalige website installatie: warning: htmlspecialchars() expects parameter 1 to be string, array given in includes/bootstrap.inc on line 857 Dit is bijna het zelfde probleem zoals beschreven in deze post. Ook dit probleem was pas toen ik was ingelogd of een niet standaard taal had ingesteld. Het probleem verschijnt dus alleen wanneer niet bent ingelogd en de taal is ingesteld op de niet-standaard taal.

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. Searching for the problem After switching off the module “Block translation”, the problem was gone.

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

Na een upgrade van de module Internationalisering (i18n), ik kreeg het volgende bericht op een multi-taal, installatie (Drupal 6.16): warning: preg_match() expects parameter 2 to be string, array given in includes/bootstrap.inc on line 777. Ik kreeg de melding alleen als ik niet was ingelogd en de taal was ingesteld op de niet-standaard taal. Op zoek naar het probleem Na het uitschakelen van de module “Block translation”, was het probleem verdwenen.