Support

Account

Home Forums Backend Issues (wp-admin) Cannot create Site Options page Reply To: Cannot create Site Options page

  • It could be that on the other server that the function function_exists() does not exist when you code is running. It’s unlikely but possible.

    Try adding a test on the server where you’re having the issue

    
    if(function_exists('acf_add_options_page')) {
        $option_page = acf_add_options_page(array(
            'page_title' => 'Site Options',
            'menu_title' => 'Site Options',
            'menu_slug' => 'site-options',
            'capability' => 'manage_options',
            'redirect' => false
        ));
    } else {
      // report that function does not exist
      die('function acf_add_options_page does not exist');
    }