Symfony Exception

Error

HTTP 500 Internal Server Error

Call to undefined function App\get_field()

Exception

Error

  1.                 echo '<link rel="alternate" href="' $hreflang['hreflang_url'] . '" hreflang="' strtolower($hreflang['hreflang_language']) . '" />' PHP_EOL;
  2.             }
  3.         }
  4.     } else if( (function_exists('is_category') && is_category()) || ( function_exists('is_product_category') && is_product_category()) ) {
  5.         $category get_queried_object();
  6.         $language_hreflang get_field('language_hreflang''category_' $category->term_id);
  7.         if (isset($language_hreflang) && is_array($language_hreflang)){
  8.             foreach ($language_hreflang as $hreflang) {
  9.                 echo '<link rel="alternate" href="' $hreflang['hreflang_url'] . '" hreflang="' strtolower($hreflang['hreflang_language']) . '" />' PHP_EOL;
  10.             }
  11.         }
  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$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.   ?>"
  2. >
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <?php wp_head(); ?>
  7.   </head>
  8.   <body <?php body_class(); ?>>
  9.     <?php wp_body_open(); ?>
  10.     <?php do_action('get_header'); ?>
include('/mnt/persist/www/lamisilmonodose.fr/web/app/themes/karo-pharma/index.php') in /mnt/persist/www/lamisilmonodose.fr/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('/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-includes/template-loader.php') in /mnt/persist/www/lamisilmonodose.fr/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('/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-blog-header.php') in /mnt/persist/www/lamisilmonodose.fr/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

Error
Error:
Call to undefined function App\get_field()

  at /mnt/persist/www/lamisilmonodose.fr/web/app/themes/karo-pharma/app/setup.php:1045
  at App\{closure}()
     (/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-includes/class-wp-hook.php:324)
  at WP_Hook->apply_filters()
     (/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-includes/class-wp-hook.php:348)
  at WP_Hook->do_action()
     (/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-includes/plugin.php:517)
  at do_action()
     (/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-includes/general-template.php:3192)
  at wp_head()
     (/mnt/persist/www/lamisilmonodose.fr/web/app/themes/karo-pharma/index.php:21)
  at include('/mnt/persist/www/lamisilmonodose.fr/web/app/themes/karo-pharma/index.php')
     (/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-includes/template-loader.php:106)
  at require_once('/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-includes/template-loader.php')
     (/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-blog-header.php:19)
  at require('/mnt/persist/www/lamisilmonodose.fr/web/wp/wp-blog-header.php')
     (/mnt/persist/www/lamisilmonodose.fr/web/index.php:6)