Title: Error with preg_match
Last modified: August 18, 2016

---

# Error with preg_match

 *  [linus](https://wordpress.org/support/users/linus/)
 * (@linus)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/error-with-preg_match/)
 * Hello,
 *  I iget the following error when trying to install. I added the database, but
   with no tables ( dont know where to find that info ). Here is the error I keep
   getting:
 * Warning: preg_match() expects parameter 2 to be string, array given in /wp-admin/
   upgrade-functions.php on line 326

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/error-with-preg_match/#post-191562)
 * This is an unusual problem. Looking at that line in upgrade-functions.php, I 
   can’t see where it would fail; the logic in the script does provide the second
   argument as a string.
 * This probably doesn’t really help, but I found only two other references to this
   error on the forums, and two (potential) factors that may point to a cause is
   the OS and PHP version running on the server:
 * [http://wordpress.org/support/topic.php?id=27619](http://wordpress.org/support/topic.php?id=27619)
   
   [http://wordpress.org/support/topic.php?id=30623](http://wordpress.org/support/topic.php?id=30623)
 * I’d suggest reporting the problem as a bug, providing as much info about your
   setup as you can.
 * [http://mosquito.wordpress.org/](http://mosquito.wordpress.org/)
 *  [ColdForged](https://wordpress.org/support/users/coldforged/)
 * (@coldforged)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/error-with-preg_match/#post-191566)
 * If it’s right after a “foreach()” clause, it’s likely the classic [mismatched verison of the Zend Optimizer problem with PHP 4.3.10](http://www.zend.com/zend/week/week215.php#Heading5).
   You hosting provider updated to the newer PHP without also updating the Zend 
   Optimizer.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/error-with-preg_match/#post-191589)
 * Ah! Seems a likely cause, CF. And if so, a bug report is not needed…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error with preg_match’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [21 years, 1 month ago](https://wordpress.org/support/topic/error-with-preg_match/#post-191589)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
