Skip to content Skip to tools

3D modeling

Maya - Arnold

Sculpt Zbrush

Blender - Concept by Goro Fujita

Texturing only

Lighting only

French
Typography
Contrast
OD_HTML_Tag_Processor::next_token(): Expected popped tag stack element DIV to match the currently visited closing tag SECTION. (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

OD_HTML_Tag_Processor::next_token(): Expected popped tag stack element DIV to match the currently visited closing tag SECTION.

Exception

ErrorException

Show exception properties
ErrorException {#6770
  #severity: E_USER_NOTICE
}
  1. if ( E_USER_ERROR === $error_level ) {
  2. throw new WP_Exception( $message );
  3. }
  4. trigger_error( $message, $error_level );
  5. }
  6. /**
  7. * Determines whether the server is running an earlier than 1.5.0 version of lighttpd.
  8. *
  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()
  1. if ( E_USER_ERROR === $error_level ) {
  2. throw new WP_Exception( $message );
  3. }
  4. trigger_error( $message, $error_level );
  5. }
  6. /**
  7. * Determines whether the server is running an earlier than 1.5.0 version of lighttpd.
  8. *
  1. /**
  2. * No WP_Exception is thrown by wp_trigger_error() since E_USER_ERROR is not passed as the error level.
  3. *
  4. * @noinspection PhpUnhandledExceptionInspection
  5. */
  6. wp_trigger_error(
  7. $function_name,
  8. esc_html( $message )
  9. );
  10. }
  11. }
  1. }
  2. $popped_tag_name = array_pop( $this->open_stack_tags );
  3. array_pop( $this->open_stack_attributes );
  4. if ( $popped_tag_name !== $tag_name ) {
  5. $this->warn(
  6. __METHOD__,
  7. sprintf(
  8. /* translators: 1: Popped tag name, 2: Closing tag name */
  9. __( 'Expected popped tag stack element %1$s to match the currently visited closing tag %2$s.', 'optimization-detective' ),
  10. $popped_tag_name,
  1. public function next_tag( $query = null ): bool {
  2. $this->parse_query( $query );
  3. $already_found = 0;
  4. do {
  5. if ( false === $this->next_token() ) {
  6. return false;
  7. }
  8. if ( self::STATE_MATCHED_TAG !== $this->parser_state ) {
  9. continue;
  1. $this->warn(
  2. __METHOD__,
  3. esc_html__( 'Previously this method always visited tag closers and did not allow a query to be supplied. Now, however, a query can be supplied. To align this method with the behavior of the base class, a future version of this method will default to skipping tag closers.', 'optimization-detective' )
  4. );
  5. }
  6. return parent::next_tag( $query );
  7. }
  8. /**
  9. * Finds the next open tag.
  10. *
  1. if ( $tracked_in_url_metrics && $needs_detection ) {
  2. $processor->set_meta_attribute( 'xpath', $processor->get_xpath() );
  3. }
  4. $visited_tag_state->reset();
  5. } while ( $processor->next_tag( array( 'tag_closers' => 'skip' ) ) );
  6. // Inject detection script.
  7. // TODO: When optimizing above, if we find that there is a stored LCP element but it fails to match, it should perhaps set $needs_detection to true and send the request with an override nonce. However, this would require backtracking and adding the data-od-xpath attributes.
  8. if ( $needs_detection ) {
  9. $processor->append_body_html( od_get_detection_script( $slug, $group_collection ) );
  1. // Avoid the array_slice() if possible.
  2. if ( 0 === $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( $args, 0, $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. * @since 0.1.0
  2. *
  3. * @param string $output Output buffer.
  4. * @return string Filtered output buffer.
  5. */
  6. return (string) apply_filters( 'od_template_output_buffer', $output );
  7. },
  8. 0, // Unlimited buffer size.
  9. $flags
  10. );
  11. return $passthrough;
{closure}()
  1. * @since 2.2.0
  2. */
  3. function wp_ob_end_flush_all() {
  4. $levels = ob_get_level();
  5. for ( $i = 0; $i < $levels; $i++ ) {
  6. ob_end_flush();
  7. }
  8. }
  9. /**
  10. * Loads custom DB error or display WordPress DB error.
  1. // Avoid the array_slice() if possible.
  2. if ( 0 === $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( $args, 0, $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] ) && 1 === 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 just before PHP shuts down execution.
  3. *
  4. * @since 1.2.0
  5. */
  6. do_action( 'shutdown' );
  7. wp_cache_close();
  8. }
  9. /**
shutdown_action_hook()

Stack Trace

ErrorException
ErrorException:
OD_HTML_Tag_Processor::next_token(): Expected popped tag stack element DIV to match the currently visited closing tag SECTION.

  at /srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/functions.php:6131
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-content/themes/louise/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
  at trigger_error()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/functions.php:6131)
  at wp_trigger_error()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-content/plugins/optimization-detective/class-od-html-tag-processor.php:804)
  at OD_HTML_Tag_Processor->warn()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-content/plugins/optimization-detective/class-od-html-tag-processor.php:381)
  at OD_HTML_Tag_Processor->next_token()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/html-api/class-wp-html-tag-processor.php:890)
  at WP_HTML_Tag_Processor->next_tag()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-content/plugins/optimization-detective/class-od-html-tag-processor.php:255)
  at OD_HTML_Tag_Processor->next_tag()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-content/plugins/optimization-detective/optimization.php:351)
  at od_optimize_template_output_buffer()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/class-wp-hook.php:341)
  at WP_Hook->apply_filters()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/plugin.php:205)
  at apply_filters()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-content/plugins/optimization-detective/optimization.php:68)
  at {closure}()
  at ob_end_flush()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/functions.php:5481)
  at wp_ob_end_flush_all()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/class-wp-hook.php:341)
  at WP_Hook->apply_filters()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/class-wp-hook.php:365)
  at WP_Hook->do_action()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/plugin.php:522)
  at do_action()
     (/srv/data/web/vhosts/louise.meziere.net/htdocs/wp-includes/load.php:1308)
  at shutdown_action_hook()