Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Attempt to read property "taxonomy" on null

Exception

ErrorException

  1.         /**
  2.          * First we get the no index option for this taxonomy, because it can be overwritten the indexable value for
  3.          * this specific term.
  4.          */
  5.         if ( ! $this->taxonomy->is_indexable$this->source->taxonomy ) ) {
  6.             $robots['index'] = 'noindex';
  7.         }
  8.         /**
  9.          * Overwrite the index directive when there is a term specific directive set.
  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(2, 'Attempt to read property "taxonomy" on null', '/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php', 163) in /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php (line 163)
  1.         /**
  2.          * First we get the no index option for this taxonomy, because it can be overwritten the indexable value for
  3.          * this specific term.
  4.          */
  5.         if ( ! $this->taxonomy->is_indexable$this->source->taxonomy ) ) {
  6.             $robots['index'] = 'noindex';
  7.         }
  8.         /**
  9.          * Overwrite the index directive when there is a term specific directive set.
  1.         if ( $this->is_prototype() ) {
  2.             throw new Exception'Attempting property access on prototype presentation. Use Presentation::of( $data ) to get a model presentation.' );
  3.         }
  4.         $generator "generate_$name";
  5.         if ( \method_exists$this$generator ) ) {
  6.             $this->{$name} = $this->$generator();
  7.             return $this->{$name};
  8.         }
  9.         throw new Exception"Property $name has no generator. Expected function $generator." );
  10.     }
  1.      * Gets the raw value of a presentation.
  2.      *
  3.      * @return array The raw value.
  4.      */
  5.     public function get() {
  6.         return $this->presentation->robots;
  7.     }
  8. }
  1.     protected function get_robots_value() {
  2.         $context $this->context_memoizer->for_current_page();
  3.         $robots_presenter               = new Robots_Presenter();
  4.         $robots_presenter->presentation $context->presentation;
  5.         return $this->format_robots$robots_presenter->get() );
  6.     }
  7.     /**
  8.      * Formats our robots fields, to match the pattern WordPress is using.
  9.      *
  1.     public function add_robots$robots ) {
  2.         if ( ! \is_array$robots ) ) {
  3.             return $this->get_robots_value();
  4.         }
  5.         $merged_robots   \array_merge$robots$this->get_robots_value() );
  6.         $filtered_robots $this->enforce_robots_congruence$merged_robots );
  7.         $sorted_robots   $this->sort_robots$filtered_robots );
  8.         // Filter all falsy-null robot values.
  9.         return \array_filter$sorted_robots );
WP_Robots_Integration->add_robots(array('noindex' => true, 'nofollow' => true)) in /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/class-wp-hook.php (line 308)
  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 ] ) );
WP_Hook->apply_filters(array('noindex' => true, 'nofollow' => true), array(array('noindex' => true, 'nofollow' => true))) in /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/plugin.php (line 205)
  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 array $robots Associative array of directives. Every key must be the name of the directive, and the
  3.      *                      corresponding value must either be a string to provide as value for the directive or a
  4.      *                      boolean `true` if it is a boolean directive, i.e. without a value.
  5.      */
  6.     $robots apply_filters'wp_robots', array() );
  7.     $robots_strings = array();
  8.     foreach ( $robots as $directive => $value ) {
  9.         if ( is_string$value ) ) {
  10.             // If a string value, include it as value for the directive.
  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.  * Fires the wp_footer action.
  10.  *
  1. <head>
  2.   <meta charset="utf-8">
  3.   <meta http-equiv="x-ua-compatible" content="ie=edge">
  4.   <meta name="viewport" content="width=device-width, initial-scale=1">
  5.   <?php wp_head(); ?>
  6.   <link rel="shortcut icon" href="/app/themes/ywd-selfsignal/dist/images/favicon.ico" type="image/x-icon">
  7.   <link rel="icon" href="/app/themes/ywd-selfsignal/dist/images/favicon.ico" type="image/x-icon">
  8.   <!-- Start of Google Analytics -->
  9.   <script>
require('/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/templates/head.php') in /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/template.php (line 785)
  1.     do_action'wp_before_load_template'$_template_file$load_once$args );
  2.     if ( $load_once ) {
  3.         require_once $_template_file;
  4.     } else {
  5.         require $_template_file;
  6.     }
  7.     /**
  8.      * Fires after a template file is loaded.
  9.      *
load_template('/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/templates/head.php', false, array()) in /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/template.php (line 718)
  1.             break;
  2.         }
  3.     }
  4.     if ( $load && '' !== $located ) {
  5.         load_template$located$load_once$args );
  6.     }
  7.     return $located;
  8. }
  1.      * @param string[] $templates Array of template files to search for, in order.
  2.      * @param array    $args      Additional arguments passed to the template.
  3.      */
  4.     do_action'get_template_part'$slug$name$templates$args );
  5.     if ( ! locate_template$templatestruefalse$args ) ) {
  6.         return false;
  7.     }
  8. }
  9. /**
  1. ?>
  2. <!doctype html>
  3. <html <?php language_attributes(); ?>>
  4.   <?php get_template_part('templates/head'); ?>
  5.   <body <?php body_class(); ?>>
  6.     <!--[if IE]>
  7.       <div class="alert alert-warning">
  8.         <?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.''sage'); ?>
  9.       </div>
include('/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/base.php') in /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/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/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/template-loader.php') in /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/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/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-blog-header.php') in /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/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:
Attempt to read property "taxonomy" on null

  at /home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php:163
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "taxonomy" on null', '/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php', 163, array())
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "taxonomy" on null', '/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php', 163)
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php:163)
  at Yoast\WP\SEO\Presentations\Indexable_Term_Archive_Presentation->generate_robots()
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/presentations/abstract-presentation.php:66)
  at Yoast\WP\SEO\Presentations\Abstract_Presentation->__get('robots')
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/presenters/robots-presenter.php:38)
  at Yoast\WP\SEO\Presenters\Robots_Presenter->get()
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/integrations/front-end/wp-robots-integration.php:91)
  at Yoast\WP\SEO\Integrations\Front_End\WP_Robots_Integration->get_robots_value()
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/plugins/wordpress-seo/src/integrations/front-end/wp-robots-integration.php:73)
  at Yoast\WP\SEO\Integrations\Front_End\WP_Robots_Integration->add_robots(array('noindex' => true, 'nofollow' => true))
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/class-wp-hook.php:308)
  at WP_Hook->apply_filters(array('noindex' => true, 'nofollow' => true), array(array('noindex' => true, 'nofollow' => true)))
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/plugin.php:205)
  at apply_filters('wp_robots', array())
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/robots-template.php:32)
  at wp_robots('')
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/class-wp-hook.php:308)
  at WP_Hook->apply_filters(null, array(''))
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/class-wp-hook.php:332)
  at WP_Hook->do_action(array(''))
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/plugin.php:517)
  at do_action('wp_head')
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/general-template.php:3049)
  at wp_head()
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/templates/head.php:5)
  at require('/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/templates/head.php')
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/template.php:785)
  at load_template('/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/templates/head.php', false, array())
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/template.php:718)
  at locate_template(array('templates/head.php'), true, false, array())
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/general-template.php:204)
  at get_template_part('templates/head')
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/base.php:9)
  at include('/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/app/themes/selfsignal-theme/base.php')
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/template-loader.php:106)
  at require_once('/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-includes/template-loader.php')
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-blog-header.php:19)
  at require('/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/wp/wp-blog-header.php')
     (/home/clients/a580e96245eda33f45e7f36541a86a51/sites/www.selfsignal.fr/releases/6/web/index.php:6)