In /admin/class-fep-admin-settings.php it’s crashing on this foreach loop:
function settings_output (line 603)
function settings_output() {
//register_setting( $option_group, $option_name, $sanitize_callback = '' );
register_setting( 'fep_settings', 'FEP_admin_options', array( $this, 'options_sanitize' ) );
foreach ( $this->tabs() as $slug => $tab ) {
// //add_settings_section( $id, $title, $callback, $page );
add_settings_section( $tab['section_id'], $tab['section_title'], $tab['section_callback'], $tab['section_page'] );
// CREATE CRASH!
//foreach ( $this->form_fields( str_replace( 'fep_settings_', '', $tab['section_id'] ) ) as $key => $field ) {
// if ( function_exists( 'fep_settings_field_output_callback_' . $field['type'] ) ) {
// $callback = 'fep_settings_field_output_callback_' . $field['type'];
// } else {
// $callback = array( $this, 'field_output' );
// }
// //add_settings_field( $id, $title, $callback, $page, $section = 'default', $args = array() );
// add_settings_field( $field['id'], $field['label'], $callback, $tab['section_page'], $tab['section_id'], $field );
//}
}
}
disabling this gives access to the backend…. Enabled it gives an eternal loop…
-
This reply was modified 1 year, 5 months ago by rsiero.