Title: PHP Error Log
Last modified: August 21, 2016

---

# PHP Error Log

 *  [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-error-log-4/)
 * Hi Mike,
 * Awesome plugin!
 * A was reviewing clients error logs, and noticed the following error appearing
   in one of the sites:
 *     ```
       PHP Notice:  Undefined index: si_contact_subject_ID in wp-content/plugins/si-contact-form/si-contact-form-process.php on line 239
       ```
   
 * Here is the block of code from that file (line 3 is the error):
 *     ```
       }else{
           // posted subject select input
           $sid = $this->ctf_clean_input($_POST['si_contact_subject_ID']);
           if(empty($sid) && $si_contact_opt['subject_type'] == 'required') {
               $this->si_contact_error = 1;
               $fsc_error_message['subject'] = ($si_contact_opt['error_subject'] != '') ? $si_contact_opt['error_subject'] : __('Selecting a subject is required.', 'si-contact-form');
           }
           else if (empty($subjects) || !isset($subjects[$sid])) {
                $this->si_contact_error = 1;
                $fsc_error_message['subject'] = __('Requested subject not found.', 'si-contact-form');
           } else {
                $subject = $this->ctf_clean_input($subjects[$sid]);
           }
       }
       ```
   
 * I’m not entirely sure, but it seems to be happening when a contact form is submitted
   without a subject line.
 * Perhaps checking if `$_POST['si_contact_subject_ID']` isset first, will alleviate
   the notice.
 * Thanks Mike!
 * [http://wordpress.org/plugins/si-contact-form/](http://wordpress.org/plugins/si-contact-form/)

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

 *  [Michael J Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-error-log-4/#post-4160600)
 * Thanks for reporting that. I am not sure the 3.xx version will get any more updates..
   You are welcome to try the 4.0 beta, it is a whole new program with many new 
   improvements and features.
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-error-log-4/#post-4160601)
 * Cool! What prompted the re-write? I’m curious 🙂
 * I will definitely stress-test for you on my dev site!
 * I’m also curious at this point how updating to the beta version will affect a
   live site already using the ‘3 series’ framework.
 *  [Michael J Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-error-log-4/#post-4160609)
 * Upgrading imports the forms from your old version
    Follow the instructions near
   the bottom of the beta page

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/si-contact-form_dde2be.svg)
 * [Fast Secure Contact Form](https://wordpress.org/plugins/si-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/si-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/si-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/si-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/si-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/si-contact-form/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Michael J Challis](https://wordpress.org/support/users/mikechallis/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/php-error-log-4/#post-4160609)
 * Status: not resolved