Error
Call to undefined function App\Config\wpml_get_active_languages_filter() Error thrown with message "Call to undefined function App\Config\wpml_get_active_languages_filter()" Stacktrace: #7 Error in /var/www/fxb-site/App/Config/Context.php:68 #6 App\Config\Context:add_to_context in /var/www/fxb-site/web/wp/wp-includes/class-wp-hook.php:324 #5 WP_Hook:apply_filters in /var/www/fxb-site/web/wp/wp-includes/plugin.php:205 #4 apply_filters in /var/www/fxb-site/vendor/timber/timber/lib/Timber.php:270 #3 Timber\Timber:get_context in /var/www/fxb-site/web/app/themes/fxb/page.php:7 #2 include in /var/www/fxb-site/web/wp/wp-includes/template-loader.php:106 #1 require_once in /var/www/fxb-site/web/wp/wp-blog-header.php:19 #0 require in /var/www/fxb-site/web/index.php:6
Stack frames (8)
7
Error
/App/Config/Context.php68
6
App\Config\Context add_to_context
/web/wp/wp-includes/class-wp-hook.php324
5
WP_Hook apply_filters
/web/wp/wp-includes/plugin.php205
4
apply_filters
/vendor/timber/timber/lib/Timber.php270
3
Timber\Timber get_context
/web/app/themes/fxb/page.php7
2
include
/web/wp/wp-includes/template-loader.php106
1
require_once
/web/wp/wp-blog-header.php19
0
require
/web/index.php6
/var/www/fxb-site/App/Config/Context.php
 
         elseif (strpos($breadcrumb, '<a href="https://fxb.org/what-we-do/" >What We Do</a>') != false):
            $breadcrumb= str_replace('<a href="https://fxb.org/what-we-do/" >What We Do</a>', 'What we do', $breadcrumb);
 
         elseif (strpos($breadcrumb, '<a href="https://fxb.org/fr/what-we-do/" >What We Do</a>') != false):
            $breadcrumb= str_replace('<a href="https://fxb.org/fr/what-we-do/" >What We Do</a>', 'Que faisons-nous', $breadcrumb);
         endif;
         // $breadcrumb= str_replace('<a href="http://fxb.test/who-we-are/" >Who We Are</a>', 'Who we are', $breadcrumb);
         // $breadcrumb= str_replace('<a href="http://fxb.test/fr/who-we-are/" >Who We Are</a>', 'Qui sommes nous', $breadcrumb);
         // $breadcrumb= str_replace('<a href="http://fxb.test/what-we-do/" >What We Do</a>', 'What we do', $breadcrumb);
         // $breadcrumb= str_replace('<a href="http://fxb.test/fr/what-we-do/" >What We Do</a>', 'Ce que nous faisons', $breadcrumb);
         // dd($breadcrumb);
         $data['breadcrumb'] = $breadcrumb;
 
         // $data['breadcrumb'] = new Breadcrumb();
 
         // add options to context
         $data['options'] = get_fields('option');
         // dd($data['options']);
         $data['language_switcher'] = wpml_get_active_languages_filter(0);
         $lang = $data['language_switcher'];
        
         $active_lang = "en";
         if(array_key_exists("fr", $lang)) {
            if($lang['fr']['active'] === "1") {
               $active_lang = "fr";
            }
         }
         $data['active_lang'] = $active_lang;
 
         return $data;
 
     }
 
}
 
Arguments
  1. "Call to undefined function App\Config\wpml_get_active_languages_filter()"
    
/var/www/fxb-site/web/wp/wp-includes/class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/var/www/fxb-site/web/wp/wp-includes/plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
/var/www/fxb-site/vendor/timber/timber/lib/Timber.php
            self::$context_cache['wp_title'] = Helper::get_wp_title();
            self::$context_cache['body_class'] = implode(' ', get_body_class());
 
            self::$context_cache['site'] = new Site();
            self::$context_cache['request'] = new Request();
            $user = new User();
            self::$context_cache['user'] = ($user->ID) ? $user : false;
            self::$context_cache['theme'] = self::$context_cache['site']->theme;
 
            self::$context_cache['posts'] = new PostQuery();
 
            /**
             * @deprecated as of Timber 1.3.0
             * @todo remove in Timber 1.4.*
             */
            self::$context_cache['wp_head'] = new FunctionWrapper( 'wp_head' );
            self::$context_cache['wp_footer'] = new FunctionWrapper( 'wp_footer' );
 
            self::$context_cache = apply_filters('timber_context', self::$context_cache);
            self::$context_cache = apply_filters('timber/context', self::$context_cache);
        }
 
 
        return self::$context_cache;
    }
 
    /**
     * Compile a Twig file.
     *
     * Passes data to a Twig file and returns the output.
     * If the template file doesn't exist it will throw a warning when WP_DEBUG is enabled.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'firstname' => 'Jane',
     *     'lastname' => 'Doe',
     *     'email' => 'jane.doe@example.org',
     * );
/var/www/fxb-site/web/app/themes/fxb/page.php
<?php
 
use Timber\Post;
use Timber\Timber;
use App\Models\PagedefaultPost;
 
$context         = Timber::get_context();
$post            = new Post();
$context['post'] = $post;
 
$context['posts'] = Timber::get_post(['name' => 'fxb-news', 'post_type' => 'page']);
 
$context['post'] = new PagedefaultPost();
if( ! get_field('modules_footer', $context['post']->ID)) {
   delete_field("modules_footer", $context['post']->ID);
}
 
Timber::render(['page-' . $post->post_name . '.twig', 'page.twig'], $context);
 
/var/www/fxb-site/web/wp/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/var/www/fxb-site/web/app/themes/fxb/page.php"
    
/var/www/fxb-site/web/wp/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/var/www/fxb-site/web/wp/wp-includes/template-loader.php"
    
/var/www/fxb-site/web/index.php
<?php
 
 
/** WordPress view bootstrapper */
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
 
Arguments
  1. "/var/www/fxb-site/web/wp/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.41 (Ubuntu)"
REQUEST_URI
"/francois-debiesse/"
REDIRECT_W3TC_QUERY_STRING
""
REDIRECT_W3TC_SSL
"_ssl"
REDIRECT_W3TC_SLASH
"_slash"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"fxb.org"
REDIRECT_STATUS
"200"
W3TC_QUERY_STRING
""
W3TC_SSL
"_ssl"
HTTP_AUTHORIZATION
""
HTTPS
"on"
SSL_TLS_SNI
"fxb.org"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"claudebot"
HTTP_HOST
"fxb.org"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
SERVER_SIGNATURE
""
SERVER_NAME
"fxb.org"
SERVER_ADDR
"64.225.98.200"
SERVER_PORT
"443"
REMOTE_ADDR
"44.212.50.220"
DOCUMENT_ROOT
"/var/www/fxb-site/web"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/fxb-site/web"
SERVER_ADMIN
"webmaster@localhost"
SCRIPT_FILENAME
"/var/www/fxb-site/web/index.php"
REMOTE_PORT
"59548"
REDIRECT_URL
"/francois-debiesse/"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711616616.801
REQUEST_TIME
1711616616
DB_NAME
"fxb-prod"
DB_USER
"wordpress"
DB_PASSWORD
"69b32805ff8d63435218bce2774f684d16b67bfcd9c1af9c"
DB_HOST
"localhost"
DB_PREFIX
"fxb_"
THEME_NAME
"fxb"
WP_ENV
"development"
WP_HOME
"https://fxb.org"
WP_SITEURL
"https://fxb.org/wp"
AUTH_KEY
"cvlbD3K<C+ez#&fNLH@T7(_Ory7^84h^GLL(;z]SJ,n#Hm5?t9j`XZN2xqtCjbY."
SECURE_AUTH_KEY
"w>aGG#Kn6m||HbL-90bGer/{RcO6k,Q?klmNR;?#%j9#JxZ/<Lb$*oU[/[z5UFKN"
LOGGED_IN_KEY
"2EWq-4_=$Dj3r3wcn5V9H;p0LC.a7g3;#.CT;)zeqRZBg+btlmPX/<=Eq.*]Zkc@"
NONCE_KEY
"us-Iu=kLHZd2vw`NzU<mV==po9+#zTXaM<NCB,]/->-n8%VFOfDC*r.w4w5WXY/r"
AUTH_SALT
"ca,YKD}AYtC$V]ngmh&sN@KCD0fy-]HGd]{*AFMWL6*i@>mAb}z]|k}34*$onX*^"
SECURE_AUTH_SALT
"9s>ZIKQuZeFhVcxna?O&bp%2dCRY<{yLA5?NYpX`z]V*<|k(q7WL_6k_2_4T^X`p"
LOGGED_IN_SALT
"`YEw}%FQ`dv+nLI1wsX+N5X:EFxIIF]I:oIUc=kG?!Rp4y*:#*Ne)Xv0/Sqxrm|H"
NONCE_SALT
"de&B(yNHrZxS)Y-|:^xHdr%CoRRfR<vkK*88!kLoJzTx*Fg{@1$!/<<R6w;YV5pQ"
FB_SECRET_KEY
"2b8a423ac74f9745bdd07cbf5a529779"
FB_APP_ID
"2285930051712632"
FB_APP_TOKEN
"649502372278822|7uKpche7trbTC-YnZ9cMZYFCW2A"
FB_PAGE_ID
"121187491240980"
FB_ACCESS_TOKEN
"EAAgfCpC2tngBANISIZChnklxaqbAzX4728wKLb9nDZCAZCGFwqlLZC9jXbT3FxZBYwWGgqA2p6dtqKT8M3khmCbQOZCocygrKPt0wJnme6EOQsbaGBydZB3EjYizwGashYualEZBphUAoeZAIblmTnp7eJfeYb0uBdf4xGC1VZBGw6EwZDZD"
TWITTER_CONSUMER_ID
"xF7Mg83uy0ymt1cyvapKXE6sF"
TWITTER_CONSUMER_SECRET
"LRq6F6NROMVnECTKTXE7t8GahQwY5vyMUXxD5cv06yKxWATwYC"
TWITTER_ACCESS_TOKEN
"82350437-QroF9BX3ONUfhzDICq81wX2Ul76e8ALOtZL6KPgP9"
TWITTER_ACCESS_TOKEN_SECRET
"d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
FB_SECRET_KEY
"2b8a423ac74f9745bdd07cbf5a529779"
FB_APP_ID
"2285930051712632"
FB_APP_TOKEN
"649502372278822|7uKpche7trbTC-YnZ9cMZYFCW2A"
FB_PAGE_ID
"121187491240980"
FB_ACCESS_TOKEN
"EAAgfCpC2tngBANISIZChnklxaqbAzX4728wKLb9nDZCAZCGFwqlLZC9jXbT3FxZBYwWGgqA2p6dtqKT8M3khmCbQOZCocygrKPt0wJnme6EOQsbaGBydZB3EjYizwGashYualEZBphUAoeZAIblmTnp7eJfeYb0uBdf4xGC1VZBGw6EwZDZD"
TWITTER_CONSUMER_ID
"xF7Mg83uy0ymt1cyvapKXE6sF"
TWITTER_CONSUMER_SECRET
"LRq6F6NROMVnECTKTXE7t8GahQwY5vyMUXxD5cv06yKxWATwYC"
TWITTER_ACCESS_TOKEN
"82350437-QroF9BX3ONUfhzDICq81wX2Ul76e8ALOtZL6KPgP9"
TWITTER_ACCESS_TOKEN_SECRET
"dLtBVOJMrgDIiCvrjTieaqVlbUQAqzaOpie8sxLqxE8PL"
INSTAGRAM_ACCESS_TOKEN
"IGQVJXQ3hSV3lXNEtNV2JkUFdpclpqSkR6ZA2JTWFlSUzctbG9PdjFYaDJ1dGNNVTRCV3BfYjJsejg2SHd5SVIwblc3ZAkVxS29hSWg0eDZAJY0xBeXA5bEhDeG9BcC14MnJaemZAaTG14QTkxaTJUZAkpHRgZDZD"
0. Whoops\Handler\PrettyPageHandler