Error
Class "\App\Resources\Fields\OptionsFields.oldest" not found Error thrown with message "Class "\App\Resources\Fields\OptionsFields.oldest" not found" Stacktrace: #14 Error in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/ACF/ACFFieldRepository.php:33 #13 HumbleCore\ACF\ACFFieldRepository:HumbleCore\ACF\{closure} in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/illuminate/collections/Traits/EnumeratesValues.php:236 #12 Illuminate\Support\Collection:each in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/ACF/ACFFieldRepository.php:34 #11 HumbleCore\ACF\ACFFieldRepository:loadFieldsFrom in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/app/Providers/AppServiceProvider.php:20 #10 App\Providers\AppServiceProvider:register in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/App/Application.php:223 #9 HumbleCore\App\Application:register in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/App/Application.php:208 #8 HumbleCore\App\Application:HumbleCore\App\{closure} in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/illuminate/collections/Traits/EnumeratesValues.php:236 #7 Illuminate\Support\Collection:each in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/App/Application.php:209 #6 HumbleCore\App\Application:registerServiceProviders in /data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/App/Application.php:76 #5 HumbleCore\App\Application:init in /data/s/svenskakakel.se/www/public_html/wp-content/mu-plugins/humbleCoreLoader.php:10 #4 include_once in /data/s/svenskakakel.se/www/public_html/wp-settings.php:442 #3 require_once in /data/s/svenskakakel.se/www/public_html/wp-config.php:60 #2 require_once in /data/s/svenskakakel.se/www/public_html/wp-load.php:50 #1 require_once in /data/s/svenskakakel.se/www/public_html/wp-blog-header.php:13 #0 require in /data/s/svenskakakel.se/www/public_html/index.php:17
Stack frames (15)
14
Error
/vendor/humble-guys/humble-core/src/ACF/ACFFieldRepository.php33
13
HumbleCore\ACF\ACFFieldRepository HumbleCore\ACF\{closure}
/vendor/illuminate/collections/Traits/EnumeratesValues.php236
12
Illuminate\Support\Collection each
/vendor/humble-guys/humble-core/src/ACF/ACFFieldRepository.php34
11
HumbleCore\ACF\ACFFieldRepository loadFieldsFrom
/app/Providers/AppServiceProvider.php20
10
App\Providers\AppServiceProvider register
/vendor/humble-guys/humble-core/src/App/Application.php223
9
HumbleCore\App\Application register
/vendor/humble-guys/humble-core/src/App/Application.php208
8
HumbleCore\App\Application HumbleCore\App\{closure}
/vendor/illuminate/collections/Traits/EnumeratesValues.php236
7
Illuminate\Support\Collection each
/vendor/humble-guys/humble-core/src/App/Application.php209
6
HumbleCore\App\Application registerServiceProviders
/vendor/humble-guys/humble-core/src/App/Application.php76
5
HumbleCore\App\Application init
/data/s/svenskakakel.se/www/public_html/wp-content/mu-plugins/humbleCoreLoader.php10
4
include_once
/data/s/svenskakakel.se/www/public_html/wp-settings.php442
3
require_once
/data/s/svenskakakel.se/www/public_html/wp-config.php60
2
require_once
/data/s/svenskakakel.se/www/public_html/wp-load.php50
1
require_once
/data/s/svenskakakel.se/www/public_html/wp-blog-header.php13
0
require
/data/s/svenskakakel.se/www/public_html/index.php17
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/ACF/ACFFieldRepository.php
            if (! function_exists('acf_add_options_page')) {
                return;
            }
 
            acf_add_options_page($settings);
        });
    }
 
    public function loadFieldsFrom(string $path): void
    {
        collect(app('files')->files($path))->each(function ($file) {
            $name = str_replace('.php', '', $file->getFilename());
 
            $class = str(str_replace(templatePath('app'), '', $file->getPath()))
                ->replace('/', '\\')
                ->prepend('\\App')
                ->append("\\{$name}")
                ->value();
 
            $this->registerFieldGroup(new $class);
        });
    }
 
    public function registerFieldGroup($class): void
    {
        if (! function_exists('register_extended_field_group')) {
            return;
        }
 
        $this->fieldGroups[] = $class;
    }
 
    public function initFieldGroups(): void
    {
        foreach ($this->fieldGroups as $fieldGroup) {
            $this->initFieldGroup($fieldGroup);
        }
    }
 
    public function initFieldGroup($fieldGroup): void
Arguments
  1. "Class "\App\Resources\Fields\OptionsFields.oldest" not found"
    
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/illuminate/collections/Traits/EnumeratesValues.php
    {
        (new Collection(func_get_args()))
            ->push($this->all())
            ->each(function ($item) {
                VarDumper::dump($item);
            });
 
        return $this;
    }
 
    /**
     * Execute a callback over each item.
     *
     * @param  callable(TValue, TKey): mixed  $callback
     * @return $this
     */
    public function each(callable $callback)
    {
        foreach ($this as $key => $item) {
            if ($callback($item, $key) === false) {
                break;
            }
        }
 
        return $this;
    }
 
    /**
     * Execute a callback over each nested chunk of items.
     *
     * @param  callable(...mixed): mixed  $callback
     * @return static
     */
    public function eachSpread(callable $callback)
    {
        return $this->each(function ($chunk, $key) use ($callback) {
            $chunk[] = $key;
 
            return $callback(...$chunk);
        });
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/ACF/ACFFieldRepository.php
                return;
            }
 
            acf_add_options_page($settings);
        });
    }
 
    public function loadFieldsFrom(string $path): void
    {
        collect(app('files')->files($path))->each(function ($file) {
            $name = str_replace('.php', '', $file->getFilename());
 
            $class = str(str_replace(templatePath('app'), '', $file->getPath()))
                ->replace('/', '\\')
                ->prepend('\\App')
                ->append("\\{$name}")
                ->value();
 
            $this->registerFieldGroup(new $class);
        });
    }
 
    public function registerFieldGroup($class): void
    {
        if (! function_exists('register_extended_field_group')) {
            return;
        }
 
        $this->fieldGroups[] = $class;
    }
 
    public function initFieldGroups(): void
    {
        foreach ($this->fieldGroups as $fieldGroup) {
            $this->initFieldGroup($fieldGroup);
        }
    }
 
    public function initFieldGroup($fieldGroup): void
    {
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/app/Providers/AppServiceProvider.php
<?php
 
namespace App\Providers;
 
use App\Models\ProductSeries;
use Illuminate\Support\ServiceProvider;
 
class AppServiceProvider extends ServiceProvider
{
    public function register(): void
    {
        app('menu')->register('primaryMenu', 'Huvudmeny');
 
        app('postTypes')->loadMenuIcons();
 
        app('postTypes')->loadPostTypesFrom(templatePath('app/Resources/PostTypes'));
 
        app('taxonomies')->loadTaxonomiesFrom(templatePath('app/Resources/Taxonomies'));
 
        app('acf.fields')->loadFieldsFrom(templatePath('app/Resources/Fields'));
 
        app('acf.fields')->registerOptionsPage([
            'page_title' => 'Mer inställningar',
            'menu_title' => 'Mer inställningar',
            'menu_slug' => 'mer-installningar',
            'capability' => 'edit_posts',
            'redirect' => false,
            'post_id' => 'options',
            'position' => 200,
            'update_button' => __('Uppdatera', 'acf'),
            'updated_message' => __('Mer inställningar uppdaterades', 'acf'),
        ]);
 
        app('acf.fields')->registerGoogleMapsKey(config('services.google_maps_api_key'));
 
        app('templates')
            ->add('become_a_client', 'Bli kund')
            ->add('brochures', 'Broschyrer')
            ->add('suppliers', 'Leverantörer')
            ->add('assortment', 'Sortiment')
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/App/Application.php
            return;
        }
 
        collect($providers)->each(function ($provider) {
            $this->register(new $provider($this));
        });
    }
 
    public function register($provider, $force = false)
    {
        if (($registered = $this->getProvider($provider)) && ! $force) {
            return $registered;
        }
 
        if (is_string($provider)) {
            $provider = $this->resolveProvider($provider);
        }
 
        if (method_exists($provider, 'register')) {
            $provider->register();
        }
 
        $this->markAsRegistered($provider);
 
        return $provider;
    }
 
    protected function markAsRegistered($provider)
    {
        $this->serviceProviders[] = $provider;
 
        $this->loadedProviders[get_class($provider)] = true;
    }
 
    protected function bootProviders()
    {
        if ($this->isBooted()) {
            return;
        }
 
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/App/Application.php
    protected function registerBaseServiceProviders(): void
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new LogServiceProvider($this));
        $this->register(new ValidationServiceProvider($this));
        $this->register(new TranslationServiceProvider($this));
    }
 
    protected function registerServiceProviders()
    {
        $providers = config('app.providers') ?? [];
 
        $providers = array_merge($providers, $this->make(PackageManifest::class)->providers() ?? []);
 
        if (empty($providers)) {
            return;
        }
 
        collect($providers)->each(function ($provider) {
            $this->register(new $provider($this));
        });
    }
 
    public function register($provider, $force = false)
    {
        if (($registered = $this->getProvider($provider)) && ! $force) {
            return $registered;
        }
 
        if (is_string($provider)) {
            $provider = $this->resolveProvider($provider);
        }
 
        if (method_exists($provider, 'register')) {
            $provider->register();
        }
 
        $this->markAsRegistered($provider);
 
        return $provider;
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/illuminate/collections/Traits/EnumeratesValues.php
    {
        (new Collection(func_get_args()))
            ->push($this->all())
            ->each(function ($item) {
                VarDumper::dump($item);
            });
 
        return $this;
    }
 
    /**
     * Execute a callback over each item.
     *
     * @param  callable(TValue, TKey): mixed  $callback
     * @return $this
     */
    public function each(callable $callback)
    {
        foreach ($this as $key => $item) {
            if ($callback($item, $key) === false) {
                break;
            }
        }
 
        return $this;
    }
 
    /**
     * Execute a callback over each nested chunk of items.
     *
     * @param  callable(...mixed): mixed  $callback
     * @return static
     */
    public function eachSpread(callable $callback)
    {
        return $this->each(function ($chunk, $key) use ($callback) {
            $chunk[] = $key;
 
            return $callback(...$chunk);
        });
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/App/Application.php
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new LogServiceProvider($this));
        $this->register(new ValidationServiceProvider($this));
        $this->register(new TranslationServiceProvider($this));
    }
 
    protected function registerServiceProviders()
    {
        $providers = config('app.providers') ?? [];
 
        $providers = array_merge($providers, $this->make(PackageManifest::class)->providers() ?? []);
 
        if (empty($providers)) {
            return;
        }
 
        collect($providers)->each(function ($provider) {
            $this->register(new $provider($this));
        });
    }
 
    public function register($provider, $force = false)
    {
        if (($registered = $this->getProvider($provider)) && ! $force) {
            return $registered;
        }
 
        if (is_string($provider)) {
            $provider = $this->resolveProvider($provider);
        }
 
        if (method_exists($provider, 'register')) {
            $provider->register();
        }
 
        $this->markAsRegistered($provider);
 
        return $provider;
    }
/data/s/svenskakakel.se/www/public_html/wp-content/themes/humbleguys/vendor/humble-guys/humble-core/src/App/Application.php
        if ($templatePath) {
            $this->setTemplatePath($templatePath);
        }
 
        if ($basePath) {
            $this->setBasePath($basePath);
        }
 
        Facade::setFacadeApplication($this);
 
        $this->registerBaseBindings();
        $this->registerBaseServiceProviders();
        $this->registerCoreContainerAliases();
 
        $this->hasBeenBootstrapped = true;
    }
 
    public function init()
    {
        $this->registerServiceProviders();
    }
 
    public function registerErrorHandler()
    {
        if ($_ENV['APP_DEBUG'] == 'true') {
            $whoops = new \Whoops\Run;
 
            $whoops->prependHandler(new \Whoops\Handler\PrettyPageHandler);
 
            $whoops->prependHandler(function () {
                // Hides sensible information of env isnt set to local
                if ($_ENV['APP_ENV'] !== 'local') {
                    $_ENV = [];
                    $_SERVER = [];
                }
 
                return Handler::DONE;
            });
 
            $whoops->register();
/data/s/svenskakakel.se/www/public_html/wp-content/mu-plugins/humbleCoreLoader.php
<?php
 
$app = new HumbleCore\App\Application(ABSPATH.'../', ABSPATH.'wp-content/themes/humbleguys');
 
$app->setConfigPath(templatePath('config'));
$app->setResourcePath(templatePath('resources'));
 
$app->loadConfigFiles();
 
$app->init();
 
add_action('init', function () use ($app) {
    $app->boot();
});
 
/data/s/svenskakakel.se/www/public_html/wp-settings.php
    require ABSPATH . WPINC . '/ms-functions.php';
    require ABSPATH . WPINC . '/ms-default-filters.php';
    require ABSPATH . WPINC . '/ms-deprecated.php';
}
 
// Define constants that rely on the API to obtain the default value.
// Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
wp_plugin_directory_constants();
 
/**
 * @since 3.9.0
 *
 * @global array $wp_plugin_paths
 */
$GLOBALS['wp_plugin_paths'] = array();
 
// Load must-use plugins.
foreach ( wp_get_mu_plugins() as $mu_plugin ) {
    $_wp_plugin_file = $mu_plugin;
    include_once $mu_plugin;
    $mu_plugin = $_wp_plugin_file; // Avoid stomping of the $mu_plugin variable in a plugin.
 
    /**
     * Fires once a single must-use plugin has loaded.
     *
     * @since 5.1.0
     *
     * @param string $mu_plugin Full path to the plugin's main file.
     */
    do_action( 'mu_plugin_loaded', $mu_plugin );
}
unset( $mu_plugin, $_wp_plugin_file );
 
// Load network activated plugins.
if ( is_multisite() ) {
    foreach ( wp_get_active_network_plugins() as $network_plugin ) {
        wp_register_plugin_realpath( $network_plugin );
 
        $_wp_plugin_file = $network_plugin;
        include_once $network_plugin;
Arguments
  1. "/data/s/svenskakakel.se/www/public_html/wp-content/mu-plugins/humbleCoreLoader.php"
    
/data/s/svenskakakel.se/www/public_html/wp-config.php
 
/*
 * Authentication Unique Keys and Salts
 */
define('AUTH_KEY', $_ENV['AUTH_KEY']);
define('SECURE_AUTH_KEY', $_ENV['SECURE_AUTH_KEY']);
define('LOGGED_IN_KEY', $_ENV['LOGGED_IN_KEY']);
define('NONCE_KEY', $_ENV['NONCE_KEY']);
define('AUTH_SALT', $_ENV['AUTH_SALT']);
define('SECURE_AUTH_SALT', $_ENV['SECURE_AUTH_SALT']);
define('LOGGED_IN_SALT', $_ENV['LOGGED_IN_SALT']);
 
/*
* Custom Settings
*/
define('DISALLOW_FILE_EDIT', true);
 
$table_prefix = $_ENV['DB_PREFIX'] ?: 'wp_';
 
require_once 'wp-settings.php';
 
Arguments
  1. "/data/s/svenskakakel.se/www/public_html/wp-settings.php"
    
/data/s/svenskakakel.se/www/public_html/wp-load.php
     * Initialize error reporting to a known set of levels.
     *
     * This will be adapted in wp_debug_mode() located in wp-includes/load.php based on WP_DEBUG.
     * @see https://www.php.net/manual/en/errorfunc.constants.php List of known error levels.
     */
    error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
}
 
/*
 * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
 * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
 * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a)
 * and /blog/ is WordPress(b).
 *
 * If neither set of conditions is true, initiate loading the setup process.
 */
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
 
    /** The config file resides in ABSPATH */
    require_once ABSPATH . 'wp-config.php';
 
} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
 
    /** The config file resides one level above ABSPATH but is not part of another installation */
    require_once dirname( ABSPATH ) . '/wp-config.php';
 
} else {
 
    // A config file doesn't exist.
 
    define( 'WPINC', 'wp-includes' );
    require_once ABSPATH . WPINC . '/version.php';
    require_once ABSPATH . WPINC . '/compat.php';
    require_once ABSPATH . WPINC . '/load.php';
 
    // Check for the required PHP version and for the MySQL extension or a database drop-in.
    wp_check_php_mysql_versions();
 
    // Standardize $_SERVER variables across setups.
    wp_fix_server_vars();
Arguments
  1. "/data/s/svenskakakel.se/www/public_html/wp-config.php"
    
/data/s/svenskakakel.se/www/public_html/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/data/s/svenskakakel.se/www/public_html/wp-load.php"
    
/data/s/svenskakakel.se/www/public_html/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/data/s/svenskakakel.se/www/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler