• Resolved jturet

    (@jturet)


    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://www.ads-software.com/plugins/an-gradebook/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aori Nevo

    (@anevo)

    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

    (@jturet)

    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.