Title: PHP Error
Last modified: August 24, 2016

---

# PHP Error

 *  Resolved [Arsooni](https://wordpress.org/support/users/absoonoo/)
 * (@absoonoo)
 * [11 years ago](https://wordpress.org/support/topic/php-error-134/)
 * Error:
 *     ```
       PHP Warning:  preg_replace(): Unknown modifier 'w' in /var/www/html/fa/wp-content/plugins/subheading/subheading.php on line 491
       ```
   
 * subheding.php line 483-497 :
 *     ```
       483:function search( $where )
       484:		{
       485:			if ( is_search() ) {
       486:				global $wpdb, $wp;
       487:			$where = preg_replace(
       488:			"/($wpdb->posts.post_title (LIKE
       '%{$wp->query_vars['s']}%'))/i",
       489:			"$0 OR ( $wpdb->postmeta.meta_value LIKE '%{$wp->query_vars['s']}%' )",
       490:			$where
       491:			);
       492:
       493:				add_filter( 'posts_join_request', array( &$this, 'search_join' ) );
       			}
       495:			return $where;
       		}
       ```
   
 * [https://wordpress.org/plugins/subheading/](https://wordpress.org/plugins/subheading/)

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

 *  Thread Starter [Arsooni](https://wordpress.org/support/users/absoonoo/)
 * (@absoonoo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-error-134/#post-6164928)
 * Replace this is ok:
 *     ```
       function search($where)
       		{
       			if (is_search()) {
       				global $wpdb, $wp;
       				$where = preg_replace(
       					"/\({$wpdb->posts}.post_title (LIKE '%{$wp->query_vars['s']}%')\)/i",
       					"$0 OR ($wpdb->postmeta.meta_value $1)",
       					$where
       				);
       				add_filter('posts_join_request', array(&$this, 'search_join'));
       			}
       			return $where;
       		}
       ```
   
 *  Thread Starter [Arsooni](https://wordpress.org/support/users/absoonoo/)
 * (@absoonoo)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-error-134/#post-6164940)
 * Sorry,Error is continued!
    [:error] [pid 53609] [client 66.249.78.146:46339] 
   PHP Warning: preg_replace(): Unknown modifier ‘w’ client 66.249.78.146 is Google
   Ip!! Disable :Allow search to find matches based on subheading values. Waiting
   for Result..

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

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

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

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 1 participant
 * Last reply from: [Arsooni](https://wordpress.org/support/users/absoonoo/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/php-error-134/#post-6164940)
 * Status: resolved