Title: Errors (with patch)
Last modified: September 20, 2023

---

# Errors (with patch)

 *  [Roy Orbitson](https://wordpress.org/support/users/lev0/)
 * (@lev0)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/errors-with-patch/)
 * As reported by [@dreamermates](https://wordpress.org/support/users/dreamermates/),
   in [this unresolved thread](https://wordpress.org/support/topic/gargabecollector-class-php-is-throwing-errors-on-lines-86-88-91/),
   errors are thrown from the `filterVersions` method in `lib/Garbagecollector.class.
   php`. This line:
 *     ```wp-block-code
       preg_match_all('#^(?P<group>.+)-(?P<token>[^\-\.]+).css$#sU', $file, $m, PREG_SET_ORDER);
       ```
   
 * is using the wrong function. It should be this (note [the pattern](https://regex101.com/r/nnm1CC/3)
   is also fixed):
 *     ```wp-block-code
       preg_match('#^(?P<group>.+)-(?P<token>[^-.]+)\.css$#sU', $file, $m);
       ```
   
 * This causes lots of _Undefined array key “group”_ warnings but mainly fails to
   do its task.

The topic ‘Errors (with patch)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-less.svg)
 * [WP-LESS](https://wordpress.org/plugins/wp-less/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-less/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-less/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-less/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-less/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-less/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Roy Orbitson](https://wordpress.org/support/users/lev0/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/errors-with-patch/)
 * Status: not resolved