Supplied content type `JSON` cannot parse the supplied content: `HTTP/1.1 301 Moved Permanently Server: nginx Date: Sat, 12 Sep 2026 16:32:38 GMT Content-Type: text/html; charset=iso-8859-1 Content-Length: 315 Connection: keep-alive Location: https://mtsdvorana.rs/api/v3/movies/top10 X-Powered-By: PleskLin HTTP/2 404 alt-svc: h3=":443"; ma=2592000 cache-control: no-cache content-security-policy: script-src 'none'; frame-ancestors 'none'; content-type: application/json date: Sat, 12 Sep 2026 16:31:26 GMT permissions-policy: camera=(), microphone=(), geolocation=(), interest-cohort=() referrer-policy: no-referrer set-cookie: i18n_locale=sr; Path=/; Expires=Sun, 12 Sep 2027 16:31:27 GMT; SameSite=Lax strict-transport-security: max-age=63072000; includeSubDomains; preload via: 1.1 Caddy x-content-type-options: nosniff x-frame-options: DENY content-length: 182 { "error": true, "url": "https://mtsdvorana.rs/api/v3/movies/top10", "statusCode": 404, "statusMessage": "Stranica nije pronađena", "message": "Stranica nije pronađena" }`.
-
/var/www/vhosts/mcf.rs/httpdocs/vendor/intellex/curly/src/Content/TypeHandlers/JSON.php : 22
15 *16 * @return array The extracted data, as array.17 * @throws ContentCannotBeParsedException18 */19 public function parse($raw) {20 $data = @json_decode($raw, true);21 if ($data === null) {22 throw new ContentCannotBeParsedException('JSON', $raw);23 }2425 return $data;26 }2728 /**29 * Format the data based on the type.30 *
-
Intellex\Curly\Content\TypeHandlers\Json
➝
parse
(
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sat, 12 Sep…
)
/var/www/vhosts/mcf.rs/httpdocs/vendor/intellex/curly/src/Response.php : 108101 /** @return Type The content type, as sent from the server. */102 public function getContentType() {103 return $this->contentType;104 }105106 /** @return mixed The received data. */107 public function getContent() {108 return $this->contentType->parse($this->content);109 }110111 /** @return string The received data. */112 public function getRawData() {113 return $this->content;114 }115116 /** @return string[] The list of received HTTP headers. */ -
Intellex\Curly\Response
➝
getContent
(
)
/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