Whoops \ Exception \ ErrorException (E_WARNING)
Invalid argument supplied for foreach() Whoops\Exception\ErrorException thrown with message "Invalid argument supplied for foreach()" Stacktrace: #35 Whoops\Exception\ErrorException in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/src/Models/Touchpoint.php:44 #34 Whoops\Run:handleError in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/src/Models/Touchpoint.php:44 #33 Concrete\Package\ContentMarketingCloud\Src\Models\Touchpoint:renderTemplate in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/blocks/touchpoint_viewer/templates/minify.php:20 #32 include in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Block/View/BlockView.php:257 #31 Concrete\Core\Block\View\BlockView:renderViewContents in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/AbstractView.php:151 #30 Concrete\Core\View\AbstractView:render in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Entity/Block/BlockType/BlockType.php:414 #29 Concrete\Core\Entity\Block\BlockType\BlockType:render in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/elements/snippets/bestnextaction.php:37 #28 include in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/View.php:378 #27 Concrete\Core\View\View:element in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/blocks/article_viewer/view.php:235 #26 include in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Block/View/BlockView.php:257 #25 Concrete\Core\Block\View\BlockView:renderViewContents in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/AbstractView.php:151 #24 Concrete\Core\View\AbstractView:render in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Area/Area.php:873 #23 Concrete\Core\Area\Area:display in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/application/themes/oasis/3_post.php:17 #22 include in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/View.php:215 #21 Concrete\Core\View\View:renderViewContents in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/AbstractView.php:151 #20 Concrete\Core\View\AbstractView:render in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/ResponseFactory.php:153 #19 Concrete\Core\Http\ResponseFactory:view in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/ResponseFactory.php:216 #18 Concrete\Core\Http\ResponseFactory:controller in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/ResponseFactory.php:372 #17 Concrete\Core\Http\ResponseFactory:collection in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Routing/DispatcherRouteCallback.php:41 #16 Concrete\Core\Routing\DispatcherRouteCallback:execute in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/DefaultDispatcher.php:115 #15 Concrete\Core\Http\DefaultDispatcher:handleDispatch in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/DefaultDispatcher.php:53 #14 Concrete\Core\Http\DefaultDispatcher:dispatch in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/DispatcherDelegate.php:39 #13 Concrete\Core\Http\Middleware\DispatcherDelegate:next in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/ThumbnailMiddleware.php:61 #12 Concrete\Core\Http\Middleware\ThumbnailMiddleware:process in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareDelegate.php:38 #11 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/FrameOptionsMiddleware.php:39 #10 Concrete\Core\Http\Middleware\FrameOptionsMiddleware:process in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareDelegate.php:38 #9 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/CookieMiddleware.php:37 #8 Concrete\Core\Http\Middleware\CookieMiddleware:process in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareDelegate.php:38 #7 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/ApplicationMiddleware.php:29 #6 Concrete\Core\Http\Middleware\ApplicationMiddleware:process in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareDelegate.php:38 #5 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareStack.php:86 #4 Concrete\Core\Http\Middleware\MiddlewareStack:process in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/DefaultServer.php:85 #3 Concrete\Core\Http\DefaultServer:handleRequest in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Foundation/Runtime/Run/DefaultRunner.php:100 #2 Concrete\Core\Foundation\Runtime\Run\DefaultRunner:run in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Foundation/Runtime/DefaultRuntime.php:102 #1 Concrete\Core\Foundation\Runtime\DefaultRuntime:run in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/dispatcher.php:39 #0 require in /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/index.php:3
Stack frames (36):
35 Whoops\Exception\ErrorException
/­var/­www/­vhosts/­ns3038629.ip-51-255-84.eu/­eu.oasiscenter.www/­packages/­content_marketing_cloud/­src/­Models/­Touchpoint.php44
34 Whoops\Run handleError
/­var/­www/­vhosts/­ns3038629.ip-51-255-84.eu/­eu.oasiscenter.www/­packages/­content_marketing_cloud/­src/­Models/­Touchpoint.php44
33 Concrete\Package\ContentMarketingCloud\Src\Models\Touchpoint renderTemplate
/­var/­www/­vhosts/­ns3038629.ip-51-255-84.eu/­eu.oasiscenter.www/­packages/­content_marketing_cloud/­blocks/­touchpoint_viewer/­templates/­minify.php20
32 include
…/­src/­Block/­View/­BlockView.php257
31 Concrete\Core\Block\View\BlockView renderViewContents
…/­src/­View/­AbstractView.php151
30 Concrete\Core\View\AbstractView render
…/­src/­Entity/­Block/­BlockType/­BlockType.php414
29 Concrete\Core\Entity\Block\BlockType\BlockType render
/­var/­www/­vhosts/­ns3038629.ip-51-255-84.eu/­eu.oasiscenter.www/­packages/­content_marketing_cloud/­elements/­snippets/­bestnextaction.php37
28 include
…/­src/­View/­View.php378
27 Concrete\Core\View\View element
/­var/­www/­vhosts/­ns3038629.ip-51-255-84.eu/­eu.oasiscenter.www/­packages/­content_marketing_cloud/­blocks/­article_viewer/­view.php235
26 include
…/­src/­Block/­View/­BlockView.php257
25 Concrete\Core\Block\View\BlockView renderViewContents
…/­src/­View/­AbstractView.php151
24 Concrete\Core\View\AbstractView render
…/­src/­Area/­Area.php873
23 Concrete\Core\Area\Area display
/­var/­www/­vhosts/­ns3038629.ip-51-255-84.eu/­eu.oasiscenter.www/­application/­themes/­oasis/­3_post.php17
22 include
…/­src/­View/­View.php215
21 Concrete\Core\View\View renderViewContents
…/­src/­View/­AbstractView.php151
20 Concrete\Core\View\AbstractView render
…/­src/­Http/­ResponseFactory.php153
19 Concrete\Core\Http\ResponseFactory view
…/­src/­Http/­ResponseFactory.php216
18 Concrete\Core\Http\ResponseFactory controller
…/­src/­Http/­ResponseFactory.php372
17 Concrete\Core\Http\ResponseFactory collection
…/­src/­Routing/­DispatcherRouteCallback.php41
16 Concrete\Core\Routing\DispatcherRouteCallback execute
…/­src/­Http/­DefaultDispatcher.php115
15 Concrete\Core\Http\DefaultDispatcher handleDispatch
…/­src/­Http/­DefaultDispatcher.php53
14 Concrete\Core\Http\DefaultDispatcher dispatch
…/­src/­Http/­Middleware/­DispatcherDelegate.php39
13 Concrete\Core\Http\Middleware\DispatcherDelegate next
…/­src/­Http/­Middleware/­ThumbnailMiddleware.php61
12 Concrete\Core\Http\Middleware\ThumbnailMiddleware process
…/­src/­Http/­Middleware/­MiddlewareDelegate.php38
11 Concrete\Core\Http\Middleware\MiddlewareDelegate next
…/­src/­Http/­Middleware/­FrameOptionsMiddleware.php39
10 Concrete\Core\Http\Middleware\FrameOptionsMiddleware process
…/­src/­Http/­Middleware/­MiddlewareDelegate.php38
9 Concrete\Core\Http\Middleware\MiddlewareDelegate next
…/­src/­Http/­Middleware/­CookieMiddleware.php37
8 Concrete\Core\Http\Middleware\CookieMiddleware process
…/­src/­Http/­Middleware/­MiddlewareDelegate.php38
7 Concrete\Core\Http\Middleware\MiddlewareDelegate next
…/­src/­Http/­Middleware/­ApplicationMiddleware.php29
6 Concrete\Core\Http\Middleware\ApplicationMiddleware process
…/­src/­Http/­Middleware/­MiddlewareDelegate.php38
5 Concrete\Core\Http\Middleware\MiddlewareDelegate next
…/­src/­Http/­Middleware/­MiddlewareStack.php86
4 Concrete\Core\Http\Middleware\MiddlewareStack process
…/­src/­Http/­DefaultServer.php85
3 Concrete\Core\Http\DefaultServer handleRequest
…/­src/­Foundation/­Runtime/­Run/­DefaultRunner.php100
2 Concrete\Core\Foundation\Runtime\Run\DefaultRunner run
…/­src/­Foundation/­Runtime/­DefaultRuntime.php102
1 Concrete\Core\Foundation\Runtime\DefaultRuntime run
…/­dispatcher.php39
0 require
/­var/­www/­vhosts/­ns3038629.ip-51-255-84.eu/­eu.oasiscenter.www/­index.php3
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/src/Models/Touchpoint.php
            $formclass = '';
            if (isset($touchpoint)) {
                $formclass = ' touchpoint_' . $touchpoint->id;
                $buttonclass = ' button_' . $touchpoint->id;
            }
            $html = '<form action="' . $action . '" method="POST" enctype="multipart/form-data" class="touchpoint'.$formclass.'">';
            
            if(isset($exclude_fields)){
                $exclude_arr = $exclude_fields;
                foreach($json_en as $key => $single){
                    foreach($exclude_arr as $singlefield){
                        if($single->name === $singlefield){
                            unset($json_en[$key]);
                        }
                    }
                }
            }
            
            if (count($json_en) > 0) {
                foreach ($json_en as $single) {
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/src/Models/Touchpoint.php
            $formclass = '';
            if (isset($touchpoint)) {
                $formclass = ' touchpoint_' . $touchpoint->id;
                $buttonclass = ' button_' . $touchpoint->id;
            }
            $html = '<form action="' . $action . '" method="POST" enctype="multipart/form-data" class="touchpoint'.$formclass.'">';
            
            if(isset($exclude_fields)){
                $exclude_arr = $exclude_fields;
                foreach($json_en as $key => $single){
                    foreach($exclude_arr as $singlefield){
                        if($single->name === $singlefield){
                            unset($json_en[$key]);
                        }
                    }
                }
            }
            
            if (count($json_en) > 0) {
                foreach ($json_en as $single) {
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/blocks/touchpoint_viewer/templates/minify.php
    $article = $ac->getByPageID($objPage->cID);
    
    if(isset($_POST['tp_'.$item->id])){
        $l = new LeadController();
        $add = $l->save($_POST, $item, $article);
    }
    $exclude_fields = array('firstname', 'lastname', 'role', 'city', 'province', 'state', 'language');
    
    $tp = new Touchpoint();
    $html = $tp->renderTemplate($item->form, $class = 'input-lg', $action = '#', $lang, $item, $add, $exclude_fields);
    echo $html;
    
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Block/View/BlockView.php
            $this->controller->outputAutoHeaderItems();
        }
    }
 
    public function renderViewContents($scopeItems)
    {
        extract($scopeItems);
        if (!$this->outputContent) {
            ob_start();
            include $this->template;
            $this->outputContent = ob_get_contents();
            ob_end_clean();
        }
 
        // The translatable texts in the block header/footer need to be printed
        // out in the system language.
        $loc = Localization::getInstance();
        $loc->pushActiveContext('ui');
 
        if ($this->blockViewHeaderFile) {
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/AbstractView.php
    public function render($state = false)
    {
        if ($this instanceof View) {
            $this->setRequestInstance($this);
        }
        $this->start($state);
        $this->setupRender();
        $this->startRender();
        $scopeItems = $this->getScopeItems();
        $contents = $this->renderViewContents($scopeItems);
        $contents = $this->postProcessViewContents($contents);
        $response = $this->finishRender($contents);
        if ($this instanceof View) {
            $this->revertRequestInstance();
        }
 
        return $response;
    }
 
    public function renderViewContents($scopeItems)
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Entity/Block/BlockType/BlockType.php
 
    /**
     * Renders a particular view of a block type, using the public $controller variable as the block type's controller.
     *
     * @param string template 'view' for the default
     */
    public function render($view = 'view')
    {
        $bv = new BlockView($this);
        $bv->render($view);
    }
 
    /**
     * get's the block type controller.
     *
     * @return BlockTypeController
     */
    public function getController()
    {
        return $this->controller;
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/elements/snippets/bestnextaction.php
<?php   
}
?>
<div class="col-md-6 col-sm-6 left-cta">
    <div class="miniform">
        <p><?php echo t('Stay up to date: sign up for our <span>newsletter</span>'); ?></p>
        <?php
            $tpBlock = BlockType::getByHandle('touchpoint_viewer');
            $tpBlock->controller->touchpointID = '5a1e73b54555b5933de5d8a7';
            $tpBlock->render('templates/minify');
        ?>
    </div>
</div>
<div class="col-md-6 col-sm-6 right-cta">
    <div class="miniform left-text">
        <p><?php echo $label; ?></p>
        <a href="/<?php echo $language; ?>/<?php echo t('subscriptions'); ?>"><button style="<?php echo $style_button; ?>"><?php echo t('Subscribe'); ?></button></a>
    </div>
</div>

/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/View.php
            $collisions = array_intersect(['_file', '_pkgHandle'], array_keys($args));
            if ($collisions) {
                throw new \Exception(t("Illegal variable name '%s' in element args.", implode(', ', $collisions)));
            }
            $collisions = null;
            extract($args);
        }
        $view = self::getRequestInstance();
 
        include Environment::get()->getPath(DIRNAME_ELEMENTS.'/'.$_file.'.php', $_pkgHandle);
    }
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/packages/content_marketing_cloud/blocks/article_viewer/view.php
                                }
                            }
                            ?>
                        </div>
                            <?php
                            if ($category->handle !== 'abbonamenti') {
                            ?>       
                            <div class="row nextprevwrapp">
                            <?php
                            View::element('snippets/bestnextaction', array('item' => $item,'language' => $lang), 'content_marketing_cloud');
                            ?>
                            </div>
                        <?php } ?>
                    </div>
                    <div class="col-md-1 hidden-port"></div>
                    <div class="col-md-4 col-sm-12">
                        <?php
                        View::element('snippets/tags', array('item' => $item, 'language' => $lang), 'content_marketing_cloud');
                        View::element('snippets/side', array('item' => $item, 'language' => $lang), 'content_marketing_cloud');
                        ?>
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Block/View/BlockView.php
            $this->controller->outputAutoHeaderItems();
        }
    }
 
    public function renderViewContents($scopeItems)
    {
        extract($scopeItems);
        if (!$this->outputContent) {
            ob_start();
            include $this->template;
            $this->outputContent = ob_get_contents();
            ob_end_clean();
        }
 
        // The translatable texts in the block header/footer need to be printed
        // out in the system language.
        $loc = Localization::getInstance();
        $loc->pushActiveContext('ui');
 
        if ($this->blockViewHeaderFile) {
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/AbstractView.php
    public function render($state = false)
    {
        if ($this instanceof View) {
            $this->setRequestInstance($this);
        }
        $this->start($state);
        $this->setupRender();
        $this->startRender();
        $scopeItems = $this->getScopeItems();
        $contents = $this->renderViewContents($scopeItems);
        $contents = $this->postProcessViewContents($contents);
        $response = $this->finishRender($contents);
        if ($this instanceof View) {
            $this->revertRequestInstance();
        }
 
        return $response;
    }
 
    public function renderViewContents($scopeItems)
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Area/Area.php
 
        foreach ($blocksToDisplay as $b) {
            $bv = new BlockView($b);
            $bv->setAreaObject($this);
            $p = new Permissions($b);
            if ($p->canViewBlock()) {
                if (!$c->isEditMode()) {
                    echo $this->enclosingStart;
                }
                $bv->render('view');
                if (!$c->isEditMode()) {
                    echo $this->enclosingEnd;
                }
            }
        }
 
        $loc->pushActiveContext('ui');
        if ($this->showControls && $c->isEditMode() && $ap->canViewAreaControls()) {
            View::element('block_area_footer', array('a' => $this));
        } else {
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/application/themes/oasis/3_post.php
$item = new Article();
$item->getByPage($page->cID);
$tp = $this->getThemePath();

$this->inc('elements/header.php', array('template' => 'internal 3_post', 'item' => $item));
Loader::model('configuration/settings', 'content_marketing_cloud');


$a = new Area('main');
$a->display($c);

require_once $requirepath.'elements/footer.php';
?>
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/View.php
            ob_start();
            include $this->innerContentFile;
            $innerContent = ob_get_contents();
            ob_end_clean();
        }
 
        if (file_exists($this->template)) {
            ob_start();
            $this->onBeforeGetContents();
            include $this->template;
            $this->onAfterGetContents();
            $contents = ob_get_contents();
            ob_end_clean();
 
            return $contents;
        } else {
            return $innerContent;
        }
    }
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/View/AbstractView.php
    public function render($state = false)
    {
        if ($this instanceof View) {
            $this->setRequestInstance($this);
        }
        $this->start($state);
        $this->setupRender();
        $this->startRender();
        $scopeItems = $this->getScopeItems();
        $contents = $this->renderViewContents($scopeItems);
        $contents = $this->postProcessViewContents($contents);
        $response = $this->finishRender($contents);
        if ($this instanceof View) {
            $this->revertRequestInstance();
        }
 
        return $response;
    }
 
    public function renderViewContents($scopeItems)
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/ResponseFactory.php
     * @inheritdoc
     */
    public function view(View $view, $code = Response::HTTP_OK, $headers = array())
    {
        $changeContext = $this->shouldChangeContext();
        if ($changeContext) {
            $this->localization->pushActiveContext('site');
        }
 
        $contents = $view->render();
        if ($changeContext) {
            $this->localization->popActiveContext();
        }
 
        return $this->create($contents, $code, $headers);
    }
 
    /**
     * @inheritdoc
     */
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/ResponseFactory.php
            if ($md->isMobile()) {
                $mobileTheme = Theme::getByID(Config::get('concrete.misc.mobile_theme_id'));
                if ($mobileTheme instanceof Theme) {
                    $view->setViewTheme($mobileTheme);
                    $controller->setTheme($mobileTheme);
                }
            }
        }
 
        return $this->view($view, $code, $headers);
    }
 
    /**
     * @inheritdoc
     */
    public function collection(Collection $collection, $code = Response::HTTP_OK, $headers = array())
    {
        if (!$this->app) {
            throw new \RuntimeException('Cannot resolve collections without a reference to the application');
        }
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/ResponseFactory.php
        $item = new RelationListItem();
        $menu = $this->app->make('helper/concrete/ui/menu');
        $menu->addMenuItem($item);
 
        $controller = $collection->getPageController();
 
        // we update the current page with the one bound to this controller.
        $collection->setController($controller);
 
        return $this->controller($controller);
    }
 
    private function collectionNotFound(Collection $collection, Request $request, array $headers)
    {
        // if we don't have a path and we're doing cID, then this automatically fires a 404.
        if (!$request->getPath() && $request->get('cID')) {
            return $this->notFound('', Response::HTTP_NOT_FOUND, $headers);
        }
 
        // let's test to see if this is, in fact, the home page,
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Routing/DispatcherRouteCallback.php
    {
        parent::__construct($callback);
        $this->factory = $factory;
    }
 
    public function execute(Request $request, Route $route = null, $parameters = [])
    {
        // figure out where we need to go
        $c = Page::getFromRequest($request);
        return $this->factory->collection($c);
    }
 
    public static function getRouteAttributes($callback)
    {
        $callback = \Core::make(self::class, [$callback]);
        return ['callback' => $callback];
    }
 
    /**
     * @deprecated Use CollectionResponseFactory
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/DefaultDispatcher.php
        try {
            $request->attributes->add($matcher->match($path));
            $matched = $matcher->match($path);
            $route = $collection->get($matched['_route']);
 
            $this->router->setRequest($request);
            $response = $this->router->execute($route, $matched);
        } catch (ResourceNotFoundException $e) {
            $callback = $this->app->make(DispatcherRouteCallback::class, ['dispatcher']);
            $response = $callback->execute($request);
        }
 
        return $response;
    }
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/DefaultDispatcher.php
            substr($path, 0, 3) == '..\\' || substr($path, -3) == '\\..' || strpos($path, '\\..\\')) {
            throw new \RuntimeException(t('Invalid path traversal. Please make this request with a valid HTTP client.'));
        }
 
        $response = null;
        if ($this->app->isInstalled()) {
            $response = $this->getEarlyDispatchResponse();
        }
        if ($response === null) {
            $response = $this->handleDispatch($request);
        }
 
        return $response;
    }
 
    private function getEarlyDispatchResponse()
    {
        $session = $this->app['session'];
 
        if (!$session->has('uID')) {
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/DispatcherDelegate.php
 
    /**
     * Dispatch the next available middleware and return the response.
     *
     * @param Request $request
     * @return Response
     */
    public function next(Request $request)
    {
        return $this->dispatcher->dispatch($request);
    }
 
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/ThumbnailMiddleware.php
     * Process the request and return a response.
     *
     * @param \Symfony\Component\HttpFoundation\Request $request
     * @param DelegateInterface $frame
     *
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function process(Request $request, DelegateInterface $frame)
    {
        $response = $frame->next($request);
 
        if ($this->app->isInstalled()) {
            if ($response->getStatusCode() == 200) {
                /* @var Connection $database */
                try {
                    $database = $this->getConnection();
                } catch (\InvalidArgumentException $e) {
                    // Don't die here if there's no available database connection
                    $database = null;
                }
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareDelegate.php
 
    /**
     * Dispatch the next available middleware and return the response.
     *
     * @param Request $request
     * @return Response
     */
    public function next(Request $request)
    {
        return $this->middleware->process($request, $this->nextDelegate);
    }
 
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/FrameOptionsMiddleware.php
        $this->stringValidator = $stringValidator;
    }
 
    /**
     * @param \Concrete\Core\Http\Middleware\DelegateInterface $frame
     * @return Response
     */
    public function process(Request $request, DelegateInterface $frame)
    {
        $response = $frame->next($request);
 
        if ($response->headers->has('X-Frame-Options') === false) {
            $x_frame_options = $this->config->get('concrete.security.misc.x_frame_options');
            if ($this->stringValidator->notempty($x_frame_options)) {
                $response->headers->set('X-Frame-Options', $x_frame_options);
            }
        }
 
        return $response;
    }
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareDelegate.php
 
    /**
     * Dispatch the next available middleware and return the response.
     *
     * @param Request $request
     * @return Response
     */
    public function next(Request $request)
    {
        return $this->middleware->process($request, $this->nextDelegate);
    }
 
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/CookieMiddleware.php
     * @param Request $request
     * @param \Concrete\Core\Http\Middleware\DelegateInterface $frame
     * @return Response
     */
    public function process(Request $request, DelegateInterface $frame)
    {
        $this->cookies->setRequest($request);
 
        /** @var Response $response */
        $response = $frame->next($request);
 
        $cleared = $this->cookies->getClearedCookies();
        foreach ($cleared as $cookie) {
            $response->headers->clearCookie($cookie);
        }
 
        $cookies = $this->cookies->getCookies();
        foreach ($cookies as $cookie) {
            $response->headers->setCookie($cookie);
        }
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareDelegate.php
 
    /**
     * Dispatch the next available middleware and return the response.
     *
     * @param Request $request
     * @return Response
     */
    public function next(Request $request)
    {
        return $this->middleware->process($request, $this->nextDelegate);
    }
 
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/ApplicationMiddleware.php
     * @param \Symfony\Component\HttpFoundation\Request $request
     * @param \Concrete\Core\Http\Middleware\DelegateInterface $frame
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function process(Request $request, DelegateInterface $frame)
    {
        \Concrete\Core\Http\Request::setInstance($request);
        $this->app->instance('Concrete\Core\Http\Request', $request);
 
        return $frame->next($request);
    }
 
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareDelegate.php
 
    /**
     * Dispatch the next available middleware and return the response.
     *
     * @param Request $request
     * @return Response
     */
    public function next(Request $request)
    {
        return $this->middleware->process($request, $this->nextDelegate);
    }
 
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/Middleware/MiddlewareStack.php
        return $stack;
    }
 
    /**
     * @inheritdoc
     */
    public function process(Request $request)
    {
        $stack = $this->getStack();
        return $stack->next($request);
    }
 
    /**
     * Reduce middleware into a stack of functions that each call the next
     * @return callable
     */
    private function getStack()
    {
        $processed = [];
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Http/DefaultServer.php
     * @return SymfonyResponse
     */
    public function handleRequest(SymfonyRequest $request)
    {
        $stack = $this->stack;
        if ($stack instanceof MiddlewareStack) {
            $stack = $stack->withDispatcher($this->app->make(DispatcherDelegate::class, [$this->dispatcher]));
        }
 
        return $stack->process($request);
    }
 
}
 
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Foundation/Runtime/Run/DefaultRunner.php
 
        /*
         * ----------------------------------------------------------------------------
         * Fire an event for intercepting the dispatch
         * ----------------------------------------------------------------------------
         */
        Events::dispatch('on_before_dispatch');
 
        $request = Request::createFromGlobals();
        return $this->server->handleRequest($request);
    }
 
    /**
     * @param Repository $config
     * @param Application $app
     */
    private function initializeLegacyURLDefinitions(Application $app)
    {
        if (!defined('BASE_URL')) {
            try {
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/src/Foundation/Runtime/DefaultRuntime.php
            case self::STATUS_ENDED:
                // We've already ended, lets just return
                return;
 
            case self::STATUS_INACTIVE:
                throw new \RuntimeException('Runtime has not yet booted.');
        }
 
        $runner = $this->getRunner();
        $response = $runner->run();
 
        if ($response) {
            $this->sendResponse($response);
        }
 
        return $response;
    }
 
    /**
     * The method that handles properly sending a response.
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/concrete/dispatcher.php
/** @var \Concrete\Core\Application\Application $cms */
$cms = require $__DIR__ . '/bootstrap/start.php';
 
/*
 * ----------------------------------------------------------------------------
 * Run the runtime.
 * ----------------------------------------------------------------------------
 */
$runtime = $cms->getRuntime();
if ($response = $runtime->run()) {
 
    /*
     * ------------------------------------------------------------------------
     * Shut it down.
     * ------------------------------------------------------------------------
     */
    $cms->shutdown();
} else {
    return $cms;
}
/var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/index.php
<?php
 
require 'concrete/dispatcher.php';
 

Environment & details:

Key Value
Version 8.1.0
Installed Version 8.1.0
Key Value
concrete.version 8.1.0
concrete.version_installed 8.1.0
concrete.version_db 20170123000000
concrete.installed true
concrete.locale en_US
concrete.charset UTF-8
concrete.maintenance_mode false
concrete.debug.display_errors true
concrete.debug.detail debug
concrete.proxy.host null
concrete.proxy.port null
concrete.proxy.user null
concrete.proxy.password null
concrete.upload.extensions *.flv;*.jpg;*.gif;*.jpeg;*.ico;*.docx;*.xla;*.png;*.psd;*.swf;*.doc;*.txt;*.xls;*.xlsx;*.csv;*.pdf;*.tiff;*.rtf;*.m4a;*.mov;*.wmv;*.mpeg;*.mpg;*.wav;*.3gp;*.avi;*.m4v;*.mp4;*.mp3;*.qt;*.ppt;*.pptx;*.kml;*.xml;*.svg;*.webm;*.ogg;*.ogv
concrete.interface.panel.page_relations false
concrete.mail.method PHP_MAIL
concrete.mail.methods.smtp.server
concrete.mail.methods.smtp.port
concrete.mail.methods.smtp.username
concrete.mail.methods.smtp.password
concrete.mail.methods.smtp.encryption
concrete.cache.enabled true
concrete.cache.lifetime 21600
concrete.cache.overrides true
concrete.cache.blocks true
concrete.cache.assets true
concrete.cache.theme_css true
concrete.cache.pages all
concrete.cache.doctrine_dev_mode false
concrete.cache.full_page_lifetime custom
concrete.cache.full_page_lifetime_value 60
concrete.cache.full_contents_assets_hash false
concrete.cache.directory /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/application/files/cache
concrete.cache.directory_relative null
concrete.cache.page.directory /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/application/files/cache/pages
concrete.cache.page.adapter file
concrete.cache.environment.file environment.cache
concrete.cache.levels.expensive.drivers.core_ephemeral.class \Stash\Driver\Ephemeral
concrete.cache.levels.expensive.drivers.core_filesystem.class \Stash\Driver\FileSystem
concrete.cache.levels.expensive.drivers.core_filesystem.options.path /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/application/files/cache
concrete.cache.levels.expensive.drivers.core_filesystem.options.dirPermissions 509
concrete.cache.levels.expensive.drivers.core_filesystem.options.filePermissions 436
concrete.cache.levels.object.drivers.core_ephemeral.class \Stash\Driver\Ephemeral
concrete.multilingual.redirect_home_to_default_locale false
concrete.multilingual.use_browser_detected_locale false
concrete.multilingual.default_locale false
concrete.multilingual.default_source_locale en_US
concrete.design.enable_custom true
concrete.design.enable_layouts true
concrete.log.emails true
concrete.log.errors true
concrete.log.spam false
concrete.log.queries.log false
concrete.log.queries.clear_on_reload false
concrete.jobs.enable_scheduling true
concrete.filesystem.temp_directory null
concrete.filesystem.permissions.file 436
concrete.filesystem.permissions.directory 509
concrete.email.enabled true
concrete.email.default.address concrete5-noreply@concrete5
concrete.email.default.name
concrete.email.form_block.address false
concrete.email.forgot_password.address null
concrete.email.forgot_password.name null
concrete.email.validate_registration.address null
concrete.email.validate_registration.name null
concrete.marketplace.enabled true
concrete.marketplace.request_timeout 30
concrete.marketplace.token null
concrete.marketplace.site_token null
concrete.marketplace.intelligent_search true
concrete.marketplace.log_requests false
concrete.external.intelligent_search_help true
concrete.external.news_overlay false
concrete.external.news true
concrete.misc.user_timezones false
concrete.misc.package_backup_directory /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/application/files/trash
concrete.misc.enable_progressive_page_reindex true
concrete.misc.mobile_theme_id 0
concrete.misc.sitemap_approve_immediately true
concrete.misc.enable_translate_locale_en_us false
concrete.misc.page_search_index_lifetime 259200
concrete.misc.enable_trash_can true
concrete.misc.app_version_display_in_header true
concrete.misc.default_jpeg_image_compression 80
concrete.misc.help_overlay true
concrete.misc.require_version_comments false
concrete.misc.login_redirect DESKTOP
concrete.misc.access_entity_updated 1512043515
concrete.misc.latest_version 8.2.1
concrete.misc.do_page_reindex_check false
concrete.theme.compress_preprocessor_output true
concrete.theme.generate_less_sourcemap false
concrete.updates.enable_auto_update_packages false
concrete.updates.enable_permissions_protection true
concrete.updates.check_threshold 172800
concrete.updates.services.get_available_updates http://www.concrete5.org/tools/update_core
concrete.updates.services.inspect_update http://www.concrete5.org/tools/inspect_update
concrete.paths.trash /!trash
concrete.paths.drafts /!drafts
concrete.icons.page_template.width 120
concrete.icons.page_template.height 90
concrete.icons.theme_thumbnail.width 120
concrete.icons.theme_thumbnail.height 90
concrete.icons.file_manager_listing.handle file_manager_listing
concrete.icons.file_manager_listing.width 60
concrete.icons.file_manager_listing.height 60
concrete.icons.file_manager_detail.handle file_manager_detail
concrete.icons.file_manager_detail.width 400
concrete.icons.user_avatar.width 80
concrete.icons.user_avatar.height 80
concrete.icons.user_avatar.default /concrete/images/avatar_none.png
concrete.file_manager.images.use_exif_data_to_rotate_images false
concrete.file_manager.images.manipulation_library gd
concrete.file_manager.results 10
concrete.search_users.results 10
concrete.sitemap_xml.file sitemap.xml
concrete.sitemap_xml.frequency weekly
concrete.sitemap_xml.priority 0.5
concrete.accessibility.toolbar_titles false
concrete.accessibility.toolbar_large_font false
concrete.accessibility.display_help_system true
concrete.accessibility.toolbar_tooltips true
concrete.i18n.choose_language_login false
concrete.urls.concrete5 http://www.concrete5.org
concrete.urls.concrete5_secure https://www.concrete5.org
concrete.urls.newsflow http://newsflow.concrete5.org
concrete.urls.background_feed //backgroundimages.concrete5.org/wallpaper
concrete.urls.background_feed_secure https://backgroundimages.concrete5.org/wallpaper
concrete.urls.background_info http://backgroundimages.concrete5.org/get_image_data.php
concrete.urls.videos https://www.youtube.com/user/concrete5cms/videos
concrete.urls.help.developer http://documentation.concrete5.org/developers
concrete.urls.help.user http://documentation.concrete5.org/editors
concrete.urls.help.forum http://www.concrete5.org/community/forums
concrete.urls.paths.menu_help_service /tools/get_remote_help_list/
concrete.urls.paths.site_page /private/sites
concrete.urls.paths.newsflow_slot_content /tools/slot_content/
concrete.urls.paths.marketplace.connect /marketplace/connect
concrete.urls.paths.marketplace.connect_success /marketplace/connect/-/connected
concrete.urls.paths.marketplace.connect_validate /marketplace/connect/-/validate
concrete.urls.paths.marketplace.connect_new_token /marketplace/connect/-/generate_token
concrete.urls.paths.marketplace.checkout /cart/-/add/
concrete.urls.paths.marketplace.purchases /marketplace/connect/-/get_available_licenses
concrete.urls.paths.marketplace.item_information /marketplace/connect/-/get_item_information
concrete.urls.paths.marketplace.item_free_license /marketplace/connect/-/enable_free_license
concrete.urls.paths.marketplace.remote_item_list /marketplace/
concrete.white_label.logo false
concrete.white_label.name false
concrete.white_label.dashboard_background null
concrete.session.name CONCRETE5
concrete.session.handler file
concrete.session.save_path null
concrete.session.max_lifetime 3456000
concrete.session.cookie.cookie_path false
concrete.session.cookie.cookie_lifetime 0
concrete.session.cookie.cookie_domain false
concrete.session.cookie.cookie_secure false
concrete.session.cookie.cookie_httponly true
concrete.user.registration.enabled true
concrete.user.registration.type validate_email
concrete.user.registration.captcha false
concrete.user.registration.email_registration false
concrete.user.registration.validate_email true
concrete.user.registration.approval false
concrete.user.registration.notification 1
concrete.user.registration.notification_email maurizio.grieco@bluedog.it
concrete.user.group.badge.default_point_value 50
concrete.user.username.maximum 64
concrete.user.username.minimum 3
concrete.user.username.allow_spaces false
concrete.user.password.maximum 128
concrete.user.password.minimum 5
concrete.user.password.hash_portable false
concrete.user.password.hash_cost_log2 12
concrete.user.password.legacy_salt
concrete.user.private_messages.throttle_max 20
concrete.user.private_messages.throttle_max_timespan 15
concrete.spam.whitelist_group 0
concrete.spam.notify_email
concrete.security.session.invalidate_on_user_agent_mismatch true
concrete.security.session.invalidate_on_ip_mismatch true
concrete.security.ban.ip.enabled true
concrete.security.ban.ip.attempts 5
concrete.security.ban.ip.time 300
concrete.security.ban.ip.length 10
concrete.security.misc.x_frame_options SAMEORIGIN
concrete.permissions.forward_to_login true
concrete.permissions.model simple
concrete.seo.tracking.code
concrete.seo.tracking.code_position bottom
concrete.seo.exclude_words a, an, as, at, before, but, by, for, from, is, in, into, like, of, off, on, onto, per, since, than, the, this, that, to, up, via, with
concrete.seo.url_rewriting true
concrete.seo.url_rewriting_all false
concrete.seo.redirect_to_canonical_url 0
concrete.seo.canonical_url null
concrete.seo.canonical_ssl_url null
concrete.seo.trailing_slash false
concrete.seo.title_format %2$s - Cristiani e Musulmani nel mondo globale - %1$s
concrete.seo.title_segment_separator -
concrete.seo.page_path_separator -
concrete.seo.group_name_separator /
concrete.seo.segment_max_length 128
concrete.seo.paging_string ccm_paging_p
concrete.statistics.track_downloads true
concrete.limits.sitemap_pages 100
concrete.limits.delete_pages 100
concrete.limits.copy_pages 10
concrete.limits.page_search_index_batch 200
concrete.limits.job_queue_batch 10
concrete.limits.style_customizer.size_min -50
concrete.limits.style_customizer.size_max 200
concrete.page.search.always_reindex false
concrete.version_db_installed 20170123000000
concrete.maintenance.version_job_page_num 169
concrete.site OasisCenter
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [uGroups] => Array ( [1] => 1 ) [accessEntities] => Array ( [0] => Concrete\Core\Permission\Access\Entity\GroupEntity Object ( [group:protected] => Concrete\Core\User\Group\Group Object ( [ctID] => [permissionSet] => [permissions:Concrete\Core\User\Group\Group:private] => Array ( ) [error] => [gID] => 1 [gName] => Guest [gDescription] => The guest group represents unregistered visitors to your site. [gUserExpirationIsEnabled] => 0 [gUserExpirationMethod] => [gUserExpirationSetDateTime] => [gUserExpirationInterval] => 0 [gUserExpirationAction] => [gIsBadge] => 0 [gBadgeFID] => 0 [gBadgeDescription] => [gBadgeCommunityPointValue] => 0 [gIsAutomated] => 0 [gCheckAutomationOnRegister] => 0 [gCheckAutomationOnLogin] => 0 [gCheckAutomationOnJobRun] => 0 [gPath] => /Guest [pkgID] => 0 ) [error] => [petID] => 1 [peID] => 2 [petHandle] => group [label] => Guest ) ) [accessEntitiesUpdated] => 1537387962 )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1537387962 [c] => 1537387962 [l] => 0 )
contentmarketinglang en
Key Value
REDIRECT_UNIQUE_ID W6KtuqNXXn9wLaO-lfZ8kgAAABY
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.oasiscenter.eu
REDIRECT_STATUS 200
UNIQUE_ID W6KtuqNXXn9wLaO-lfZ8kgAAABY
HTTPS on
SSL_TLS_SNI www.oasiscenter.eu
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_IF_MODIFIED_SINCE Thu, 19 Jul 2018 02:11:39 GMT
HTTP_HOST www.oasiscenter.eu
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING gzip
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.6.30 mod_perl/2.0.9-dev Perl/v5.16.3
SERVER_NAME www.oasiscenter.eu
SERVER_ADDR 51.255.84.233
SERVER_PORT 443
REMOTE_ADDR 54.225.59.14
DOCUMENT_ROOT /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/vhosts/ns3038629.ip-51-255-84.eu/eu.oasiscenter.www/index.php
REMOTE_PORT 38442
REDIRECT_URL /en/engulfed-battle-mosul-civilians-run-their-lives
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /en/engulfed-battle-mosul-civilians-run-their-lives
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1537387962.058
REQUEST_TIME 1537387962
empty
0. Concrete\Core\Error\Handler\ErrorHandler
1. Concrete\Core\Error\Handler\JsonErrorHandler