Title: Fatal error: cannot redeclare function
Last modified: October 17, 2016

---

# Fatal error: cannot redeclare function

 *  [deepakbansal90](https://wordpress.org/support/users/deepakbansal90/)
 * (@deepakbansal90)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-function/)
 * Fatal error: Cannot redeclare help4cms_replace_include_blank() (previously declared
   in /home2/somitra/public_html/[site]/truck/wp-content/themes/inovado/functions.
   php:381) in /home2/somitra/public_html/[site]/truck/wp-content/themes/inovado/
   functions.php on line 381.
 * Please help me
 *     ```
       function help4cms_wpcf7_form_elements($html)
   
        {
   
        function help4cms_replace_include_blank($name, $text, &$html)
   
        {
   
        $matches = false;
   
        preg_match('/<select name="' . $name . '"[^>]*>(.*)<\/select>/iU', $html, $matches);
   
        if ($matches)
   
        {
   
        $select = str_replace('<option value="">---</option>', '<option value="">' . $text . '</option>', $matches[0]);
   
        $html = preg_replace('/<select name="' . $name . '"[^>]*>(.*)<\/select>/iU', $select, $html);
   
        }
   
        }
   
   
   
        help4cms_replace_include_blank('ContactState', '--state--', $html); // Chnage here your dropdown menu ID
   
        help4cms_replace_include_blank('ShipmentState', '--state--', $html); // Chnage here your dropdown menu ID
   
        help4cms_replace_include_blank('Shipment2State', '--state--', $html); // Chnage here your dropdown menu ID
   
        return $html;
   
        }
   
   
   
       add_filter('wpcf7_form_elements', 'help4cms_wpcf7_form_elements');
       ```
   

The topic ‘Fatal error: cannot redeclare function’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [deepakbansal90](https://wordpress.org/support/users/deepakbansal90/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-function/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
