Title: PHP Warning
Last modified: December 22, 2025

---

# PHP Warning

 *  Resolved [JapeNZ](https://wordpress.org/support/users/japenz/)
 * (@japenz)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/php-warning-559/)
 * Hi there,
   I noticed a PHP Warning in my debug log:
 * PHP Warning: preg_match(): Unknown modifier ‘t’ in /home/comicboo/public_html/
   wp-content/plugins/wp-lister-ebay/classes/core/WPL_Core.php on line 138
 * AI recommended this fix, but I don’t intend on changing any plugin files, thought
   I should share in case you were unaware of the php warning 🙂
 * Line 138:
 * if ( preg_match( “/$staging_site_pattern/”, $url ) ) { return true; }
 * The variable `$staging_site_pattern` likely contains a URL or a file path (e.
   g., `staging/site`). Because the code uses forward slashes `/` as delimiters,
   the first `/` found inside your URL/path terminates the expression, and the character
   immediately following it (the `t` in `http://` or `staging/site`) is treated 
   as an invalid modifier [1, 2].
 * To fix this, change the delimiters to a character that won’t appear in a URL,
   such as `#`.
 * The Fix
 * Replace the code in `/home/comicboo/public_html/wp-content/plugins/wp-lister-
   ebay/classes/core/WPL_Core.php` on line 138 with this:
 *     ```wp-block-code
       if ( preg_match( "#" . preg_quote($staging_site_pattern, '#') . "#", $url ) ) {
           return true;
       }
       ```
   
 * Cheers
    -  This topic was modified 5 months, 1 week ago by [JapeNZ](https://wordpress.org/support/users/japenz/).

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

 *  Plugin Support [msantamaria](https://wordpress.org/support/users/msantamaria/)
 * (@msantamaria)
 * [5 months ago](https://wordpress.org/support/topic/php-warning-559/#post-18766221)
 * Hi [@japenz](https://wordpress.org/support/users/japenz/) ,
 * We appreciate you reporting this issue. Our team will address it and include 
   the fix in the upcoming release.
 * Kind regards,
 * Menchie
   WPLab Support
 *  Plugin Author [WP Lab](https://wordpress.org/support/users/wp-lab/)
 * (@wp-lab)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-559/#post-18774786)
 * Hi JapeNZ,
 * Thank you for the detailed bug report and fix! You’re right – the regex delimiter
   issue with staging URLs. We’ll include this fix in the next release.
 * Appreciate you sharing the solution.
 * Best regards,
   WP-Lister Support

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-559%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-lister-for-ebay/assets/icon-256x256.png?rev=2372284)
 * [WP-Lister Lite for eBay](https://wordpress.org/plugins/wp-lister-for-ebay/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-lister-for-ebay/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-lister-for-ebay/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-lister-for-ebay/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-lister-for-ebay/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-lister-for-ebay/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [WP Lab](https://wordpress.org/support/users/wp-lab/)
 * Last activity: [4 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-559/#post-18774786)
 * Status: resolved