Title: Error messages.
Last modified: August 22, 2016

---

# Error messages.

 *  Resolved [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-messages-48/)
 * I’m suddenly getting an error message when adding wordcount:
 * ————————
    Warning: preg_match_all() expects at least 3 parameters, 2 given in[
   path removed]/wp-content/plugins/codepress-admin-columns/classes/column/post/
   word-count.php on line 67 ————————
 * Never had it before, and I’m not aware of adding new plugins or changing anything
   else.
 * [https://wordpress.org/plugins/codepress-admin-columns/](https://wordpress.org/plugins/codepress-admin-columns/)

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

 *  Thread Starter [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-messages-48/#post-5636345)
 * UPDATE: Doesn’t happen on a fresh install with no plugins – so looks like a clash.
   Bummer – that’ll be fun finding out which one. 🙂
 *  Plugin Author [Jesper van Engelen](https://wordpress.org/support/users/engelen/)
 * (@engelen)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-messages-48/#post-5636438)
 * That’s quite strange, as the third argument for preg_match_all is optional is
   all PHP versions I know. What PHP version are you using?
 *  Thread Starter [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-messages-48/#post-5636450)
 * Thanks.
 * Phpinfo shows it was 5.2.17 – which seems at odds with my server settings which
   show 5.4.
 * I’ve now edited the .htaccess file to force 5.4.35, and things are now working
   ok again.
 * After my initial post, I checked some other installs where it had been previously
   been ok and to which no new plugins had been added – but they too had the same
   error.
 * I don’t pretend to understand much of this stuff, but it seems the change of 
   php version is the solution – and this may be related to a recent upgrade to 
   my server by my host.
 *  Plugin Author [Jesper van Engelen](https://wordpress.org/support/users/engelen/)
 * (@engelen)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-messages-48/#post-5636500)
 * Thanks for the additional information! It appears that the third argument for`
   preg_match_all` was required in some older versions of PHP. To ensure this doesn’t
   yield an error in Admin Columns, the issue will be fixed in the next Admin Columns
   release.
 *  Thread Starter [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-messages-48/#post-5636510)
 * Thanks.

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

The topic ‘Error messages.’ is closed to new replies.

 * ![](https://ps.w.org/codepress-admin-columns/assets/icon.svg?rev=1521754)
 * [Admin Columns](https://wordpress.org/plugins/codepress-admin-columns/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codepress-admin-columns/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codepress-admin-columns/)
 * [Active Topics](https://wordpress.org/support/plugin/codepress-admin-columns/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codepress-admin-columns/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codepress-admin-columns/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [gulliver](https://wordpress.org/support/users/gulliver/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/error-messages-48/#post-5636510)
 * Status: resolved