Supplied content type `text/html; charset=UTF-8` is not supported.
-
/var/www/vhosts/mcf.rs/httpdocs/vendor/intellex/curly/src/Content/Type.php : 49
42 throw new Exception\InvalidContentTypeHandlerException($handler);43 }4445 return $instance;46 }47 }4849 throw new Exception\ContentTypeNotSupportedException($contentType);50 }5152 /**53 * Register a new handler for a specified content type.54 *55 * @param string $regexp The regular expression used to recognize the content type.56 * @param string $class The class to instantiate for this type.57 */
-
Intellex\Curly\Content\Type
::
init
(
text/html; charset=UTF-8
)
/var/www/vhosts/mcf.rs/httpdocs/vendor/intellex/curly/src/Response.php : 4538 list($headers, $this->content) = explode("\r\n\r\n", $response, 2);3940 // Extract headers and cookies41 list($this->headers, $this->cookies) = static::extractHeadersAndCookies($headers);4243 // From info44 $this->code = $info['http_code'];45 $this->contentType = Type::init($info['content_type']);46 }4748 /**49 * Extract the headers and cookies from the supplied raw headers.50 *51 * @param string $header The received raw header.52 *53 * @return array The associative array of headers. -
Intellex\Curly\Response
➝
__construct
(
string(20033): "HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sun, 13 Oc…
, Array
(
[url] => https://mtsdvorana.rs/api/v3/movies/top10
…
)
/var/www/vhosts/mcf.rs/httpdocs/vendor/intellex/curly/src/Curl.php : 220213 // Apply the overrides214 foreach ($this->overrides as $option => $value) {215 static::curl_setopt($ch, $option, $value);216 }217218 // Execute and get the full info219 $data = curl_exec($ch);220 $response = new Response($data, curl_getinfo($ch));221222 // Return the data223 curl_close($ch);224 return $response;225 }226227 /**228 * Set the curl option and write it to the request log. -
Intellex\Curly\Curl
➝
execute
(
)
/var/www/vhosts/mcf.rs/httpdocs/VectorCMS/View/Layouts/front.ctp(45) : eval()'d code : 59 -
eval
(
)
/var/www/vhosts/mcf.rs/httpdocs/VectorCMS/View/Layouts/front.ctp : 4538 $documentTitle = array_reverse($documentTitle);39 }40 }4142 # Render the page43 if (!empty($html)) {44 ob_start();45 eval('?>' . $html);46 $pageContent = ob_get_clean();4748 # No page supplied, show admin login49 } else {50 header('Location: ' . BACK_BASE_URL);51 exit;52 }53 -
include
(
/var/www/vhosts/mcf.rs/httpdocs/VectorCMS/View/Layouts/front.ctp
)
/var/www/vhosts/mcf.rs/httpdocs/lib/Cake/View/View.php : 971964 * @return string Rendered output965 */966 protected function _evaluate($viewFile, $dataForView) {967 $this->__viewFile = $viewFile;968 extract($dataForView);969 ob_start();970971 include $this->__viewFile;972973 unset($this->__viewFile);974 return ob_get_clean();975 }976977 /**978 * Loads a helper. Delegates to the `HelperCollection::load()` to load the helper979 * -
View
➝
_evaluate
(
/var/www/vhosts/mcf.rs/httpdocs/VectorCMS/View/Layouts/front.ctp
, HUGE Array
)
/var/www/vhosts/mcf.rs/httpdocs/lib/Cake/View/View.php : 933926 $this->_current = $viewFile;927 $initialBlocks = count($this->Blocks->unclosed());928929 $eventManager = $this->getEventManager();930 $beforeEvent = new CakeEvent('View.beforeRenderFile', $this, array($viewFile));931932 $eventManager->dispatch($beforeEvent);933 $content = $this->_evaluate($viewFile, $data);934935 $afterEvent = new CakeEvent('View.afterRenderFile', $this, array($viewFile, $content));936937 $afterEvent->modParams = 1;938 $eventManager->dispatch($afterEvent);939 $content = $afterEvent->data[1];940941 if (isset($this->_parents[$viewFile])) { -
View
➝
_render
(
/var/www/vhosts/mcf.rs/httpdocs/VectorCMS/View/Layouts/front.ctp
)
/var/www/vhosts/mcf.rs/httpdocs/lib/Cake/View/View.php : 473466 if ($this->hasRendered) {467 return null;468 }469470 if ($view !== false && $viewFileName = $this->_getViewFileName($view)) {471 $this->_currentType = static::TYPE_VIEW;472 $this->getEventManager()->dispatch(new CakeEvent('View.beforeRender', $this, array($viewFileName)));473 $this->Blocks->set('content', $this->_render($viewFileName));474 $this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($viewFileName)));475 }476477 if ($layout === null) {478 $layout = $this->layout;479 }480 if ($layout && $this->autoLayout) {481 $this->Blocks->set('content', $this->renderLayout('', $layout)); -
View
➝
render
(
/Layouts/front
, (null value)
)
/var/www/vhosts/mcf.rs/httpdocs/lib/Cake/Controller/Controller.php : 961954 list($plugin) = pluginSplit(App::location($className));955 $this->request->params['models'][$currentObject->alias] = compact('plugin', 'className');956 $this->View->validationErrors[$currentObject->alias] =& $currentObject->validationErrors;957 }958 }959960 $this->autoRender = false;961 $this->response->body($this->View->render($view, $layout));962 return $this->response;963 }964965 /**966 * Returns the referring URL for this request.967 *968 * @param string $default Default URL to use if HTTP_REFERER cannot be read from headers969 * @param bool $local If true, restrict referring URLs to local server -
Controller
➝
render
(
/Layouts/front
)
/var/www/vhosts/mcf.rs/httpdocs/VectorCMS/Controller/FrontController.php : 208201 }202203 # Handle custom logic after the page has been read from the database204 $this->afterPage();205206 $this->set('html', $html);207 if (get_class($this) === 'FrontController') {208 $this->render('/Layouts/front');209 }210211 } catch (NotFoundException $ex) {212 $this->redirect('/404');213 }214 }215216 # ~ Handle cms tags parsing- - - - - - - - - - - - - - - - - - - - - - - - - - # -
FrontController
➝
beforeFilter
(
HUGE CakeEvent
)
/var/www/vhosts/mcf.rs/httpdocs/lib/Cake/Event/CakeEventManager.php : 243236 foreach ($listeners as $listener) {237 if ($event->isStopped()) {238 break;239 }240 if ($listener['passParams'] === true) {241 $result = call_user_func_array($listener['callable'], $event->data);242 } else {243 $result = call_user_func($listener['callable'], $event);244 }245 if ($result === false) {246 $event->stopPropagation();247 }248 if ($result !== null) {249 $event->result = $result;250 }251 } -
CakeEventManager
➝
dispatch
(
HUGE CakeEvent
)
/var/www/vhosts/mcf.rs/httpdocs/lib/Cake/Controller/Controller.php : 677670 * - triggers Component `startup` methods.671 *672 * @return void673 * @triggers Controller.initialize $this674 * @triggers Controller.startup $this675 */676 public function startupProcess() {677 $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));678 $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));679 }680681 /**682 * Perform the various shutdown processes for this controller.683 * Fire the Components and Controller callbacks in the correct order.684 *685 * - triggers the component `shutdown` callback. -
Controller
➝
startupProcess
(
)
/var/www/vhosts/mcf.rs/httpdocs/lib/Cake/Routing/Dispatcher.php : 189182 *183 * @param Controller $controller Controller to invoke184 * @param CakeRequest $request The request object to invoke the controller for.185 * @return CakeResponse the resulting response object186 */187 protected function _invoke(Controller $controller, CakeRequest $request) {188 $controller->constructClasses();189 $controller->startupProcess();190191 $response = $controller->response;192 $render = true;193 $result = $controller->invokeAction($request);194 if ($result instanceof CakeResponse) {195 $render = false;196 $response = $result;197 } -
Dispatcher
➝
_invoke
(
HUGE FrontController
, CakeRequest Object
(
[params] => Array
(
…
)
/var/www/vhosts/mcf.rs/httpdocs/lib/Cake/Routing/Dispatcher.php : 167160 if (!($controller instanceof Controller)) {161 throw new MissingControllerException(array(162 'class' => Inflector::camelize($request->params['controller']) . 'Controller',163 'plugin' => empty($request->params['plugin']) ? null : Inflector::camelize($request->params['plugin'])164 ));165 }166167 $response = $this->_invoke($controller, $request);168 if (isset($request->params['return'])) {169 return $response->body();170 }171172 $afterEvent = new CakeEvent('Dispatcher.afterDispatch', $this, compact('request', 'response'));173 $this->getEventManager()->dispatch($afterEvent);174 $afterEvent->data['response']->send();175 } -
Dispatcher
➝
dispatch
(
CakeRequest Object
(
[params] => Array
(
…
, CakeResponse Object
(
[_statusCodes:protected] => Array
…
)
/var/www/vhosts/mcf.rs/httpdocs/VectorCMS/webroot/index.php : 156149 # Cronjob handler150 if (isset($argc) && $argc == 2 && isCLI()) {151 define('CRONJOB', $argv[1]);152 $Dispatcher->dispatch(new CakeRequest($argv[1]), new CakeResponse());153 exit;154 }155156 $Dispatcher->dispatch(new CakeRequest(), new CakeResponse([ 'charset' => Configure::read('App.encoding') ]));157