• Resolved Arsooni

    (@absoonoo)


    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://www.ads-software.com/plugins/subheading/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Arsooni

    (@absoonoo)

    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

    (@absoonoo)

    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.