Hi,
I was trying to update the dependencies and was following this.
I am working on the localhost Xamp on windows and used this composer.json file.
{
"name": "roots/sage",
"type": "wordpress-theme",
"license": "MIT",
"description": "WordPress starter theme with a modern development workflow",
"homepage": "https://roots.io/sage/",
"authors": [
{
"name": "Ben Word",
"email": "ben@benword.com",
"homepage": "https://github.com/retlehs"
},
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
"homepage": "https://github.com/swalkinshaw"
},
{
"name": "QWp6t",
"email": "hi@qwp6t.me",
"homepage": "https://github.com/qwp6t"
}
],
"keywords": ["wordpress"],
"support": {
"issues": "https://github.com/roots/sage/issues",
"forum": "https://discourse.roots.io/"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
},
"repositories": [
{ "type": "vcs", "url": "https://github.com/jeh5256/sage-installer"},
{ "type":"vcs", "url":"https://github.com/jeh5256/sage-lib" }
],
"require": {
"php": ">=7.1",
"composer/installers": "~2.0",
"illuminate/support": "^8.0",
"roots/sage-lib": "dev-master",
"soberwp/controller": "~2.1.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^2.8.0",
"roots/sage-installer": "dev-master"
},
"scripts": {
"test": ["phpcs"],
"post-create-project-cmd": [
"Roots\\Sage\\Installer\\ComposerScript::postCreateProject"
]
}
}
After running Update Composer, I am getting this error.
Fatal error: Uncaught ReflectionException: Class "App\Controllers\App" does not exist in C:\xampp\htdocs\php\wp-content\themes\zaks-sage\vendor\soberwp\controller\src\Loader.php:75 Stack trace: #0 C:\xampp\htdocs\php\wp-content\themes\zaks-sage\vendor\soberwp\controller\src\Loader.php(75): ReflectionClass->__construct('App\\Controllers...') #1 C:\xampp\htdocs\php\wp-content\themes\zaks-sage\vendor\soberwp\controller\src\Loader.php(35): Sober\Controller\Loader->setPath() #2 C:\xampp\htdocs\php\wp-content\themes\zaks-sage\vendor\soberwp\controller\controller.php(41): Sober\Controller\Loader->__construct(Object(Brain\Hierarchy\Hierarchy)) #3 C:\xampp\htdocs\php\wp-includes\class-wp-hook.php(308): Sober\Controller\loader('') #4 C:\xampp\htdocs\php\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 C:\xampp\htdocs\php\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #6 C:\xampp\htdocs\php\wp-settings.php(617): do_action('init') #7 C:\xampp\htdocs\php\wp-config.php(97): require_once('C:\\xampp\\htdocs...') #8 C:\xampp\htdocs\php\wp-load.php(50): require_once('C:\\xampp\\htdocs...') #9 C:\xampp\htdocs\php\wp-admin\admin.php(34): require_once('C:\\xampp\\htdocs...') #10 C:\xampp\htdocs\php\wp-admin\themes.php(10): require_once('C:\\xampp\\htdocs...') #11 {main} thrown in C:\xampp\htdocs\php\wp-content\themes\zaks-sage\vendor\soberwp\controller\src\Loader.php on line 75
Can anyone please help me?