Title: Warnings on Activate
Last modified: August 30, 2016

---

# Warnings on Activate

 *  Resolved [jturet](https://wordpress.org/support/users/jturet/)
 * (@jturet)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/warnings-on-activate/)
 * Great progress on this plugin, eagerly awaiting what is to come. Got a couple
   warnings on activation of the latest build:
 *     ```
       Warning: array_keys() expects parameter 1 to be array, boolean given in /wp-content/plugins/an-gradebook/GradeBook.php on line 34
   
       Warning: in_array() expects parameter 2 to be array, null given in //wp-content/plugins/an-gradebook/GradeBook.php on line 34
       ```
   
 * [https://wordpress.org/plugins/an-gradebook/](https://wordpress.org/plugins/an-gradebook/)

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

 *  Plugin Author [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * (@anevo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/warnings-on-activate/#post-6797055)
 * Hi jturet,
 * This warning is usually attributed to a missing an options name/value in the 
   wp_options table, most likely the an_gradebook_settings option.
 * To troubleshoot, uncomment line 7 in plugins/an-gradebook/database/Database.php.
   That is, replace
 *     ```
       //add_action('plugins_loaded', array($this,'an_gradebook_upgrade_db'));
       ```
   
 * with
 *     ```
       add_action('plugins_loaded', array($this,'an_gradebook_upgrade_db'));
       ```
   
 * Reload your page and navigate to your gradebook. If the error is gone, then you
   didn’t have the an_gradebook_settings option in your wp_options table. The above
   fixes this issue.
 * Now edit Database.php again, commenting out line 7.
 * Regards,
    Aori Nevo
 *  Thread Starter [jturet](https://wordpress.org/support/users/jturet/)
 * (@jturet)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/warnings-on-activate/#post-6797166)
 * Worked perfectly, I really appreciate it!

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

The topic ‘Warnings on Activate’ is closed to new replies.

 * ![](https://ps.w.org/an-gradebook/assets/icon.svg?rev=3467047)
 * [GradeBook](https://wordpress.org/plugins/an-gradebook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/an-gradebook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/an-gradebook/)
 * [Active Topics](https://wordpress.org/support/plugin/an-gradebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/an-gradebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/an-gradebook/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [jturet](https://wordpress.org/support/users/jturet/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/warnings-on-activate/#post-6797166)
 * Status: resolved