Twig_Error_Runtime
An exception has been thrown during the rendering of a template ("filesize(): stat failed for C:\WebSites\revolutionsmokefree\htdocs\content/uploads/2018/07/Booklet_JPN.pdf"). Twig_Error_Runtime thrown with message "An exception has been thrown during the rendering of a template ("filesize(): stat failed for C:\WebSites\revolutionsmokefree\htdocs\content/uploads/2018/07/Booklet_JPN.pdf")." Stacktrace: #46 Twig_Error_Runtime in C:\Program Files\Apache Software Foundation\Apache2.4\htdocs\smokefree\htdocs\content\themes\who\resources\views\components\globals\downloads.twig:66 #45 Whoops\Exception\ErrorException in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\resources\admin\theme.php:336 #44 filesize in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\resources\admin\theme.php:336 #43 getReadableFileSize in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Extensions\ThemosisTwigExtension.php:57 #42 call_user_func_array in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Extensions\ThemosisTwigExtension.php:57 #41 Themosis\View\Extensions\ThemosisTwigExtension:__call in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:679 #40 Twig_Template:getAttribute in C:\WebSites\revolutionsmokefree\storage\twig\03\03d77fac62a1dc43eda2f8c6621263c14a6b01da00cf2b180c1e8d443859045c.php:169 #39 __TwigTemplate_b0ebe3d927ed666fefe406fe00a83ad5b47b9e42f30a29416af6a283040a2493:doDisplay in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:432 #38 Twig_Template:displayWithErrorHandling in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:403 #37 Twig_Template:display in C:\WebSites\revolutionsmokefree\storage\twig\69\6901fca62a36b12c73eb3b4e5221537b401b1c9409e21929e20b4619e1cd604d.php:19 #36 __TwigTemplate_b2f9dad23ff2237420d60f6ee5d65b16d60189f7e027089270e1131b83f1c4e6:doDisplay in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:432 #35 Twig_Template:displayWithErrorHandling in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:403 #34 Twig_Template:display in C:\WebSites\revolutionsmokefree\storage\twig\ba\baa95f0b2236e2af1dee848c458b7fa9eb7b2a4c3d00d13e348323ca235513da.php:109 #33 __TwigTemplate_b0d2dc8d30b9bd294e1352d0b903c7d2ac693a8fdf808b69eae2a5954b41c267:block_modules in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:215 #32 Twig_Template:displayBlock in C:\WebSites\revolutionsmokefree\storage\twig\cb\cb3db808a556ac9c0c7a9da4bfb85af8305126f6d4db6bcbdf2952a874616c32.php:61 #31 __TwigTemplate_d06ae927e7f6899481e6c8f55f784ae2b16ab18200c1a94a4308f8216e5bf9ef:doDisplay in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:432 #30 Twig_Template:displayWithErrorHandling in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:403 #29 Twig_Template:display in C:\WebSites\revolutionsmokefree\storage\twig\ba\baa95f0b2236e2af1dee848c458b7fa9eb7b2a4c3d00d13e348323ca235513da.php:26 #28 __TwigTemplate_b0d2dc8d30b9bd294e1352d0b903c7d2ac693a8fdf808b69eae2a5954b41c267:doDisplay in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:432 #27 Twig_Template:displayWithErrorHandling in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:403 #26 Twig_Template:display in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php:411 #25 Twig_Template:render in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\twig\twig\lib\Twig\Environment.php:363 #24 Twig_Environment:render in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Engines\TwigEngine.php:49 #23 Themosis\View\Engines\TwigEngine:get in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\view\View.php:142 #22 Illuminate\View\View:getContents in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\view\View.php:125 #21 Illuminate\View\View:renderContents in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\view\View.php:90 #20 Illuminate\View\View:render in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\src\Themosis\helpers.php:562 #19 view in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\resources\controllers\PagesController.php:34 #18 Theme\Controllers\PagesController:show in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\routing\Controller.php:54 #17 call_user_func_array in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\routing\Controller.php:54 #16 Illuminate\Routing\Controller:callAction in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\routing\ControllerDispatcher.php:45 #15 Illuminate\Routing\ControllerDispatcher:dispatch in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Route.php:212 #14 Illuminate\Routing\Route:runController in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Route.php:169 #13 Illuminate\Routing\Route:run in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php:665 #12 Illuminate\Routing\Router:Illuminate\Routing\{closure} in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\routing\Pipeline.php:30 #11 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\pipeline\Pipeline.php:104 #10 Illuminate\Pipeline\Pipeline:then in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php:667 #9 Illuminate\Routing\Router:runRouteWithinStack in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php:642 #8 Illuminate\Routing\Router:runRoute in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php:608 #7 Illuminate\Routing\Router:dispatchToRoute in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php:597 #6 Illuminate\Routing\Router:dispatch in C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\themosis.php:292 #5 Themosis:setRouter in C:\WebSites\revolutionsmokefree\htdocs\cms\wp-includes\class-wp-hook.php:286 #4 WP_Hook:apply_filters in C:\WebSites\revolutionsmokefree\htdocs\cms\wp-includes\class-wp-hook.php:310 #3 WP_Hook:do_action in C:\WebSites\revolutionsmokefree\htdocs\cms\wp-includes\plugin.php:453 #2 do_action in C:\WebSites\revolutionsmokefree\htdocs\cms\wp-includes\template-loader.php:12 #1 require_once in C:\WebSites\revolutionsmokefree\htdocs\cms\wp-blog-header.php:19 #0 require in C:\WebSites\revolutionsmokefree\htdocs\index.php:11
Stack frames (47)
46
Twig_Error_Runtime
C:\Program Files\Apache Software Foundation\Apache2.4\htdocs\smokefree\htdocs\content\themes\who\resources\views\components\globals\downloads.twig
66
45
Whoops
\
Exception
\
ErrorException
…\htdocs\content\themes\who\resources\admin\theme.php
336
44
filesize
…\htdocs\content\themes\who\resources\admin\theme.php
336
43
getReadableFileSize
…\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Extensions\ThemosisTwigExtension.php
57
42
call_user_func_array
…\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Extensions\ThemosisTwigExtension.php
57
41
Themosis
\
View
\
Extensions
\
ThemosisTwigExtension
__call
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
679
40
Twig_Template
getAttribute
…\storage\twig\03\03d77fac62a1dc43eda2f8c6621263c14a6b01da00cf2b180c1e8d443859045c.php
169
39
__TwigTemplate_b0ebe3d927ed666fefe406fe00a83ad5b47b9e42f30a29416af6a283040a2493
doDisplay
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
432
38
Twig_Template
displayWithErrorHandling
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
403
37
Twig_Template
display
…\storage\twig\69\6901fca62a36b12c73eb3b4e5221537b401b1c9409e21929e20b4619e1cd604d.php
19
36
__TwigTemplate_b2f9dad23ff2237420d60f6ee5d65b16d60189f7e027089270e1131b83f1c4e6
doDisplay
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
432
35
Twig_Template
displayWithErrorHandling
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
403
34
Twig_Template
display
…\storage\twig\ba\baa95f0b2236e2af1dee848c458b7fa9eb7b2a4c3d00d13e348323ca235513da.php
109
33
__TwigTemplate_b0d2dc8d30b9bd294e1352d0b903c7d2ac693a8fdf808b69eae2a5954b41c267
block_modules
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
215
32
Twig_Template
displayBlock
…\storage\twig\cb\cb3db808a556ac9c0c7a9da4bfb85af8305126f6d4db6bcbdf2952a874616c32.php
61
31
__TwigTemplate_d06ae927e7f6899481e6c8f55f784ae2b16ab18200c1a94a4308f8216e5bf9ef
doDisplay
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
432
30
Twig_Template
displayWithErrorHandling
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
403
29
Twig_Template
display
…\storage\twig\ba\baa95f0b2236e2af1dee848c458b7fa9eb7b2a4c3d00d13e348323ca235513da.php
26
28
__TwigTemplate_b0d2dc8d30b9bd294e1352d0b903c7d2ac693a8fdf808b69eae2a5954b41c267
doDisplay
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
432
27
Twig_Template
displayWithErrorHandling
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
403
26
Twig_Template
display
…\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
411
25
Twig_Template
render
…\htdocs\content\mu-plugins\themosis-framework\vendor\twig\twig\lib\Twig\Environment.php
363
24
Twig_Environment
render
…\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Engines\TwigEngine.php
49
23
Themosis
\
View
\
Engines
\
TwigEngine
get
…\htdocs\content\themes\who\vendor\illuminate\view\View.php
142
22
Illuminate
\
View
\
View
getContents
…\htdocs\content\themes\who\vendor\illuminate\view\View.php
125
21
Illuminate
\
View
\
View
renderContents
…\htdocs\content\themes\who\vendor\illuminate\view\View.php
90
20
Illuminate
\
View
\
View
render
…\htdocs\content\mu-plugins\themosis-framework\src\Themosis\helpers.php
562
19
view
…\htdocs\content\themes\who\resources\controllers\PagesController.php
34
18
Theme
\
Controllers
\
PagesController
show
…\htdocs\content\themes\who\vendor\illuminate\routing\Controller.php
54
17
call_user_func_array
…\htdocs\content\themes\who\vendor\illuminate\routing\Controller.php
54
16
Illuminate
\
Routing
\
Controller
callAction
…\htdocs\content\themes\who\vendor\illuminate\routing\ControllerDispatcher.php
45
15
Illuminate
\
Routing
\
ControllerDispatcher
dispatch
…\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Route.php
212
14
Illuminate
\
Routing
\
Route
runController
…\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Route.php
169
13
Illuminate
\
Routing
\
Route
run
…\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
665
12
Illuminate
\
Routing
\
Router
Illuminate
\
Routing
\
{closure}
…\htdocs\content\themes\who\vendor\illuminate\routing\Pipeline.php
30
11
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
…\htdocs\content\themes\who\vendor\illuminate\pipeline\Pipeline.php
104
10
Illuminate
\
Pipeline
\
Pipeline
then
…\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
667
9
Illuminate
\
Routing
\
Router
runRouteWithinStack
…\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
642
8
Illuminate
\
Routing
\
Router
runRoute
…\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
608
7
Illuminate
\
Routing
\
Router
dispatchToRoute
…\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
597
6
Illuminate
\
Routing
\
Router
dispatch
…\htdocs\content\mu-plugins\themosis-framework\themosis.php
292
5
Themosis
setRouter
…\htdocs\cms\wp-includes\class-wp-hook.php
286
4
WP_Hook
apply_filters
…\htdocs\cms\wp-includes\class-wp-hook.php
310
3
WP_Hook
do_action
…\htdocs\cms\wp-includes\plugin.php
453
2
do_action
…\htdocs\cms\wp-includes\template-loader.php
12
1
require_once
…\htdocs\cms\wp-blog-header.php
19
0
require
…\htdocs\index.php
11
C:\Program Files\Apache Software Foundation\Apache2.4\htdocs\smokefree\htdocs\content\themes\who\resources\views\components\globals\downloads.twig
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\resources\admin\theme.php
    'Wholesale and retail trade; motor vehicles and motorcycle repair',
  ];
 
  return $sectors;
}
 
function get_business_sector_options() {
  $options = array_map(function($sector) {
    return "<option name=\"$sector\">$sector</option>";
  }, get_business_sectors());
  return implode('', $options);
}
 
function getReadableFileSize($file) {
  if ( !empty($file) ) {
    if ( is_array($file) && isset($file['id']) ) {
      $file = get_attached_file( $file['id'] );
    }
 
    return size_format( filesize($file) );
  }
 
  return FALSE;
}
 
function getSuccessStoriesDropDownData($pledge){
 
    $countries = get_countries();
    $pCountries = array();
    $pBusinessSector = array();
    $pBusinessSize = array();
 
    $successStoryData = array();
 
    $query_args = array(
      'posts_per_page' => -1,
      'post_type' => 'pledge',
    );
 
    $pledges = new WP_Query( $query_args );
Exception message: filesize(): stat failed for C:\WebSites\revolutionsmokefree\htdocs\content/uploads/2018/07/Booklet_JPN.pdf
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\resources\admin\theme.php
    'Wholesale and retail trade; motor vehicles and motorcycle repair',
  ];
 
  return $sectors;
}
 
function get_business_sector_options() {
  $options = array_map(function($sector) {
    return "<option name=\"$sector\">$sector</option>";
  }, get_business_sectors());
  return implode('', $options);
}
 
function getReadableFileSize($file) {
  if ( !empty($file) ) {
    if ( is_array($file) && isset($file['id']) ) {
      $file = get_attached_file( $file['id'] );
    }
 
    return size_format( filesize($file) );
  }
 
  return FALSE;
}
 
function getSuccessStoriesDropDownData($pledge){
 
    $countries = get_countries();
    $pCountries = array();
    $pBusinessSector = array();
    $pBusinessSize = array();
 
    $successStoryData = array();
 
    $query_args = array(
      'posts_per_page' => -1,
      'post_type' => 'pledge',
    );
 
    $pledges = new WP_Query( $query_args );
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Extensions\ThemosisTwigExtension.php
    {
        return [
            'fn' => $this,
            'Form' => $this->container['form'],
        ];
    }
 
    /**
     * Allow developers to call core php and WordPress functions
     * using the `fn` namespace inside their templates.
     * Linked to the global call only...
     *
     * @param string $name
     * @param array  $arguments
     *
     * @return mixed
     */
    public function __call($name, array $arguments)
    {
        return call_user_func_array($name, $arguments);
    }
 
    /**
     * Register a list of functions available into Twig templates.
     * 
     * @return array|\Twig_SimpleFunction[]
     */
    public function getFunctions()
    {
        return [
            /*
             * WordPress theme functions.
             */
            new Twig_SimpleFunction('wp_head', 'wp_head'),
            new Twig_SimpleFunction('wp_footer', 'wp_footer'),
            new Twig_SimpleFunction('body_class', function ($class = '') {
                return body_class($class);
            }),
            new Twig_SimpleFunction('post_class', function ($class = '', $id = null) {
                return post_class($class, $id);
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Extensions\ThemosisTwigExtension.php
    {
        return [
            'fn' => $this,
            'Form' => $this->container['form'],
        ];
    }
 
    /**
     * Allow developers to call core php and WordPress functions
     * using the `fn` namespace inside their templates.
     * Linked to the global call only...
     *
     * @param string $name
     * @param array  $arguments
     *
     * @return mixed
     */
    public function __call($name, array $arguments)
    {
        return call_user_func_array($name, $arguments);
    }
 
    /**
     * Register a list of functions available into Twig templates.
     * 
     * @return array|\Twig_SimpleFunction[]
     */
    public function getFunctions()
    {
        return [
            /*
             * WordPress theme functions.
             */
            new Twig_SimpleFunction('wp_head', 'wp_head'),
            new Twig_SimpleFunction('wp_footer', 'wp_footer'),
            new Twig_SimpleFunction('body_class', function ($class = '') {
                return body_class($class);
            }),
            new Twig_SimpleFunction('post_class', function ($class = '', $id = null) {
                return post_class($class, $id);
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
            }
 
            throw new Twig_Error_Runtime(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
        }
 
        if ($isDefinedTest) {
            return true;
        }
 
        if ($this->env->hasExtension('Twig_Extension_Sandbox')) {
            $this->env->getExtension('Twig_Extension_Sandbox')->checkMethodAllowed($object, $method);
        }
 
        // Some objects throw exceptions when they have __call, and the method we try
        // to call is not supported. If ignoreStrictCheck is true, we should return null.
        try {
            if (!$arguments) {
                $ret = $object->$method();
            } else {
                $ret = call_user_func_array(array($object, $method), $arguments);
            }
        } catch (BadMethodCallException $e) {
            if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
                return;
            }
            throw $e;
        }
 
        // @deprecated in 1.28
        if ($object instanceof Twig_TemplateInterface) {
            $self = $object->getTemplateName() === $this->getTemplateName();
            $message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
            if ('renderBlock' === $method || 'displayBlock' === $method) {
                $message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('hasBlock' === $method) {
                $message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('render' === $method || 'display' === $method) {
                $message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
            }
            @trigger_error($message, E_USER_DEPRECATED);
C:\WebSites\revolutionsmokefree\storage\twig\03\03d77fac62a1dc43eda2f8c6621263c14a6b01da00cf2b180c1e8d443859045c.php
            echo "<span>";
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()), "html", null, true);
            echo "</span>";
            echo $context["icons"]->getget("download");
            echo "</div>
                    <div class=\"downloads__item__content js-downloads-content\">
                      <h4 class=\"downloads__item__title [ body--sm ]\">";
            // line 63
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "title", array()), "html", null, true);
            echo "</h4>
                      <div class=\"downloads__item__description [ body--sm ]\">";
            // line 64
            echo $this->getAttribute($context["item"], "description", array());
            echo "</div>
                      ";
            // line 65
            $context["download_url"] = (($this->getAttribute($this->getAttribute($context["item"], "download", array()), "is_external_link", array())) ? ($this->getAttribute($this->getAttribute($context["item"], "download", array()), "external_url", array())) : ($this->getAttribute($this->getAttribute($this->getAttribute($context["item"], "download", array()), "file", array()), "url", array())));
            // line 66
            echo "                      ";
            $context["download_size"] = (($this->getAttribute($this->getAttribute($context["item"], "download", array()), "is_external_link", array())) ? ($this->getAttribute($this->getAttribute($context["item"], "download", array()), "file_size", array())) : ($this->getAttribute(($context["fn"] ?? null), "getReadableFileSize", array(0 => $this->getAttribute($this->getAttribute($context["item"], "download", array()), "file", array())), "method")));
            // line 67
            echo "                      ";
            if ( !twig_test_empty(($context["download_url"] ?? null))) {
                // line 68
                echo "<a href=\"";
                echo twig_escape_filter($this->env, ($context["download_url"] ?? null), "html", null, true);
                echo "\" class=\"downloads__item__link [ link ]\" data-filename=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()), "html", null, true);
                echo "\" data-fileurl=\"";
                echo twig_escape_filter($this->env, ($context["download_url"] ?? null), "html", null, true);
                echo "\" download>
                          ";
                // line 69
                echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('__')->getCallable(), array("Download this file", twig_constant("THEME_TEXTDOMAIN"))), "html", null, true);
                echo "
                          <span class=\"downloads__item__size\">";
                // line 70
                echo twig_escape_filter($this->env, ($context["download_size"] ?? null), "html", null, true);
                echo "</span>
                        </a>";
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
C:\WebSites\revolutionsmokefree\storage\twig\69\6901fca62a36b12c73eb3b4e5221537b401b1c9409e21929e20b4619e1cd604d.php
<?php
 
/* components/global-module.twig */
class __TwigTemplate_b2f9dad23ff2237420d60f6ee5d65b16d60189f7e027089270e1131b83f1c4e6 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);
 
        $this->parent = false;
 
        $this->blocks = array(
        );
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        $this->loadTemplate((("components/globals/" . twig_replace_filter($this->getAttribute(($context["module"] ?? null), "type", array()), array("_" => "-"))) . ".twig"), "components/global-module.twig", 1)->display(array_merge($context, $this->getAttribute(($context["module"] ?? null), "fields", array())));
    }
 
    public function getTemplateName()
    {
        return "components/global-module.twig";
    }
 
    public function isTraitable()
    {
        return false;
    }
 
    public function getDebugInfo()
    {
        return array (  19 => 1,);
    }
 
    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
C:\WebSites\revolutionsmokefree\storage\twig\ba\baa95f0b2236e2af1dee848c458b7fa9eb7b2a4c3d00d13e348323ca235513da.php
                    // line 24
                    echo "      ";
                    $context["file"] = ("content-list/" . ($context["file"] ?? null));
                    // line 25
                    echo "    ";
                } elseif (($this->getAttribute($context["module"], "name", array()) == "online_guide")) {
                    // line 26
                    echo "      ";
                    $context["file"] = ("online-guide/" . ($context["file"] ?? null));
                    // line 27
                    echo "    ";
                }
                // line 28
                echo "    ";
                $context["fields"] = twig_array_merge($this->getAttribute($context["module"], "fields", array()), array("module_index" => $this->getAttribute(                // line 29
$context["loop"], "index", array()), "has_page_hero" =>  !twig_test_empty(                // line 30
($context["hero"] ?? null))));
                // line 32
                echo "    ";
                $this->loadTemplate(("components/" . ($context["file"] ?? null)), "page.twig", 32)->display(($context["fields"] ?? null));
                // line 33
                echo "  ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }
 
    public function getTemplateName()
    {
        return "page.twig";
    }
 
    public function isTraitable()
    {
        return false;
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new LogicException('A block must be a method on a Twig_Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Twig_Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for Twig_Error_Loader exceptions
                // see Twig_Error_Loader
                if (false === $e->getTemplateLine()) {
                    $e->setTemplateLine(-1);
                    $e->guess();
                }
 
                throw $e;
            } catch (Exception $e) {
                throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
        } else {
            @trigger_error(sprintf('Silent display of undefined block "%s" in template "%s" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block(\'%s\') is defined" expression to test for block existence.', $name, $this->getTemplateName(), $name), E_USER_DEPRECATED);
C:\WebSites\revolutionsmokefree\storage\twig\cb\cb3db808a556ac9c0c7a9da4bfb85af8305126f6d4db6bcbdf2952a874616c32.php
  <div class=\"sticky-container\">
    ";
        // line 12
        $this->displayBlock('header', $context, $blocks);
        // line 15
        echo "    ";
        $this->loadTemplate("components/nav-overlay.twig", "base.twig", 15)->display($context);
        // line 16
        echo "
    <div class=\"wrapper\">
        ";
        // line 24
        echo "      ";
        $this->displayBlock('hero', $context, $blocks);
        // line 25
        echo "      ";
        $this->displayBlock('content', $context, $blocks);
        // line 26
        echo "      ";
        $this->displayBlock('modules', $context, $blocks);
        echo " 
    </div>
  </div>
 
  ";
        // line 31
        $this->loadTemplate("components/cookie-notification.twig", "base.twig", 31)->display(array("title" => $this->getAttribute(        // line 32
($context["fn"] ?? null), "get_field", array(0 => "cookie_title", 1 => "option"), "method"), "description" => $this->getAttribute(        // line 33
($context["fn"] ?? null), "get_field", array(0 => "cookie_description", 1 => "option"), "method"), "cta_label" => $this->getAttribute(        // line 34
($context["fn"] ?? null), "get_field", array(0 => "cookie_cta_label", 1 => "option"), "method"), "cta_decline" => $this->getAttribute(        // line 35
($context["fn"] ?? null), "get_field", array(0 => "cookie_cta_decline_link", 1 => "option"), "method")));
        // line 38
        echo "
    <section class=\"cookie-notification js-module\">
    <section class=\"cookie-notification__container\">
      <h2 class=\"cookie-notification__title heading-5\">This site uses cookies</h2>
      <p class=\"cookie-notification__description body-text\">We use cookies on this site to lorem ipsum dolor sit amet. By agreeing, you are consenting to our use of cookies. <a class=\"cookie-notification__learn\" href=\"#0\">Learn more about cookies.</a></p>
      
      <a class=\"cookie-notification__button button button--secondary\" href=\"#0\">I Agree</a>
      <a class=\"cookie-notification__link body-text\" href=\"#0\">No, I want to learn more</a>  
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
C:\WebSites\revolutionsmokefree\storage\twig\ba\baa95f0b2236e2af1dee848c458b7fa9eb7b2a4c3d00d13e348323ca235513da.php
    {
        parent::__construct($env);
 
        // line 1
        $this->parent = $this->loadTemplate("base.twig", "page.twig", 1);
        $this->blocks = array(
            'header' => array($this, 'block_header'),
            'hero' => array($this, 'block_hero'),
            'modules' => array($this, 'block_modules'),
        );
    }
 
    protected function doGetParent(array $context)
    {
        return "base.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_header($context, array $blocks = array())
    {
        // line 4
        echo "  
  ";
        // line 5
        if ($this->getAttribute(($context["fn"] ?? null), "is_page", array(0 => 493), "method")) {
            // line 6
            echo "    ";
            // line 7
            echo "  ";
        }
        // line 8
        echo "
  ";
        // line 9
        $context["theme"] = ((( !twig_test_empty(($context["hero"] ?? null)) &&  !$this->getAttribute(($context["fn"] ?? null), "is_front_page", array(), "method"))) ? ("light") : (""));
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for Twig_Error_Loader exceptions
            // see Twig_Error_Loader
            if (false === $e->getTemplateLine()) {
                $e->setTemplateLine(-1);
                $e->guess();
            }
 
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
        }
    }
 
    /**
     * Auto-generated method to display the template with the given context.
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\twig\twig\lib\Twig\Template.php
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\twig\twig\lib\Twig\Environment.php
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function render($name, array $context = array())
    {
        return $this->loadTemplate($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function display($name, array $context = array())
    {
        $this->loadTemplate($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\src\Themosis\View\Engines\TwigEngine.php
    }
 
    /**
     * Return the evaluated template.
     *
     * @param string $path The file name with its file extension.
     * @param array  $data Template data (view data)
     *
     * @return string
     */
    public function get($path, array $data = [])
    {
        $file = array_search($path, $this->finder->getViews());
 
        /*
         * Allow the use of a '.' notation.
         */
        $file = themosis_convert_path($file);
 
        return $this->environment->render($file.$this->extension, $data);
    }
}
 
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\view\View.php
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\view\View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\view\View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\src\Themosis\helpers.php
 
if (!function_exists('view')) {
    /**
     * Helper function to build views.
     *
     * @param string $view      The view relative path, name.
     * @param array  $data      Passed data.
     * @param array  $mergeData
     *
     * @return string
     */
    function view($view = null, array $data = [], array $mergeData = [])
    {
        $factory = container('view');
 
        if (func_num_args() === 0) {
            return $factory;
        }
 
        return $factory->make($view, $data, $mergeData)->render();
    }
}
 
if (!function_exists('meta')) {
    /**
     * Helper function to get any meta data from objects.
     *
     * @param string $key
     * @param int    $id
     * @param string $context
     * @param bool   $single
     *
     * @return mixed|string
     */
    function meta($key = '', $id = null, $context = 'post', $single = true)
    {
        if (is_null($id)) {
            $id = get_the_ID();
        }
 
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\resources\controllers\PagesController.php
    $modules = $page->getModules($post);
      
    $firstModule = current($modules);
    if ( !empty($hero) ) {
      $hero['include_pattern'] = !is_front_page() && in_array($firstModule['name'], ['content_block']);
    }
 
    $with = [
      'pledge_url' => $page->getPledgePage() ? get_permalink( $page->getPledgePage() ) : '#subscribe',
      'hero' => $hero,
      'modules' => $modules,
      'video_mp4' => get_template_directory_uri()."/dist/video/event-video.mp4",
      'video_webm' => get_template_directory_uri()."/dist/video/event-video.webm",
      'video_ogg' => get_template_directory_uri()."/dist/video/event-video.ogg",
      'video_poster' => get_template_directory_uri()."/dist/video/video-placeholder.jpg"      
    ];
 
    
 
    return view('page', $with);
  }
 
}
 
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\routing\Controller.php
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\routing\Controller.php
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\routing\ControllerDispatcher.php
    {
        $this->container = $container;
    }
 
    /**
     * Dispatch a request to a given controller and method.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  mixed  $controller
     * @param  string  $method
     * @return mixed
     */
    public function dispatch(Route $route, $controller, $method)
    {
        $parameters = $this->resolveClassMethodDependencies(
            $route->parametersWithoutNulls(), $controller, $method
        );
 
        if (method_exists($controller, 'callAction')) {
            return $controller->callAction($method, $parameters);
        }
 
        return $controller->{$method}(...array_values($parameters));
    }
 
    /**
     * Get the middleware for the controller instance.
     *
     * @param  \Illuminate\Routing\Controller  $controller
     * @param  string  $method
     * @return array
     */
    public function getMiddleware($controller, $method)
    {
        if (! method_exists($controller, 'getMiddleware')) {
            return [];
        }
 
        return collect($controller->getMiddleware())->reject(function ($data) use ($method) {
            return static::methodExcludedByOptions($method, $data['options']);
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Route.php
    protected function runCallable()
    {
        $callable = $this->action['uses'];
 
        return $callable(...array_values($this->resolveMethodDependencies(
            $this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses'])
        )));
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    protected function runController()
    {
        return $this->controllerDispatcher()->dispatch(
            $this, $this->getController(), $this->getControllerMethod()
        );
    }
 
    /**
     * Get the controller instance for the route.
     *
     * @return mixed
     */
    public function getController()
    {
        if (! $this->controller) {
            $class = $this->parseControllerCallback()[0];
 
            $this->controller = $this->container->make(ltrim($class, '\\'));
        }
 
        return $this->controller;
    }
 
    /**
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Route.php
     *
     * @throws \UnexpectedValueException
     */
    protected function parseAction($action)
    {
        return RouteAction::parse($this->uri, $action);
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     */
    public function run()
    {
        $this->container = $this->container ?: new Container;
 
        try {
            if ($this->isControllerAction()) {
                return $this->runController();
            }
 
            return $this->runCallable();
        } catch (HttpResponseException $e) {
            return $e->getResponse();
        }
    }
 
    /**
     * Checks whether the route's action is a controller.
     *
     * @return bool
     */
    protected function isControllerAction()
    {
        return is_string($this->action['uses']);
    }
 
    /**
     * Run the route action and return the response.
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\routing\Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
 
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
C:\WebSites\revolutionsmokefree\htdocs\content\themes\who\vendor\illuminate\pipeline\Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            return $destination($passable);
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
     * Sort the given middleware by priority.
     *
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Routing\Route  $route
     * @return mixed
     */
    protected function runRoute(Request $request, Route $route)
    {
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
 
        return $this->prepareResponse($request,
            $this->runRouteWithinStack($route, $request)
        );
    }
 
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
    {
        $this->current = $route = $this->routes->match($request);
 
        $this->container->instance(Route::class, $route);
 
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\vendor\illuminate\routing\Router.php
     * @return mixed
     */
    public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);
 
        return $this->runRoute($this->currentRequest, $route);
    }
 
    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
C:\WebSites\revolutionsmokefree\htdocs\content\mu-plugins\themosis-framework\themosis.php
             * Register framework assets.
             */
            $this->container['asset']->add('themosis-core-styles', 'css/_themosisCore.css', ['wp-color-picker'])->to('admin');
            $this->container['asset']->add('themosis-core-scripts', 'js/_themosisCore.js', ['jquery', 'jquery-ui-sortable', 'underscore', 'backbone', 'mce-view', 'wp-color-picker'], '1.3.0', true)->to('admin');
        }
 
        /**
         * Hook into front-end routing.
         * Setup the router API to be executed before
         * theme default templates.
         */
        public function setRouter()
        {
            if (is_feed() || is_comment_feed()) {
                return;
            }
 
            try {
                $request = $this->container['request'];
                $response = $this->container['router']->dispatch($request);
 
                // We only send back the content because, headers are already defined
                // by WordPress internals.
                $response->sendContent();
            } catch (\Symfony\Component\HttpKernel\Exception\NotFoundHttpException $exception) {
                /*
                 * Fallback to WordPress templates.
                 */
            }
        }
 
        /**
         * Enqueue Admin scripts.
         */
        public function adminEnqueueScripts()
        {
            /*
             * Make sure the media scripts are always enqueued.
             */
            wp_enqueue_media();
C:\WebSites\revolutionsmokefree\htdocs\cms\wp-includes\class-wp-hook.php
        }
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if( ! $this->doing_action ) {
                    $args[ 0 ] = $value;
                }
 
                // Avoid the array_slice if possible.
                if ( $the_['accepted_args'] == 0 ) {
                    $value = call_user_func_array( $the_['function'], array() );
                } 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, (int)$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;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
C:\WebSites\revolutionsmokefree\htdocs\cms\wp-includes\class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
C:\WebSites\revolutionsmokefree\htdocs\cms\wp-includes\plugin.php
    }
 
    if ( !isset($wp_filter[$tag]) ) {
        if ( isset($wp_filter['all']) )
            array_pop($wp_current_filter);
        return;
    }
 
    if ( !isset($wp_filter['all']) )
        $wp_current_filter[] = $tag;
 
    $args = array();
    if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
        $args[] =& $arg[0];
    else
        $args[] = $arg;
    for ( $a = 2, $num = func_num_args(); $a < $num; $a++ )
        $args[] = func_get_arg($a);
 
    $wp_filter[ $tag ]->do_action( $args );
 
    array_pop($wp_current_filter);
}
 
/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
 * @global array $wp_actions Increments the amount of times action was triggered.
 *
 * @param string $tag The name of the action hook.
 * @return int The number of times action hook $tag is fired.
 */
function did_action($tag) {
    global $wp_actions;
 
    if ( ! isset( $wp_actions[ $tag ] ) )
        return 0;
 
C:\WebSites\revolutionsmokefree\htdocs\cms\wp-includes\template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 * @package WordPress
 */
if ( defined('WP_USE_THEMES') && WP_USE_THEMES )
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
 
/**
 * Filters whether to allow 'HEAD' requests to generate content.
 *
 * Provides a significant performance bump by exiting before the page
 * content loads for 'HEAD' requests. See #14348.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) )
    exit();
 
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) :
    /**
     * Fired when the template loader determines a robots.txt request.
     *
     * @since 2.1.0
     */
    do_action( 'do_robots' );
    return;
elseif ( is_feed() ) :
    do_feed();
    return;
elseif ( is_trackback() ) :
    include( ABSPATH . 'wp-trackback.php' );
C:\WebSites\revolutionsmokefree\htdocs\cms\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( dirname(__FILE__) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
C:\WebSites\revolutionsmokefree\htdocs\index.php
<?php
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);
 
/** Loads the WordPress Environment and Template */
require dirname(__FILE__).'/cms/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
Key Value
_icl_current_language ja
empty
Key Value
SERVER_SOFTWARE Apache/2.4.4 (Win64) OpenSSL/1.0.1e PHP/5.4.15 PHP/7.2.6 mod_fcgid/2.3.9
REQUEST_URI /revolutionsmokefree/ja/resources/
PATH C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;
SYSTEMROOT C:\\Windows
COMSPEC C:\\Windows\\system32\\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\\Windows
PHPRC C:\\Program Files\\Php\\7.2
_FCGI_SHUTDOWN_EVENT_ 2868
HTTP_CONNECTION close
SCRIPT_NAME /revolutionsmokefree/htdocs/index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /revolutionsmokefree/index.php
REMOTE_PORT 51110
SCRIPT_FILENAME C:/WebSites/revolutionsmokefree/htdocs/index.php
SERVER_ADMIN salcedom@who.int
CONTEXT_DOCUMENT_ROOT C:/WebSites
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT C:/WebSites
REMOTE_ADDR 10.25.2.40
SERVER_PORT 443
SERVER_ADDR 10.24.0.220
SERVER_NAME web.wpro.who.int
SERVER_SIGNATURE
SystemRoot C:\\Windows
HTTP_X_FORWARDED_FOR 3.234.214.113
HTTP_X_FORWARDED_PROTO https, https
HTTP_ACCEPT_ENCODING gzip
HTTP_HOST web.wpro.who.int
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTPS on
SCRIPT_URI https://web.wpro.who.int/revolutionsmokefree/ja/resources/
SCRIPT_URL /revolutionsmokefree/ja/resources/
REDIRECT_STATUS 200
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URI https://web.wpro.who.int/revolutionsmokefree/ja/resources/
REDIRECT_SCRIPT_URL /revolutionsmokefree/ja/resources/
REDIRECT_REDIRECT_STATUS 200
REDIRECT_REDIRECT_HTTPS on
REDIRECT_REDIRECT_SCRIPT_URI https://web.wpro.who.int/revolutionsmokefree/ja/resources/
REDIRECT_REDIRECT_SCRIPT_URL /revolutionsmokefree/ja/resources/
REDIRECT_REDIRECT_REDIRECT_STATUS 200
REDIRECT_REDIRECT_REDIRECT_HTTPS on
REDIRECT_REDIRECT_REDIRECT_SCRIPT_URI https://web.wpro.who.int/revolutionsmokefree/ja/resources/
REDIRECT_REDIRECT_REDIRECT_SCRIPT_URL /revolutionsmokefree/ja/resources/
FCGI_ROLE RESPONDER
PHP_SELF /revolutionsmokefree/htdocs/index.php
REQUEST_TIME_FLOAT 1576054857.6123
REQUEST_TIME 1576054857
DB_NAME smokefree
DB_USER sfree_user
DB_PASSWORD a7wg458bTS
DB_HOST 127.0.0.1
WP_HOME http://web.wpro.who.int/revolutionsmokefree
WP_SITEURL http://web.wpro.who.int/revolutionsmokefree/cms
Key Value
DB_NAME smokefree
DB_USER sfree_user
DB_PASSWORD a7wg458bTS
DB_HOST 127.0.0.1
WP_HOME http://web.wpro.who.int/revolutionsmokefree
WP_SITEURL http://web.wpro.who.int/revolutionsmokefree/cms
0. Whoops\Handler\PrettyPageHandler