ParseError
syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) ParseError thrown with message "syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)" Stacktrace: #9 ParseError in /home/evuc/live/releases/20220124095935/buxus/application/layouts/main.phtml:171 #8 Zend_View:_run in /home/evuc/live/releases/20220124095935/vendor/zendframework/zendframework1/library/Zend/View/Abstract.php:888 #7 Zend_View_Abstract:render in /home/evuc/live/releases/20220124095935/vendor/buxus/legacy-base/src/Buxus/Zend/Layout.php:58 #6 Buxus\Zend\Layout:render in /home/evuc/live/releases/20220124095935/vendor/zendframework/zendframework1/library/Zend/Layout/Controller/Plugin/Layout.php:143 #5 Zend_Layout_Controller_Plugin_Layout:postDispatch in /home/evuc/live/releases/20220124095935/vendor/zendframework/zendframework1/library/Zend/Controller/Plugin/Broker.php:333 #4 Zend_Controller_Plugin_Broker:postDispatch in /home/evuc/live/releases/20220124095935/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php:965 #3 Zend_Controller_Front:dispatch in /home/evuc/live/releases/20220124095935/vendor/buxus/legacy-base/buxus/includes/generate_functions.php:151 #2 GeneratePage in /home/evuc/live/releases/20220124095935/vendor/buxus/core/src/handler/generate_page.php:47 #1 include in /home/evuc/live/releases/20220124095935/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php:86 #0 Buxus\Router\BuxusRouter:dispatch in /home/evuc/live/releases/20220124095935/public/buxus.php:10
Stack frames (10)
9
ParseError
/
buxus
/
application
/
layouts
/
main.phtml
171
8
Zend_View
_run
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
View
/
Abstract.php
888
7
Zend_View_Abstract
render
/
vendor
/
buxus
/
legacy-base
/
src
/
Buxus
/
Zend
/
Layout.php
58
6
Buxus
\
Zend
\
Layout
render
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Layout
/
Controller
/
Plugin
/
Layout.php
143
5
Zend_Layout_Controller_Plugin_Layout
postDispatch
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Controller
/
Plugin
/
Broker.php
333
4
Zend_Controller_Plugin_Broker
postDispatch
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Controller
/
Front.php
965
3
Zend_Controller_Front
dispatch
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
generate_functions.php
151
2
GeneratePage
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
47
1
include
/
vendor
/
buxus
/
core
/
src
/
Buxus
/
Router
/
BuxusRouter.php
86
0
Buxus
\
Router
\
BuxusRouter
dispatch
/
public
/
buxus.php
10
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
buxus
/
application
/
layouts
/
main.phtml
            <div class="col-md-8">
                <?php echo $this->action('bottom-menu-list', 'index') ?>
            </div>
        </div>
    </div>
</div>
<?php endif; ?>


<?php if (in_array(\BuxusMVC::page()->getPageTypeId(),[PTCI::ZDRAVOTNICKE_ZARIADENIE_ID,PTCI::LEKAREN_ID])): ?>
<div class="nahlasit-problem__wrapper">
    <span class="nahlasit-problem__button">Nahlásiť chybu na stránke</span>

    <div class="nahlasit-problem__form-wrapper">
    <div class="nahlasit-problem__chyba">Nevyplnili ste opis problému.</div>
    <div class="nahlasit-problem__ok">Ďakujeme za upozornenie.</div>
    <form action="<?php echo F::pUrl(\Buxus\Util\PageIds::getAjaxNahlasenieProblemu()) ?>" id="nahlasit-problem__form" class="nahlasit-problem__form">
        <div class="row">
            <div class="col-md-6">
 
Arguments
  1. "syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)"
    
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
View
/
Abstract.php
            if ('_' != substr($key, 0, 1)) {
                unset($this->$key);
            }
        }
    }
 
    /**
     * Processes a view script and returns the output.
     *
     * @param string $name The script name to process.
     * @return string The script output.
     */
    public function render($name)
    {
        // find the script file name using the parent private method
        $this->_file = $this->_script($name);
        unset($name); // remove $name from local scope
 
        ob_start();
        $this->_run($this->_file);
 
        return $this->_filter(ob_get_clean()); // filter output
    }
 
    /**
     * Escapes a value for output in a view script.
     *
     * If escaping mechanism is one of htmlspecialchars or htmlentities, uses
     * {@link $_encoding} setting.
     *
     * @param mixed $var The output to escape.
     * @return mixed The escaped value.
     */
    public function escape($var)
    {
        if (in_array($this->_escape, array('htmlspecialchars', 'htmlentities'))) {
            return call_user_func($this->_escape, $var, ENT_COMPAT, $this->_encoding);
        }
 
        if (1 == func_num_args()) {
Arguments
  1. "/home/evuc/live/releases/20220124095935/buxus/application/layouts/main.phtml"
    
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
vendor
/
buxus
/
legacy-base
/
src
/
Buxus
/
Zend
/
Layout.php
            foreach ($theme_paths as $theme_path) {
                $abs_file = $theme_path . '/layouts/' . $name;
                if (file_exists($abs_file)) {
                    $view_script_path = $theme_path . '/layouts/';
                    break;
                }
            }
        }
 
        if (!is_null($view_script_path)) {
            if (method_exists($view, 'addScriptPath')) {
                $view->addScriptPath($view_script_path);
            } else {
                $view->setScriptPath($view_script_path);
            }
        } elseif (null !== ($path = $this->getViewBasePath())) {
            $view->addBasePath($path, $this->_viewBasePrefix);
        }
 
        return $view->render($name);
    }
}
Arguments
  1. null
    
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Layout
/
Controller
/
Plugin
/
Layout.php
            return;
        }
 
        $response   = $this->getResponse();
        $content    = $response->getBody(true);
        $contentKey = $layout->getContentKey();
 
        if (isset($content['default'])) {
            $content[$contentKey] = $content['default'];
        }
        if ('default' != $contentKey) {
            unset($content['default']);
        }
 
        $layout->assign($content);
 
        $fullContent = null;
        $obStartLevel = ob_get_level();
        try {
            $fullContent = $layout->render();
            $response->setBody($fullContent);
        } catch (Exception $e) {
            while (ob_get_level() > $obStartLevel) {
                $fullContent .= ob_get_clean();
            }
            $request->setParam('layoutFullContent', $fullContent);
            $request->setParam('layoutContent', $layout->content);
            $response->setBody(null);
            throw $e;
        }
 
    }
}
 
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Controller
/
Plugin
/
Broker.php
                    $this->getResponse()->setException($e);
                    // skip rendering of normal dispatch give the error handler a try
                    $this->getRequest()->setDispatched(false);
                }
            }
        }
    }
 
 
    /**
     * Called after an action is dispatched by Zend_Controller_Dispatcher.
     *
     * @param  Zend_Controller_Request_Abstract $request
     * @return void
     */
    public function postDispatch(Zend_Controller_Request_Abstract $request)
    {
        foreach ($this->_plugins as $plugin) {
            try {
                $plugin->postDispatch($request);
            } catch (Exception $e) {
                if (Zend_Controller_Front::getInstance()->throwExceptions()) {
                    throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
                } else {
                    $this->getResponse()->setException($e);
                }
            }
        }
    }
 
 
    /**
     * Called before Zend_Controller_Front exits its dispatch loop.
     *
     * @param  Zend_Controller_Request_Abstract $request
     * @return void
     */
    public function dispatchLoopShutdown()
    {
       foreach ($this->_plugins as $plugin) {
Arguments
  1. Zend_Controller_Request_Http {#2601}
    
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Controller
/
Front.php
                if (!$this->_request->isDispatched()) {
                    continue;
                }
 
                /**
                 * Dispatch request
                 */
                try {
                    $dispatcher->dispatch($this->_request, $this->_response);
                } catch (Exception $e) {
                    if ($this->throwExceptions()) {
                        throw $e;
                    }
                    $this->_response->setException($e);
                }
 
                /**
                 * Notify plugins of dispatch completion
                 */
                $this->_plugins->postDispatch($this->_request);
            } while (!$this->_request->isDispatched());
        } catch (Exception $e) {
            if ($this->throwExceptions()) {
                throw $e;
            }
 
            $this->_response->setException($e);
        }
 
        /**
         * Notify plugins of dispatch loop completion
         */
        try {
            $this->_plugins->dispatchLoopShutdown();
        } catch (Exception $e) {
            if ($this->throwExceptions()) {
                throw $e;
            }
 
            $this->_response->setException($e);
Arguments
  1. Zend_Controller_Request_Http {#2601}
    
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
generate_functions.php
 
        // Set router
        $front->setRouter(new ControllerRouter());
 
        // Set controller and action
        $request = new Zend_Controller_Request_Http();
        $request->setControllerName($controller_name);
        $request->setActionName($controller_action);
 
        \Buxus\Event\BuxusEvent::fire(new \Buxus\Event\MvcStartedEvent());
 
        // add registered view helpers
        //$view = \Zend_Layout::getMvcInstance()->getView();
 
/*        $module_view_helper_paths = \Buxus\Module\BuxusModule::helperPaths();
        foreach ($module_view_helper_paths as $helper_path) {
            $view->addHelperPath($helper_path['path'], $helper_path['prefix']);
        }*/
 
        $front->dispatch($request);
    }
}
 
function CreateUrlForPageName ($page_name, $url_parameter="", $quotes = "'")
{
  global $as_static;
  $page_dsc = BuxusDB::get()->fetchAll("SELECT tblPages.page_id FROM tblPages WHERE tblPages.page_name = :page_name", array(':page_name' => $page_name));
  $i = 0;
  foreach($page_dsc as $page_row)
  {
    $page_id = $page_row["page_id"];
    $i++;
  }
  if ($i>1)
    //echo "What now? There are more than one unique page with given name.";
  if ($i == 0) { $page_id = 0; }
  if ($as_static != '')
    return ($quotes.GetSystemOption("C_static_url_prefix")."page_$page_id.htm".$url_parameter.$quotes);
  else
    return ($quotes.config('buxus_core.base_url')."generate_page.php?page_id=$page_id".$url_parameter.$quotes);
Arguments
  1. Zend_Controller_Request_Http {#2601}
    
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
    $page_name = (isset($_GET['page_name']) ? $_GET['page_name'] : '');
        
    if (!empty($page_name)) {
        //funckia skonci, ak nenajde, alebo najde viac
        $page_id = GetPageIdByPageName($page_name);
    } else {
        if (!showCustomError('404')) {
            header('HTTP/1.0 404 Not Found');
              echo 'Wrong page ID specified.';
          }
          exit;
      }
} else {
    $wrong_page_id = C_True;
}
 
$_REQUEST['page_id'] = $page_id;
$_GET['page_id'] = $page_id;
 
GeneratePage($page_id);
 
\Buxus\Event\BuxusEvent::fire(new \Buxus\Event\FrontendRequestFinishedEvent());
 
exit;
Arguments
  1. "134826"
    
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
vendor
/
buxus
/
core
/
src
/
Buxus
/
Router
/
BuxusRouter.php
            echo '<html><head><title>maintenance</title></head><body>This BUXUS application is undergoing maintenance. Please try again later</body></html>';
        } else {
            include $template_path;
        }
    }
 
    public function dispatch($request_uri) {
        if ($this->app->isDownForMaintenance()) {
            $this->display503();
            exit;
        }
 
        $script = $this->getScript($request_uri);
 
        foreach ($this->auto_scripts as $auto_script) {
            include($auto_script);
        }
 
        if (!empty($script)) {
            include($script);
        }
 
        if ($this->default_script != $script) {
            include($this->default_script);
        }
 
        header('HTTP/1.0 404 Not Found');
        echo '404 Not Found';
        exit;
    }
}
Arguments
  1. "/home/evuc/live/releases/20220124095935/vendor/buxus/core/src/handler/generate_page.php"
    
/
home
/
evuc
/
live
/
releases
/
20220124095935
/
public
/
buxus.php
<?php
define('BASE_BUXUS_DIR', realpath(__DIR__ . '/../'));
require_once __DIR__ . '/../vendor/autoload.php';
require_once CORE_BUXUS_DIR . '/src/buxus_bootstrap.php';
 
require_once '../vendor/buxus/legacy-base/buxus/includes/database.php';
 
 
$router = app('buxus-router');
$router->dispatch($_SERVER['REQUEST_URI']);
 
Arguments
  1. "/ttsk/zdravotnictvo/ambulantne-zdravotnicke-zariadenia/senica/ambulancia-rychlej-lekarskej-pomoci-senica-lse-life-star-emergency.html?page_id=134826&iframe=1+width%3D++++++++++++"
    

Environment & details:

Key Value
page_id
"134826"
iframe
"1 width=            "
empty
empty
Key Value
evuc_live
"e01f0s27gac67s63oqoas0cmhr"
Key Value
buxus
array:1 [
  "BUXUS_RUNNING" => null
]
empty
empty
0. Whoops\Handler\PrettyPageHandler