Call to undefined function get_field() (View: /app/web/app/themes/sernapesca/resources/views/page-tramites-y-formularios.blade.php) (500 Internal Server Error)

Symfony Exception

Error ViewException

HTTP 500 Internal Server Error

Call to undefined function get_field() (View: /app/web/app/themes/sernapesca/resources/views/page-tramites-y-formularios.blade.php)

Exceptions 2

Illuminate\View\ ViewException

Show exception properties
Illuminate\View\ViewException {#1993
  #severity: E_ERROR
}
  1. add_filter('manage_tramite_posts_columns''agregar_columna_codigo_tramite');
  2. add_action('manage_tramite_posts_custom_column''rellenar_columna_codigo_tramite'102);
  3. function modificar_contenido_columna_titulo($title$post_id) {
  4.     if (get_post_type($post_id) === 'tramite') {
  5.         $tipo_contenido get_field('tipo_contenido'$post_id);
  6.         if ($tipo_contenido === 'link') {
  7.             $title "[ {$title} ]";
  8.         }
  9.     }
in /app/vendor/illuminate/view/Engines/PhpEngine.php -> handleViewException (line 60)
  1.         // flush out any stray output that might get out before an error occurs or
  2.         // an exception is thrown. This prevents any partial views from leaking.
  3.         try {
  4.             $this->files->getRequire($path$data);
  5.         } catch (Throwable $e) {
  6.             $this->handleViewException($e$obLevel);
  7.         }
  8.         return ltrim(ob_get_clean());
  9.     }
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
in /app/vendor/illuminate/view/View.php -> getContents (line 178)
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
in /app/vendor/illuminate/view/View.php -> renderContents (line 147)
  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
View->render() in /app/web/app/themes/sernapesca/index.php (line 17)
  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. <script src="https://apps.sae1.pure.cloud/widgets/9.0/cxbus.min.js"
include('/app/web/app/themes/sernapesca/index.php') in /app/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('/app/web/wp/wp-includes/template-loader.php') in /app/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('/app/web/wp/wp-blog-header.php') in /app/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';

Error

Call to undefined function get_field()

  1. add_filter('manage_tramite_posts_columns''agregar_columna_codigo_tramite');
  2. add_action('manage_tramite_posts_custom_column''rellenar_columna_codigo_tramite'102);
  3. function modificar_contenido_columna_titulo($title$post_id) {
  4.     if (get_post_type($post_id) === 'tramite') {
  5.         $tipo_contenido get_field('tipo_contenido'$post_id);
  6.         if ($tipo_contenido === 'link') {
  7.             $title "[ {$title} ]";
  8.         }
  9.     }
modificar_contenido_columna_titulo('Autorización de laboratorios de diagnostico', 20462) in /app/web/wp/wp-includes/class-wp-hook.php (line 324)
  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 ] ) );
WP_Hook->apply_filters('Autorización de laboratorios de diagnostico', array('Autorización de laboratorios de diagnostico', 20462)) in /app/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. }
apply_filters('the_title', 'Autorización de laboratorios de diagnostico', 20462) in /app/web/wp/wp-includes/post-template.php (line 174)
  1.      * @since 0.71
  2.      *
  3.      * @param string $post_title The post title.
  4.      * @param int    $post_id    The post ID.
  5.      */
  6.     return apply_filters'the_title'$post_title$post_id );
  7. }
  8. /**
  9.  * Displays the Post Global Unique Identifier (guid).
  10.  *
get_the_title() in /app/web/wp/wp-includes/post-template.php (line 44)
  1.  * @param bool   $display Optional. Whether to echo or return the title. Default true for echo.
  2.  * @return void|string Void if `$display` argument is true or the title is empty,
  3.  *                     current post title if `$display` is false.
  4.  */
  5. function the_title$before ''$after ''$display true ) {
  6.     $title get_the_title();
  7.     if ( strlen$title ) === ) {
  8.         return;
  9.     }
  1.       $query = new WP_Query($args);
  2.     
  3.       if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>
  4.         <div class="bg-light p-4 mb-4 hover-zoom" style="background-color: #f6f5f5;">
  5.             <article <?php post_class(); ?>>
  6.                 <h4><a href="<?php the_permalink(); ?>" class="text-decoration-none"><?php the_title(); ?></a></h4>
  7.                 <?php
  8.                 $terms get_the_terms(get_the_ID(), 'region');
  9.                 if ($terms && !is_wp_error($terms)) {
  10.                     echo '<div class="mb-1">';
  11.                     foreach ($terms as $term) {
  1.             $__data $data;
  2.             return (static function () use ($__path$__data) {
  3.                 extract($__dataEXTR_SKIP);
  4.                 return require $__path;
  5.             })();
  6.         }
  7.         throw new FileNotFoundException("File does not exist at path {$path}.");
  8.     }
in /app/vendor/illuminate/filesystem/Filesystem.php :: Illuminate\Filesystem\{closure} (line 110)
  1.             return (static function () use ($__path$__data) {
  2.                 extract($__dataEXTR_SKIP);
  3.                 return require $__path;
  4.             })();
  5.         }
  6.         throw new FileNotFoundException("File does not exist at path {$path}.");
  7.     }
  1.         // We'll evaluate the contents of the view inside a try/catch block so we can
  2.         // flush out any stray output that might get out before an error occurs or
  3.         // an exception is thrown. This prevents any partial views from leaking.
  4.         try {
  5.             $this->files->getRequire($path$data);
  6.         } catch (Throwable $e) {
  7.             $this->handleViewException($e$obLevel);
  8.         }
  9.         return ltrim(ob_get_clean());
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
in /app/vendor/illuminate/view/View.php -> getContents (line 178)
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
in /app/vendor/illuminate/view/View.php -> renderContents (line 147)
  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
View->render() in /app/web/app/themes/sernapesca/index.php (line 17)
  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. <script src="https://apps.sae1.pure.cloud/widgets/9.0/cxbus.min.js"
include('/app/web/app/themes/sernapesca/index.php') in /app/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('/app/web/wp/wp-includes/template-loader.php') in /app/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('/app/web/wp/wp-blog-header.php') in /app/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 Traces 2

[2/2] ViewException
Illuminate\View\ViewException:
Call to undefined function get_field() (View: /app/web/app/themes/sernapesca/resources/views/page-tramites-y-formularios.blade.php)

  at /app/web/app/themes/sernapesca/inc/post/tramites.php:69
  at Illuminate\View\Engines\CompilerEngine->handleViewException(object(Error), 1)
     (/app/vendor/illuminate/view/Engines/PhpEngine.php:60)
  at Illuminate\View\Engines\PhpEngine->evaluatePath('/app/web/app/cache/acorn/framework/views/e994e7577beda87b9792b56592e7fc567bd9ae5e.php', array('__env' => object(Factory), 'app' => object(Application), 'siteName' => 'sernapesca'))
     (/app/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get('/app/web/app/themes/sernapesca/resources/views/page-tramites-y-formularios.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'siteName' => 'sernapesca'))
     (/app/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/app/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/app/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/app/web/app/themes/sernapesca/index.php:17)
  at include('/app/web/app/themes/sernapesca/index.php')
     (/app/web/wp/wp-includes/template-loader.php:106)
  at require_once('/app/web/wp/wp-includes/template-loader.php')
     (/app/web/wp/wp-blog-header.php:19)
  at require('/app/web/wp/wp-blog-header.php')
     (/app/web/index.php:6)                
[1/2] Error
Error:
Call to undefined function get_field()

  at /app/web/app/themes/sernapesca/inc/post/tramites.php:69
  at modificar_contenido_columna_titulo('Autorización de laboratorios de diagnostico', 20462)
     (/app/web/wp/wp-includes/class-wp-hook.php:324)
  at WP_Hook->apply_filters('Autorización de laboratorios de diagnostico', array('Autorización de laboratorios de diagnostico', 20462))
     (/app/web/wp/wp-includes/plugin.php:205)
  at apply_filters('the_title', 'Autorización de laboratorios de diagnostico', 20462)
     (/app/web/wp/wp-includes/post-template.php:174)
  at get_the_title()
     (/app/web/wp/wp-includes/post-template.php:44)
  at the_title()
     (/app/web/app/cache/acorn/framework/views/e994e7577beda87b9792b56592e7fc567bd9ae5e.php:121)
  at require('/app/web/app/cache/acorn/framework/views/e994e7577beda87b9792b56592e7fc567bd9ae5e.php')
     (/app/vendor/illuminate/filesystem/Filesystem.php:109)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/app/vendor/illuminate/filesystem/Filesystem.php:110)
  at Illuminate\Filesystem\Filesystem->getRequire('/app/web/app/cache/acorn/framework/views/e994e7577beda87b9792b56592e7fc567bd9ae5e.php', array('__env' => object(Factory), 'app' => object(Application), 'siteName' => 'sernapesca'))
     (/app/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath('/app/web/app/cache/acorn/framework/views/e994e7577beda87b9792b56592e7fc567bd9ae5e.php', array('__env' => object(Factory), 'app' => object(Application), 'siteName' => 'sernapesca'))
     (/app/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get('/app/web/app/themes/sernapesca/resources/views/page-tramites-y-formularios.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'siteName' => 'sernapesca'))
     (/app/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/app/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/app/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/app/web/app/themes/sernapesca/index.php:17)
  at include('/app/web/app/themes/sernapesca/index.php')
     (/app/web/wp/wp-includes/template-loader.php:106)
  at require_once('/app/web/wp/wp-includes/template-loader.php')
     (/app/web/wp/wp-blog-header.php:19)
  at require('/app/web/wp/wp-blog-header.php')
     (/app/web/index.php:6)