Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Undefined variable $icon

Exception

ErrorException

Show exception properties
ErrorException {#9907
  #severity: E_WARNING
}
  1.      * @param string $icon    Path to the mime type icon.
  2.      * @param string $mime    Mime type.
  3.      * @param int    $post_id Attachment ID. Will equal 0 if the function passed
  4.      *                        the mime type.
  5.      */
  6.     return apply_filters'wp_mime_type_icon'$icon$mime$post_id );
  7. }
  8. /**
  9.  * Checks for changed slugs for published post objects and save the old slug.
  10.  *
  1.      * @throws \ErrorException
  2.      */
  3.     public function handleError($level$message$file ''$line 0$context = [])
  4.     {
  5.         try {
  6.             parent::handleError($level$message$file$line$context);
  7.         } catch (Throwable $e) {
  8.             if (! apply_filters('acorn/throw_error_exception'true$e)) {
  9.                 return false;
  10.             }
HandleExceptions->handleError() in /home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/post.php (line 6845)
  1.      * @param string $icon    Path to the mime type icon.
  2.      * @param string $mime    Mime type.
  3.      * @param int    $post_id Attachment ID. Will equal 0 if the function passed
  4.      *                        the mime type.
  5.      */
  6.     return apply_filters'wp_mime_type_icon'$icon$mime$post_id );
  7. }
  8. /**
  9.  * Checks for changed slugs for published post objects and save the old slug.
  10.  *
  1.         'modified'    => $attachment->post_modified_gmt,
  2.         'menu_order'  => $attachment->menu_order,
  3.         'mime_type'   => $attachment->post_mime_type,
  4.         'type'        => $type,
  5.         'subtype'     => $subtype,
  6.         'icon'        => wp_mime_type_icon$attachment->ID ),
  7.     );
  8.     // Append filesize data.
  9.     if ( isset( $meta['filesize'] ) ) {
  10.         $response['filesize'] = $meta['filesize'];
  1.                 return wp_get_attachment_url$value );
  2.             } elseif ( $field['return_format'] == 'array' ) {
  3.                 return acf_get_attachment$value );
  4.             }
  5.             // return
  6.             return $value;
  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.     if ( ! isset( $wp_filter['all'] ) ) {
  2.         $wp_current_filter[] = $hook_name;
  3.     }
  4.     $filtered $wp_filter$hook_name ]->apply_filters$args[0], $args );
  5.     array_pop$wp_current_filter );
  6.     return $filtered;
  7. }
  1.             continue;
  2.         }
  3.         // Apply filters.
  4.         if ( $type === 'filter' ) {
  5.             $args[0] = apply_filters_ref_array"$filter/$variation=$value"$args );
  6.             // Or do action.
  7.         } else {
  8.             do_action_ref_array"$filter/$variation=$value"$args );
  9.         }
  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.     // Pass the value to WP_Hook.
  3.     array_unshift$args$value );
  4.     $filtered $wp_filter$hook_name ]->apply_filters$value$args );
  5.     array_pop$wp_current_filter );
  6.     return $filtered;
  7. }
  1.      *
  2.      * @param   mixed $value The value to preview.
  3.      * @param   string $post_id The post ID for this value.
  4.      * @param   array $field The field array.
  5.      */
  6.     $value apply_filters'acf/format_value'$value$post_id$field );
  7.     // Update store.
  8.     $store->set"$post_id:$field_name:formatted"$value );
  9.     // Return value.
  1.     // format value
  2.     if ( $format_value ) {
  3.         // get value for field
  4.         $value acf_format_value$value$post_id$field );
  5.     }
  6.     // return
  7.     return $value;
  1.         ];
  2.     }
  3.     public function infos_banner_home() {
  4.         $infos_banner =[
  5.             'banner_home_image' => get_field('banner_home_image'),
  6.             'banner_home_title' => get_field('banner_home_title'),
  7.             'banner_home_content' => get_field('banner_home_content'),
  8.         ];
  9.         return $infos_banner;
  1.      */
  2.     public function with()
  3.     {
  4.         
  5.         return [
  6.             'infos_banner_home' =>  json_decode(json_encode($this->infos_banner_home()), FALSE),
  7.             'infos_expertise_home' =>  json_decode(json_encode($this->infos_expertise_home()), FALSE),
  8.             'infos_about_home' =>  json_decode(json_encode($this->infos_about_home()), FALSE),
  9.             'carousel_home' => json_decode(json_encode(get_field('carousel_home')), FALSE),
  10.             'articles_actualites' => $this->articles_actualites(),
  11.             'key_figures' => json_decode(json_encode(get_field('key_figures')), FALSE),
  1.      * @return array
  2.      */
  3.     protected function merge()
  4.     {
  5.         return array_merge(
  6.             $this->with(),
  7.             $this->view->getData(),
  8.             $this->override()
  9.         );
  10.     }
  1.     public function compose(View $view)
  2.     {
  3.         $this->view $view;
  4.         $this->data = new Fluent($view->getData());
  5.         $view->with($this->merge());
  6.     }
  7.     /**
  8.      * Data to be merged and passed to the view before rendering.
  9.      *
  1.         // Once we have the class and method name, we can build the Closure to resolve
  2.         // the instance out of the IoC container and call the method on it with the
  3.         // given arguments that are passed to the Closure as the composer's data.
  4.         return function () use ($class$method) {
  5.             return $this->container->make($class)->{$method}(...func_get_args());
  6.         };
  7.     }
  8.     /**
  9.      * Parse a class based composer name.
  1.         return function ($event$payload) use ($listener$wildcard) {
  2.             if ($wildcard) {
  3.                 return $listener($event$payload);
  4.             }
  5.             return $listener(...array_values($payload));
  6.         };
  7.     }
  8.     /**
  9.      * Create a class based listener using the IoC container.
  1.         }
  2.         $responses = [];
  3.         foreach ($this->getListeners($event) as $listener) {
  4.             $response $listener($event$payload);
  5.             // If a response is returned from the listener and event halting is enabled
  6.             // we will just return this response, and not call the rest of the event
  7.             // listeners. Otherwise we will add the response on the response list.
  8.             if ($halt && ! is_null($response)) {
  1.      * @param  \Illuminate\Contracts\View\View  $view
  2.      * @return void
  3.      */
  4.     public function callComposer(ViewContract $view)
  5.     {
  6.         $this->events->dispatch('composing: '.$view->name(), [$view]);
  7.     }
  8.     /**
  9.      * Call the creator for a given view.
  10.      *
  1.         // We will keep track of the number of views being rendered so we can flush
  2.         // the section after the complete rendering operation is done. This will
  3.         // clear out the sections for any separate views that may be rendered.
  4.         $this->factory->incrementRender();
  5.         $this->factory->callComposer($this);
  6.         $contents $this->getContents();
  7.         // Once we've finished rendering the view, we'll decrement the render count
  8.         // so that each section gets flushed out next time a view is created and
  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.   <body <?php body_class(); ?>>
  2.     <?php wp_body_open(); ?>
  3.     <?php do_action('get_header'); ?>
  4.     <div id="app">
  5.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  6.     </div>
  7.     <?php do_action('get_footer'); ?>
  8.     <?php wp_footer(); ?>
  9.   </body>
include('/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/index.php') in /home/yeswedev/bardon.git/releases/34/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('/home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/template-loader.php') in /home/yeswedev/bardon.git/releases/34/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('/home/yeswedev/bardon.git/releases/34/web/wp/wp-blog-header.php') in /home/yeswedev/bardon.git/releases/34/web/index.php (line 6)
  1. <?php
  2. /**
  3.  * WordPress View Bootstrapper
  4.  */
  5. define('WP_USE_THEMES'true);
  6. require __DIR__ '/wp/wp-blog-header.php';

Stack Trace

ErrorException
ErrorException:
Undefined variable $icon

  at /home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/post.php:6845
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
     (/home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/post.php:6845)
  at wp_mime_type_icon()
     (/home/yeswedev/bardon.git/releases/34/web/app/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php:3092)
  at acf_get_attachment()
     (/home/yeswedev/bardon.git/releases/34/web/app/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-image.php:383)
  at acf_field_image->format_value()
     (/home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/class-wp-hook.php:310)
  at WP_Hook->apply_filters()
     (/home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/plugin.php:256)
  at apply_filters_ref_array()
     (/home/yeswedev/bardon.git/releases/34/web/app/plugins/advanced-custom-fields-pro/includes/acf-hook-functions.php:109)
  at _acf_apply_hook_variations()
     (/home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/class-wp-hook.php:310)
  at WP_Hook->apply_filters()
     (/home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/plugin.php:205)
  at apply_filters()
     (/home/yeswedev/bardon.git/releases/34/web/app/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php:172)
  at acf_format_value()
     (/home/yeswedev/bardon.git/releases/34/web/app/plugins/advanced-custom-fields-pro/includes/api/api-template.php:51)
  at get_field()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/app/View/Composers/FrontPage.php:40)
  at App\View\Composers\FrontPage->infos_banner_home()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/app/View/Composers/FrontPage.php:29)
  at App\View\Composers\FrontPage->with()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:70)
  at Roots\Acorn\View\Composer->merge()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:59)
  at Roots\Acorn\View\Composer->compose()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/illuminate/view/Concerns/ManagesEvents.php:124)
  at Illuminate\View\Factory->Illuminate\View\Concerns\{closure}()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/illuminate/events/Dispatcher.php:421)
  at Illuminate\Events\Dispatcher->Illuminate\Events\{closure}()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/illuminate/events/Dispatcher.php:249)
  at Illuminate\Events\Dispatcher->dispatch()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/illuminate/view/Concerns/ManagesEvents.php:177)
  at Illuminate\View\Factory->callComposer()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/illuminate/view/View.php:176)
  at Illuminate\View\View->renderContents()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/index.php:14)
  at include('/home/yeswedev/bardon.git/releases/34/web/app/themes/bardon-theme/index.php')
     (/home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/template-loader.php:106)
  at require_once('/home/yeswedev/bardon.git/releases/34/web/wp/wp-includes/template-loader.php')
     (/home/yeswedev/bardon.git/releases/34/web/wp/wp-blog-header.php:19)
  at require('/home/yeswedev/bardon.git/releases/34/web/wp/wp-blog-header.php')
     (/home/yeswedev/bardon.git/releases/34/web/index.php:6)