Symfony Exception

InvalidArgumentException

HTTP 500 Internal Server Error

Unable to locate a class or view for component [alert].

Exception

InvalidArgumentException

  1.         if (Str::startsWith($component'mail::')) {
  2.             return $component;
  3.         }
  4.         throw new InvalidArgumentException(
  5.             "Unable to locate a class or view for component [{$component}]."
  6.         );
  7.     }
  8.     /**
  1.      *
  2.      * @throws \InvalidArgumentException
  3.      */
  4.     protected function componentString(string $component, array $attributes)
  5.     {
  6.         $class $this->componentClass($component);
  7.         [$data$attributes] = $this->partitionDataAndAttributes($class$attributes);
  8.         $data $data->mapWithKeys(function ($value$key) {
  9.             return [Str::camel($key) => $value];
  1.         return preg_replace_callback($pattern, function (array $matches) {
  2.             $this->boundAttributes = [];
  3.             $attributes $this->getAttributesFromAttributeString($matches['attributes']);
  4.             return $this->componentString($matches[1], $attributes);
  5.         }, $value);
  6.     }
  7.     /**
  8.      * Compile the self-closing tags within the given string.
ComponentTagCompiler->Illuminate\View\Compilers\{closure}()
  1.                 )
  2.                 (?<![\/=\-])
  3.             >
  4.         /x";
  5.         return preg_replace_callback($pattern, function (array $matches) {
  6.             $this->boundAttributes = [];
  7.             $attributes $this->getAttributesFromAttributeString($matches['attributes']);
  8.             return $this->componentString($matches[1], $attributes);
  1.      * @throws \InvalidArgumentException
  2.      */
  3.     public function compileTags(string $value)
  4.     {
  5.         $value $this->compileSelfClosingTags($value);
  6.         $value $this->compileOpeningTags($value);
  7.         $value $this->compileClosingTags($value);
  8.         return $value;
  9.     }
  1.      */
  2.     public function compile(string $value)
  3.     {
  4.         $value $this->compileSlots($value);
  5.         return $this->compileTags($value);
  6.     }
  7.     /**
  8.      * Compile the tags within the given string.
  9.      *
  1.             return $value;
  2.         }
  3.         return (new ComponentTagCompiler(
  4.             $this->classComponentAliases$this->classComponentNamespaces$this
  5.         ))->compile($value);
  6.     }
  7.     /**
  8.      * Replace the raw placeholders with the original code stored in the raw blocks.
  9.      *
  1.         [$this->footer$result] = [[], ''];
  2.         // First we will compile the Blade component tags. This is a precompile style
  3.         // step which compiles the component Blade tags into @component directives
  4.         // that may be used by Blade. Then we should call any other precompilers.
  5.         $value $this->compileComponentTags(
  6.             $this->compileComments($this->storeUncompiledBlocks($value))
  7.         );
  8.         foreach ($this->precompilers as $precompiler) {
  9.             $value $precompiler($value);
  1.         if ($path) {
  2.             $this->setPath($path);
  3.         }
  4.         if (! is_null($this->cachePath)) {
  5.             $contents $this->compileString($this->files->get($this->getPath()));
  6.             if (! empty($this->getPath())) {
  7.                 $contents $this->appendFilePath($contents);
  8.             }
  1.         // If this given view has expired, which means it has simply been edited since
  2.         // it was last compiled, we will re-compile the views so we can evaluate a
  3.         // fresh copy of the view. We'll pass the compiler the path of the view.
  4.         if (! isset($this->compiledOrNotExpired[$path]) && $this->compiler->isExpired($path)) {
  5.             $this->compiler->compile($path);
  6.         }
  7.         // Once we have the path to the compiled file, we will evaluate the paths with
  8.         // typical PHP just like any other templates. We also keep a stack of views
  9.         // which have been rendered for right exception messages to be generated.
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1.     <div id="app">
  2.       <!--visual stuff starts here -->
  3.       <!-- by default, app('sage.view') is set to 'page.blade.php'  -->
  4.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  5.     
  6.       <!--visual stuff ends here -->
  7.     </div>
include('/home/forge/www.firstfriends.org/public/wp-content/themes/sagetheme/index.php') in /home/forge/www.firstfriends.org/public/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('/home/forge/www.firstfriends.org/public/wp-includes/template-loader.php') in /home/forge/www.firstfriends.org/public/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('/home/forge/www.firstfriends.org/public/wp-blog-header.php') in /home/forge/www.firstfriends.org/public/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Stack Trace

InvalidArgumentException
InvalidArgumentException:
Unable to locate a class or view for component [alert].

  at /home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/ComponentTagCompiler.php:311
  at Illuminate\View\Compilers\ComponentTagCompiler->componentClass()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/ComponentTagCompiler.php:235)
  at Illuminate\View\Compilers\ComponentTagCompiler->componentString()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/ComponentTagCompiler.php:156)
  at Illuminate\View\Compilers\ComponentTagCompiler->Illuminate\View\Compilers\{closure}()
  at preg_replace_callback()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/ComponentTagCompiler.php:151)
  at Illuminate\View\Compilers\ComponentTagCompiler->compileOpeningTags()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/ComponentTagCompiler.php:90)
  at Illuminate\View\Compilers\ComponentTagCompiler->compileTags()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/ComponentTagCompiler.php:76)
  at Illuminate\View\Compilers\ComponentTagCompiler->compile()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/BladeCompiler.php:423)
  at Illuminate\View\Compilers\BladeCompiler->compileComponentTags()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/BladeCompiler.php:255)
  at Illuminate\View\Compilers\BladeCompiler->compileString()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Compilers/BladeCompiler.php:175)
  at Illuminate\View\Compilers\BladeCompiler->compile()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/Engines/CompilerEngine.php:62)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/home/forge/www.firstfriends.org/public/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/home/forge/www.firstfriends.org/public/wp-content/themes/sagetheme/index.php:54)
  at include('/home/forge/www.firstfriends.org/public/wp-content/themes/sagetheme/index.php')
     (/home/forge/www.firstfriends.org/public/wp-includes/template-loader.php:106)
  at require_once('/home/forge/www.firstfriends.org/public/wp-includes/template-loader.php')
     (/home/forge/www.firstfriends.org/public/wp-blog-header.php:19)
  at require('/home/forge/www.firstfriends.org/public/wp-blog-header.php')
     (/home/forge/www.firstfriends.org/public/index.php:17)