hello i have the next error in an admin option and the line of code is the next one. can you please help me ?
[11-Sep-2021 12:02:43 UTC] PHP Fatal error: Uncaught Error: Call to a member function atp_variable() on null in /var/www/vhosts//theme-options.php:858 Stack trace: #0 /var/www/vhosts/insect.gr/httpdocs/wp-includes/class-wp-hook.php(303): atp_options() #1 /var/www/vhosts/insect.gr/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #2 /var/www/vhosts/insect.gr/httpdocs/wp-includes/plugin.php(470): WP_Hook->do_action() #3 /var/www/vhosts/insect.gr/httpdocs/wp-settings.php(578): do_action() #4 /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1291): require('/var/www/vhosts...') #5 /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1212): WP_CLI\Runner->load_wordpress() #6 /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start() #7 /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/ve in /var/www/vhosts//theme-options.php on line 858
$iva_of_options[] = array(
'name' => 'Select Slider Type',
'desc' => 'Select which slider you want to use for the Frontpage of the theme.',
'id' => $shortname . '_slider',
'std' => 'flexslider',
'class' => 'select300',
'type' => 'select',
'options' => $atp_theme->atp_variable( 'slider_type' ),
);
the whole code is here codeshare.io/zyXYA7
$atp_theme
, did you declare it somewhere. You get the error because you try to call a method, but the variable is not a object, it doesn't seem like it was set at all