Symfony Exception

ManifestNotFoundException

HTTP 500 Internal Server Error

The manifest [/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/public/mix-manifest.json] cannot be found.

Exception

Roots\Acorn\Assets\Contracts\ ManifestNotFoundException

  1.      * @return array
  2.      */
  3.     protected function getJsonManifest(string $jsonManifest): array
  4.     {
  5.         if (! file_exists($jsonManifest)) {
  6.             throw new ManifestNotFoundException("The manifest [{$jsonManifest}] cannot be found.");
  7.         }
  8.         return json_decode(file_get_contents($jsonManifest), true) ?? [];
  9.     }
  1.         $config $this->pipeline($config);
  2.         $path $config['path'];
  3.         $url $config['url'];
  4.         $assets = isset($config['assets']) ? $this->getJsonManifest($config['assets']) : [];
  5.         $bundles = isset($config['bundles']) ? $this->getJsonManifest($config['bundles']) : [];
  6.         return new Manifest($path$url$assets$bundles);
  7.     }
  1.      * @param  array $config
  2.      * @return ManifestContract
  3.      */
  4.     public function manifest(string $name, ?array $config null): ManifestContract
  5.     {
  6.         $manifest $this->manifests[$name] ?? $this->resolve($name$config);
  7.         return $this->manifests[$name] = $manifest;
  8.     }
  9.     /**
  1.         $this->app->singleton('assets', function () {
  2.             return new Manager($this->app->make('config')->get('assets'));
  3.         });
  4.         $this->app->singleton('assets.manifest', function ($app) {
  5.             return $app['assets']->manifest($this->getDefaultManifest());
  6.         });
  7.         $this->app->alias('assets.manifest'\Roots\Acorn\Assets\Manifest::class);
  8.     }
  1.     {
  2.         // If the concrete type is actually a Closure, we will just execute it and
  3.         // hand back the results of the functions, which allows functions to be
  4.         // used as resolvers for more fine-tuned resolution of these objects.
  5.         if ($concrete instanceof Closure) {
  6.             return $concrete($this$this->getLastParameterOverride());
  7.         }
  8.         try {
  9.             $reflector = new ReflectionClass($concrete);
  10.         } catch (ReflectionException $e) {
  1.         // We're ready to instantiate an instance of the concrete type registered for
  2.         // the binding. This will instantiate the types, as well as resolve any of
  3.         // its "nested" dependencies recursively until all have gotten resolved.
  4.         if ($this->isBuildable($concrete$abstract)) {
  5.             $object $this->build($concrete);
  6.         } else {
  7.             $object $this->make($concrete);
  8.         }
  9.         // If we defined any extenders for this type, we'll need to spin through them
  1.      */
  2.     protected function resolve($abstract$parameters = [], $raiseEvents true)
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::resolve($abstract$parameters$raiseEvents);
  6.     }
  7.     /**
  8.      * Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
  9.      *
  1.      *
  2.      * @throws \Illuminate\Contracts\Container\BindingResolutionException
  3.      */
  4.     public function make($abstract, array $parameters = [])
  5.     {
  6.         return $this->resolve($abstract$parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.      */
  2.     public function make($abstract, array $parameters = [])
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::make($abstract$parameters);
  6.     }
  7.     /**
  8.      * Resolve the given type from the container.
  9.      *
  1.     {
  2.         if (is_null($abstract)) {
  3.             return Container::getInstance();
  4.         }
  5.         return Container::getInstance()->make($abstract$parameters);
  6.     }
  7. }
  8. if (! function_exists('app_path')) {
  9.     /**
  1.  * @return Asset
  2.  */
  3. function asset(string $asset, ?string $manifest null): Asset
  4. {
  5.     if (! $manifest) {
  6.         return \app('assets.manifest')->asset($asset);
  7.     }
  8.     return \app('assets')->manifest($manifest)->asset($asset);
  9. }
  1.  * Register the theme assets.
  2.  *
  3.  * @return void
  4.  */
  5. add_action('wp_enqueue_scripts', function () {
  6.     if (asset('scripts/vendor.js')->exists()) {
  7.         wp_enqueue_script('sage/vendor.js',asset('scripts/vendor.js')->uri(), ['jquery'], nulltrue);
  8.         $deps = ['sage/vendor.js'];
  9.     } else {
  10.         $deps = ['jquery'];
  11.     }
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( == $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0, (int) $the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
  1.     /**
  2.      * Fires when scripts and styles are enqueued.
  3.      *
  4.      * @since 2.8.0
  5.      */
  6.     do_action'wp_enqueue_scripts' );
  7. }
  8. /**
  9.  * Prints the styles queue in the HTML head on admin pages.
  10.  *
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( == $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0, (int) $the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
  1.     /**
  2.      * Prints scripts or data in the head tag on the front end.
  3.      *
  4.      * @since 1.5.0
  5.      */
  6.     do_action'wp_head' );
  7. }
  8. /**
  9.  * Fire the wp_footer action.
  10.  *
  1. <html <?php language_attributes(); ?>>
  2.   <head>
  3.     <meta charset="utf-8">
  4.     <meta http-equiv="x-ua-compatible" content="ie=edge">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <?php wp_head(); ?>
  7.   </head>
  8.   <body <?php body_class(); ?>>
  9.     <?php wp_body_open(); ?>
  10.     <?php do_action('get_header'); ?>
include('/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/index.php') in /srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/template-loader.php (line 106)
  1.      *
  2.      * @param string $template The path of the template to include.
  3.      */
  4.     $template apply_filters'template_include'$template );
  5.     if ( $template ) {
  6.         include $template;
  7.     } elseif ( current_user_can'switch_themes' ) ) {
  8.         $theme wp_get_theme();
  9.         if ( $theme->errors() ) {
  10.             wp_die$theme->errors() );
  11.         }
require_once('/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/template-loader.php') in /srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-blog-header.php') in /srv/www/ndncollective.org/releases/20220524201214/web/index.php (line 5)
  1. <?php
  2. /** WordPress view bootstrapper */
  3. define('WP_USE_THEMES'true);
  4. require __DIR__ '/wp/wp-blog-header.php';

Stack Trace

ManifestNotFoundException
Roots\Acorn\Assets\Contracts\ManifestNotFoundException:
The manifest [/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/public/mix-manifest.json] cannot be found.

  at /srv/www/ndncollective.org/releases/20220524201214/vendor/roots/acorn/src/Roots/Acorn/Assets/Manager.php:133
  at Roots\Acorn\Assets\Manager->getJsonManifest('/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/public/mix-manifest.json')
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/roots/acorn/src/Roots/Acorn/Assets/Manager.php:101)
  at Roots\Acorn\Assets\Manager->resolve('theme', array('path' => '/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/public', 'url' => 'https://staging.ndncollective.org/app/themes/landback-2021/public', 'assets' => '/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/public/mix-manifest.json'))
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/roots/acorn/src/Roots/Acorn/Assets/Manager.php:76)
  at Roots\Acorn\Assets\Manager->manifest('theme')
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/roots/acorn/src/Roots/Acorn/Assets/AssetsServiceProvider.php:22)
  at Roots\Acorn\Assets\AssetsServiceProvider->Roots\Acorn\Assets\{closure}(object(Application), array())
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/illuminate/container/Container.php:873)
  at Illuminate\Container\Container->build(object(Closure))
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/illuminate/container/Container.php:758)
  at Illuminate\Container\Container->resolve('assets.manifest', array(), true)
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:851)
  at Illuminate\Foundation\Application->resolve('assets.manifest', array())
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/illuminate/container/Container.php:694)
  at Illuminate\Container\Container->make('assets.manifest', array())
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:836)
  at Illuminate\Foundation\Application->make('assets.manifest', array())
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:119)
  at app('assets.manifest')
     (/srv/www/ndncollective.org/releases/20220524201214/vendor/roots/acorn/src/Roots/helpers.php:20)
  at Roots\asset('scripts/vendor.js')
     (/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/app/setup.php:17)
  at App\{closure}('')
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/class-wp-hook.php:307)
  at WP_Hook->apply_filters('', array(''))
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/class-wp-hook.php:331)
  at WP_Hook->do_action(array(''))
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/plugin.php:474)
  at do_action('wp_enqueue_scripts')
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/script-loader.php:2115)
  at wp_enqueue_scripts('')
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/class-wp-hook.php:307)
  at WP_Hook->apply_filters(null, array(''))
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/class-wp-hook.php:331)
  at WP_Hook->do_action(array(''))
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/plugin.php:474)
  at do_action('wp_head')
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/general-template.php:3042)
  at wp_head()
     (/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/index.php:7)
  at include('/srv/www/ndncollective.org/releases/20220524201214/web/app/themes/landback-2021/index.php')
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/template-loader.php:106)
  at require_once('/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-includes/template-loader.php')
     (/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-blog-header.php:19)
  at require('/srv/www/ndncollective.org/releases/20220524201214/web/wp/wp-blog-header.php')
     (/srv/www/ndncollective.org/releases/20220524201214/web/index.php:5)