• Site (https://75stonewallbend.old.dewein.com/) comes up and I can login but when I go to dashboard I get the following:

    Fatal error: Call to undefined function add_settings_section() in /home/content/58/10927058/html/75stonewallbend/wp-content/plugins/aryo-activity-log/classes/class-aal-settings.php on line 80

    Lines 77-100 are:

    switch ( $section ) {
    case ‘general’:
    // First, we register a section. This is necessary since all future options must belong to a
    add_settings_section(
    ‘general_settings_section’, // ID used to identify this section and with which to register options
    __( ‘Display Options’, ‘aryo-activity-log’ ), // Title to be displayed on the administration page
    array( ‘AAL_Settings_Fields’, ‘general_settings_section_header’ ), // Callback used to render the description of the section
    $this->slug // Page on which to add this section of options
    );

    add_settings_field(
    ‘logs_lifespan’,
    __( ‘Keep logs for’, ‘aryo-activity-log’ ),
    array( ‘AAL_Settings_Fields’, ‘number_field’ ),
    $this->slug,
    ‘general_settings_section’,
    array(
    ‘id’ => ‘logs_lifespan’,
    ‘page’ => $this->slug,
    ‘classes’ => array( ‘small-text’ ),
    ‘type’ => ‘number’,
    ‘sub_desc’ => __( ‘days.’, ‘aryo-activity-log’ ),
    ‘desc’ => __( ‘Maximum number of days to keep activity log. Leave blank to keep activity log forever (not recommended).’, ‘aryo-activity-log’ ),
    )

    Any suggestions? Can I just delete the plugin to get to the dashboard and then re-install?

    Timothy

    • This topic was modified 5 years, 8 months ago by tdewein.

    The page I need help with: [log in to see the link]

  • The topic ‘Fatal error: Call to undefined function add_settings_section() in /home/content/’ is closed to new replies.