Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Trying to access array offset on value of type bool

Exception

ErrorException

  1.   "@context": "https://schema.org/",
  2.   "@type": "' $schema_name '",
  3.   "name": "' $schema_title '",
  4.   "aggregateRating": {
  5.     "@type": "AggregateRating",
  6.     "ratingValue": "' $rating_stat['avg'] . '",
  7.     "bestRating": "5",
  8.     "ratingCount": "' $rating_stat['count'] . '"
  9.   }
  10. }</script>';
  11.         }
  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.             }
  1.   "@context": "https://schema.org/",
  2.   "@type": "' $schema_name '",
  3.   "name": "' $schema_title '",
  4.   "aggregateRating": {
  5.     "@type": "AggregateRating",
  6.     "ratingValue": "' $rating_stat['avg'] . '",
  7.     "bestRating": "5",
  8.     "ratingCount": "' $rating_stat['count'] . '"
  9.   }
  10. }</script>';
  11.         }
Stars_Rating->add_reviews_schema() in /home/forge/cy.mkbl.dk/public/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 ] ) );
  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.     <!-- TrustBox script -->
  2.     <script type="text/javascript" src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js" async></script>
  3.     <!-- End TrustBox script -->
  4.     <?php wp_head(); ?>
  5.   </head>
  6.   <body <?php body_class(); ?>>
  7.     <!-- Google Tag Manager (noscript) -->
  8.     <noscript><iframe src="https://load.gtm.cathrineyoga.dk/ns.html?id=GTM-K42TJ5T"
include('/home/forge/cy.mkbl.dk/public/wp-content/themes/wp-cathrine-yoga-theme/index.php') in /home/forge/cy.mkbl.dk/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/cy.mkbl.dk/public/wp-includes/template-loader.php') in /home/forge/cy.mkbl.dk/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/cy.mkbl.dk/public/wp-blog-header.php') in /home/forge/cy.mkbl.dk/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

ErrorException
ErrorException:
Trying to access array offset on value of type bool

  at /home/forge/cy.mkbl.dk/public/wp-content/plugins/wp-stars-rating-plugin/public/stars-rating-public.php:128
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/home/forge/cy.mkbl.dk/public/wp-content/themes/wp-cathrine-yoga-theme/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
     (/home/forge/cy.mkbl.dk/public/wp-content/plugins/wp-stars-rating-plugin/public/stars-rating-public.php:128)
  at Stars_Rating->add_reviews_schema()
     (/home/forge/cy.mkbl.dk/public/wp-includes/class-wp-hook.php:308)
  at WP_Hook->apply_filters()
     (/home/forge/cy.mkbl.dk/public/wp-includes/class-wp-hook.php:332)
  at WP_Hook->do_action()
     (/home/forge/cy.mkbl.dk/public/wp-includes/plugin.php:517)
  at do_action()
     (/home/forge/cy.mkbl.dk/public/wp-includes/general-template.php:3043)
  at wp_head()
     (/home/forge/cy.mkbl.dk/public/wp-content/themes/wp-cathrine-yoga-theme/index.php:18)
  at include('/home/forge/cy.mkbl.dk/public/wp-content/themes/wp-cathrine-yoga-theme/index.php')
     (/home/forge/cy.mkbl.dk/public/wp-includes/template-loader.php:106)
  at require_once('/home/forge/cy.mkbl.dk/public/wp-includes/template-loader.php')
     (/home/forge/cy.mkbl.dk/public/wp-blog-header.php:19)
  at require('/home/forge/cy.mkbl.dk/public/wp-blog-header.php')
     (/home/forge/cy.mkbl.dk/public/index.php:17)