Notice

Undefined index: order

/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/Modules/Projects/Controllers/AdminProjectsController.php

Url/Visitor

http://www.atriumarchitekti.loc/admin/project/create (POST)

Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0

Source

578 array_key_exists("has", $category) === false
579 or $category["has"] !== "on"
580 ) {
581 $this->services->projectsCategoriesRelationsModel->delete(array(
582 array("project", $projectId),
583 array("category", $categoryId),
584 ));
585 var_dump($category);
586 continue;
587 }
588
589 if (array_key_exists($categoryId, $current) === false) {
590 $relationModel = $this->services->getFactory("projectsCategoriesRelationsModel")->create();
591 } else {
592 $relationModel = $current[$categoryId];
593 }
594
595 $relationModel["project"] = $projectId;
596 $relationModel["category"] = $categoryId;
597 $relationModel["order"] = (strlen($category["order"]) === 0) ? NULL : $category["order"];
598 $relationModel["main"] = ($categoryId == $main) ? 1 : 0;
599 $relationModel->save();
600 }
601
602 $current = $this->services->projectsCategoriesRelationsModel->fetchMultiple(array(
603 array("project", $projectId),
604 ));
605 return;
606 }
607 }

Backtrace

$_SERVER

array (
  'REDIRECT_STATUS' => '200',
  'HTTP_HOST' => 'www.atriumarchitekti.loc',
  'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0',
  'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
  'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3',
  'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
  'HTTP_REFERER' => 'http://www.atriumarchitekti.loc/admin/project/create',
  'CONTENT_TYPE' => 'application/x-www-form-urlencoded',
  'CONTENT_LENGTH' => '1255',
  'HTTP_ORIGIN' => 'http://www.atriumarchitekti.loc',
  'HTTP_CONNECTION' => 'keep-alive',
  'HTTP_COOKIE' => 'qazfdrtygdfxsw=jbahh4rnolvrtjqqsrocge1rss; language=sk; ws56trt87dfgxzaq=MzQyZWRMcGFsY2Q1Z3VRV0dqQmx0MklVV2FUeFlCTThGNGdDQSt5QjNsOFN6ZjUzWktOMVhaMHFQNHlEWVhqU0cydmkvRGYxZUtJUGV5bVJaT2hZc1k4cVJESVJBaTlxY2VOM0xFMy9JSmR5bUJJc1VRS0pJVkNVM3d2TWdwdVB6SkVqaW5XYzRhNm5IWkQ3Z0N6aFl2STdra2ltWWJFeHFNcWE3cHRxZjFkTXZldDFJYmJjZXovR3RETVN6OWs4M0xRR1pUTHlodUdDYTlZQnQvQTJhd3pjNnduZ1MvY1lZMHpmQnlWMnpoaWhEMGJ3STRmVTNTZXR0WFY1M1BlZXZ4eDQrcjdVcGlVPTNmMWRkZWUx',
  'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
  'HTTP_PRIORITY' => 'u=1',
  'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.atriumarchitekti.loc Port 80</address>
',
  'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)',
  'SERVER_NAME' => 'www.atriumarchitekti.loc',
  'SERVER_ADDR' => '127.0.0.1',
  'SERVER_PORT' => '80',
  'REMOTE_ADDR' => '127.0.0.1',
  'DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root',
  'REQUEST_SCHEME' => 'http',
  'CONTEXT_PREFIX' => '',
  'CONTEXT_DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root',
  'SERVER_ADMIN' => 'webmaster@localhost',
  'SCRIPT_FILENAME' => '/mnt/devel/Atrium/atriumstudio/www_root/index.php',
  'REMOTE_PORT' => '53734',
  'REDIRECT_URL' => '/admin/project/create',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'REQUEST_METHOD' => 'POST',
  'QUERY_STRING' => '',
  'REQUEST_URI' => '/admin/project/create',
  'SCRIPT_NAME' => '/index.php',
  'PHP_SELF' => '/index.php',
  'REQUEST_TIME_FLOAT' => 1720039312.824,
  'REQUEST_TIME' => 1720039312,
)

$_POST

array (
  'year_launch' => '2000',
  'year_completition' => '2000',
  'authors' => '',
  'collaborators' => '',
  'buildup_area' => '123',
  'costs' => '0',
  'videos' => '',
  'web' => '',
  'order' => '123',
  'language' => 
  array (
    1 => 
    array (
      'name' => 'aaa',
      'description' => 'aaaa',
      'client' => '',
      'city' => '',
      'location' => '',
      'published' => '',
      'exhibitions' => '',
      'awards' => '',
      'note' => '',
    ),
    2 => 
    array (
      'name' => 'bbb',
      'description' => 'bbbb',
      'client' => '',
      'city' => '',
      'location' => '',
      'published' => '',
      'exhibitions' => '',
      'awards' => '',
      'note' => '',
    ),
  ),
  'categories' => 
  array (
    1 => 
    array (
      'order' => '',
    ),
    2 => 
    array (
      'order' => '',
    ),
    11 => 
    array (
      'order' => '',
    ),
    4 => 
    array (
      'order' => '',
    ),
    10 => 
    array (
      'order' => '',
    ),
    9 => 
    array (
      'order' => '',
    ),
    6 => 
    array (
      'order' => '',
    ),
    15 => 
    array (
      'order' => '',
    ),
    14 => 
    array (
      'order' => '',
    ),
    12 => 
    array (
      'order' => '',
    ),
    13 => 
    array (
      'order' => '',
    ),
  ),
  'gmaddress' => '',
  'token' => '1f786c003a417c094746bbe8a892a219',
  'id' => '',
  'mainphoto' => '',
  'tab' => 'zakladne-udaje',
  'photos' => '',
  'location_gm_lng' => '',
  'location_gm_lat' => '',
  'location_gm_zoom' => '',
  'streetview_lat' => '',
  'streetview_lng' => '',
  'streetview_heading' => '',
  'streetview_pitch' => '',
  'streetview_zoom' => '',
  'streetview_show' => '',
  'save' => '',
)

$_GET

array (
)