Conversation
supportGreat 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/
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
Worked perfectly, I really appreciate it!
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
Worked perfectly, I really appreciate it!