Title: PHP errors in the log
Last modified: August 31, 2016

---

# PHP errors in the log

 *  Resolved [FlupkeDe](https://wordpress.org/support/users/flupkede/)
 * (@flupkede)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-errors-in-the-log/)
 * When you see these messages in the php error log:
    PHP Notice: Undefined index:
   page in form-lightbox/admin-page.php on line 36 PHP Notice: Undefined index: 
   page in form-lightbox/admin-page.php on line 106 PHP Notice: Undefined index:
   status in form-lightbox/admin-page.php on line 566
 * you can easily fix them by modifying as follows:
    Adjust line 36 : From: if (
   $_GET[‘page’] != null && $_GET[‘page’] == $this->page_id ) { To: if ( isset($
   _GET[‘page’]) && $_GET[‘page’] == $this->page_id ) {
 * Adjust line 106 :
    From: if ( $_GET[‘page’] != null && $_GET[‘page’] !== $this-
   >page_id ) To: if ( isset($_GET[‘page’]) && $_GET[‘page’] !== $this->page_id )
 * Adjust line 566 :
    From: if( $value[‘id’] != null && strpos($value[‘id’], ‘_’.
   $type . ‘_’) !== false …. To: if( isset($value[‘id’]) && isset($value[‘status’])&&
   strpos($value[‘id’], ‘_’ . $type . ‘_’) !== false …
 * This will resolve all errors
 * [https://wordpress.org/plugins/form-lightbox/](https://wordpress.org/plugins/form-lightbox/)

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

 *  [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-in-the-log/#post-7311940)
 * Thanks you so much for sharing this !
    Just one fix, in the latest version of
   the plugin I used, line 566 seems different, but the correction still works
 *     ```
       //if( strpos($value['id'], '_' . $type . '_') !== false && strpos($value['status'], 'option') !== false ) {
       if( isset($value['id']) && isset($value['status']) && strpos($value['id'], '_' . $type . '_') !== false) {
       ```
   
 *  [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-in-the-log/#post-7311941)
 * PS: however, I still get this error:
 * Strict Standards: Redefining already defined constructor for class FormLightboxAdmin
   in /home/clients…/wp-content/plugins/form-lightbox/admin-page.php on line 28
 *  [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-in-the-log/#post-7311942)
 * PS :it seems commenting the referred lines does not cause a problem (might be
   for earlier versions..?)
 * // function FormLightboxAdmin() { $this->__construct(); }
 * /**
    * PHP 5 Constructor */
 * // function __construct() {
    // add_action( ‘admin_menu’, array( &$this, ‘add_setting_menu’));//
   add_action( ‘admin_head’, array( &$this, ‘add_setting_head’ ) ); // }

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

The topic ‘PHP errors in the log’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-in-the-log/#post-7311942)
 * Status: resolved