Title: PHP Errors after fresh install
Last modified: September 1, 2016

---

# PHP Errors after fresh install

 *  [keila91](https://wordpress.org/support/users/keila91/)
 * (@keila91)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/)
 * I did a fresh install of WordPress and then installed the gradebook plugin from
   the plugins menu.
    I get the below error at the top of every page in the WordPress
   admin area. I have WordPress version 4.5.3 and PHP version 5.5.22. Is there a
   way I can fix this?
 *     ```
       Warning: array_keys() expects parameter 1 to be array, boolean given in /**PATH TO WORDPRESS**/wp-content/plugins/an-gradebook/GradeBook.php on line 34
   
       Warning: in_array() expects parameter 2 to be array, null given in /**PATH TO WORDPRESS**/wp-content/plugins/an-gradebook/GradeBook.php on line 34
   
       Warning: Cannot modify header information - headers already sent by (output started at /**PATH TO WORDPRESS**/wp-content/plugins/an-gradebook/GradeBook.php:34) in /**PATH TO WORDPRESS**/wp-includes/option.php on line 823
   
       Warning: Cannot modify header information - headers already sent by (output started at /**PATH TO WORDPRESS**/wp-content/plugins/an-gradebook/GradeBook.php:34) in /**PATH TO WORDPRESS**/wp-includes/option.php on line 824
       ```
   
 * [https://wordpress.org/plugins/an-gradebook/](https://wordpress.org/plugins/an-gradebook/)

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

 *  Plugin Author [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * (@anevo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659028)
 * Hi Keila91,
 * Let me take a look at this. Can you send screenshots of the error and, with google
   chrome DevTools open with the console showing?
 * Can you try to deactivate all plugins except GradeBook?
 * Regards,
 * Aori Nevo
 *  Thread Starter [keila91](https://wordpress.org/support/users/keila91/)
 * (@keila91)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659069)
 * Thanks! I deactivated all other plugins and took the screenshots. Is there way
   to attach them to this post or how do I send them?
 *  Thread Starter [keila91](https://wordpress.org/support/users/keila91/)
 * (@keila91)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659129)
 * Nvm.
    [https://postimg.org/image/qnz2tbrnf/](https://postimg.org/image/qnz2tbrnf/)
   [https://postimg.org/image/uydqowwqj/](https://postimg.org/image/uydqowwqj/)
 *  Plugin Author [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * (@anevo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659175)
 * Thank you. I will try to recreate this bug locally. Hope to have a fix for you,
   and soon.
 *  Plugin Author [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * (@anevo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659231)
 * Hi keila91,
 * In file plugins/an-gradebook/database/Database.php, uncomment line 7 (Remove 
   the backslashes from that line). Save and refresh your page. The errors should
   go away.
 * Regards,
    Aori Nevo
 *  Thread Starter [keila91](https://wordpress.org/support/users/keila91/)
 * (@keila91)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659232)
 * Ok, thanks. So I did the fix. The errors are gone but when I click into the Gradebook
   or the Gradebook settings, the pages are still blank. What now?
 *  Plugin Author [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * (@anevo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659233)
 * Can you create a test account so that I can troubleshoot some more?
 *  Plugin Author [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * (@anevo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659234)
 * I’ve pushed an update. Can you try downloading 4.0.11 and see if the problem 
   persists?
 *  Thread Starter [keila91](https://wordpress.org/support/users/keila91/)
 * (@keila91)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659248)
 * I created you an account on my test site. (The plugin is having the exact same
   issue in both my test site and the one I’m actually setting up). You should get
   an email. I appreciate all your help!
 *  Thread Starter [keila91](https://wordpress.org/support/users/keila91/)
 * (@keila91)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659317)
 * Any luck?
 *  Plugin Author [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * (@anevo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659341)
 * I have been trying to troubleshoot the issue but still haven’t found the cause.
 *  Plugin Author [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * (@anevo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659342)
 * Some troubleshooting suggests that the issue might be with the web host provider.
   Take a look at this support thread, near the bottom: [https://wordpress.org/support/topic/gradebook-page-and-settings-page-are-blank?replies=16](https://wordpress.org/support/topic/gradebook-page-and-settings-page-are-blank?replies=16)

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

The topic ‘PHP Errors after fresh install’ 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/)

 * 12 replies
 * 2 participants
 * Last reply from: [Aori Nevo](https://wordpress.org/support/users/anevo/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/php-errors-after-fresh-install/#post-7659342)
 * Status: not resolved