Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 1, 2025

Administrators cannot add subcategories to parent categories restricted to groups they don't belong to. The code attempts to access $category->categoryName[$parentId]['lang'] but the parent isn't loaded due to permission filtering, causing null to be passed to LanguageCodes::get(string $key).

Changes

  • Added fallback data fetch: When parent category isn't in the loaded set, fetch it directly via getCategoryData() which bypasses permission checks
  • Added validation: Check getId() > 0 to confirm category exists before accessing properties
  • Added graceful degradation: Use system language and empty name if parent category doesn't exist in database
// Before: Direct access assumes parent is loaded
'categoryNameLangCode' => LanguageCodes::get($category->categoryName[$parentId]['lang']),
'categoryName' => $category->categoryName[$parentId]['name'],

// After: Check if loaded, fetch if needed
if (!isset($category->categoryName[$parentId])) {
    $baseCategory = new Category($faqConfig, [], false);
    $parentCategoryData = $baseCategory->getCategoryData($parentId);
    if ($parentCategoryData->getId() > 0) {
        $parentCategoryLang = $parentCategoryData->getLang();
        $parentCategoryName = $parentCategoryData->getName();
    } else {
        // Fallback values
    }
} else {
    $parentCategoryLang = $category->categoryName[$parentId]['lang'];
    $parentCategoryName = $category->categoryName[$parentId]['name'];
}

This matches the pattern in category.edit.php which uses getCategoryData() to fetch category details without permission checks. The subcategory inherits parent permissions as designed.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/2tvenom/CBOREncode/zipball/42aedccb861d01fc0554782348cc08f8ebf22332
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/Bacon/BaconQrCode/zipball/f9cc1f52b5a463062251d666761178dbdb6b544f
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/DASPRiD/Enum/zipball/b5874fa9ed0043116c72162ec7f4fb50e02e7cce
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/ad545ea9c1b7d270ce0fc9cbfb884161cd706119
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/RobThree/TwoFactorAuth/zipball/6d70f9ca8e25568f163a7b3b3ff77bd8ea743978
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/Seldaek/monolog/zipball/10d85740180ecba7896c87e06a166e0c95a0e3b6
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/bovigo/vfsStream/zipball/fe695ec993e0a55c3abdda10a9364eb31c6f1bf0
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/egulias/EmailValidator/zipball/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/elastic/elastic-transport-php/zipball/1d476af5dc0b74530d59b67d5dd96ee39768d5a4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/elastic/elasticsearch-php/zipball/1771284cb43a7b653634d418b6f5f0ec84ff8a6d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/endroid/qr-code/zipball/21e888e8597440b2205e2e5c484b6c8e556bcd1a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/nette/schema/zipball/da801d52f0354f70a638673c4a0f04e16529431d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/nette/utils/zipball/c930ca4e3cf4f17dcfb03037703679d2396d2ede
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/opentelemetry-php/api/zipball/610b79ad9d6d97e8368bcb6c4d42394fbb87b522
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/opentelemetry-php/context/zipball/d4c4470b541ce72000d18c339cfee633e4c8e0cf
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/paragonie/constant_time_encoding/zipball/d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/pdepend/pdepend/zipball/f942b208dc2a0868454d01b29f0c75bbcfc6ed58
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/php-http/httplug/zipball/5cad731844891a4c282f3f3e1b582c46839d22f4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/php-http/promise/zipball/fc85b1fba37c169a69a07ef0d5a8075770cc1f83
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94f8051919d1b0369a6bcc7931d679a511c03fe9
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/679e3ce485b99e84c775d28e2e96fade9a7fb50a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/phpmd/phpmd/zipball/74a1f56e33afad4128b886e334093e98e1b5e7c0
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/phpseclib/phpseclib/zipball/56483a7de62a6c2a6635e42e93b8a9e25d4f0ec6
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1e0cd5370df5dd2e556a36b9c62f62e555870495
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/phpstan/phpstan/zipball/2770dcdf5078d0b0d53f94317e06affe88419aa8
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/rectorphp/rector/zipball/40f9cf38c05296bd32f444121336a521a293fa61
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/code-unit/zipball/54391c61e4af8078e5b276ab082b6d3c54c9ad64
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/comparator/zipball/85c77556683e6eee4323e4c5468641ca0237e2e8
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/environment/zipball/a5c75038693ad2e8d4b6c15ba2403532647830c4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/exporter/zipball/70a298763b40b213ec087c51c739efcaa90bcd74
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1c6cb5dfe412af3d0dfd414cfd110e3b9cfdbc3c
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/f6458abbf32a6c8174f8f26261475dc133b3d9dc
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/type/zipball/f77d2d4e78738c98d9a68d2596fe5e8fa380f449
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/sebastianbergmann/version/zipball/c687e3387b99f5b03b6caa64c74b63e2936ff874
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/symfony/config/zipball/8a09223170046d2cfda3d2e11af01df2c641e961
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/dependency-injection/zipball/82119812ab0bf3425c1234d413efd1b19bb92ae4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/error-handler/zipball/99f81bc944ab8e5dae4f21b4ca9972698bbad0e4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/event-dispatcher/zipball/b7dc69e71de420ac04bc9ab830cf3ffebba48191
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/symfony/html-sanitizer/zipball/8740fc48979f649dee8b8fc51a2698e5c190bf12
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/http-client-contracts/zipball/75d7043853a42837e68111812f4d964b01e5101c
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/http-client/zipball/4b62871a01c49457cf2a8e560af7ee8a94b87a62
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/http-foundation/zipball/c061c7c18918b1b64268771aad04b40be41dd2e6
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/http-kernel/zipball/b796dffea7821f035047235e076b60ca2446e3cf
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/intl/zipball/e6db84864655885d9dac676a9d7dde0d904fda54
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/mailer/zipball/ab97ef2f7acf0216955f5845484235113047a31d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/mime/zipball/b1b828f69cbaf887fa835a091869e55df91d0e35
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/polyfill-php82/zipball/5d2ed36f7734637dacc025f179698031951b1692
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/polyfill-php83/zipball/17f6f9a6b1735c0f163024d959f700cfbc5155e5
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/routing/zipball/8dc648e159e9bac02b703b9fbd937f19ba13d07c
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/var-dumper/zipball/b8abe7daf2730d07dfd4b2ee1cecbf0dd2fbdabb
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/var-exporter/zipball/0f020b544a30a7fe8ba972e53ee48a74c0bc87f4
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/symfony/yaml/zipball/d4f4a66866fe2451f61296924767280ab5732d9d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/tecnickcom/TCPDF/zipball/ca5b6de294512145db96bcbc94e61696599c391d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/thephpleague/commonmark/zipball/10732241927d3971d28e7ea7b5712721fa2296ca
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/thephpleague/uri-interfaces/zipball/08cfc6c4f3d811584fb09c37e2849e6a7f9b0742
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/thephpleague/uri/zipball/81fb5145d2644324614cc532b28efd0215bda430
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/tivie/php-htaccess-parser/zipball/14e14d066533c340851172ba1019ff52890b30b3
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/twigphp/Twig/zipball/285123877d4dd97dd7c11842ac5fb7e86e60d81d
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/twigphp/intl-extra/zipball/05bc5d46b9df9e62399eae53e7c0b0633298b146
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/OGVjtG /usr/bin/composer install --no-interaction --no-dev (http block)
  • https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/rDQ69o /usr/bin/composer install --no-interaction (http block)
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)
  • https://api.github.com/repos/zircote/swagger-php/zipball/7df10e8ec47db07c031db317a25bef962b4e5de1
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/SAbnFS /usr/bin/composer install --dev --no-interaction (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>"Add new category" causes phpMyFAQ Fatal error</issue_title>
<issue_description>Describe the bug
If access to a category is restricted to groups that the administrator does not belong to, and the administrator tries to add a new category to that category, a "phpMyFAQ Fatal error" message appears.

Screenshots
Image
Image
Image
Image

phpMyFAQ (please complete the following information):

  • phpMyFAQ version 4.0.13
  • PHP version 8.3.26
  • Database MySQL
  • Elasticsearch no</issue_description>

Comments on the Issue (you are @copilot in this section)

@thorsten @kto2038 did you use the user "admin"?

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link

coderabbitai bot commented Nov 1, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: thorsten <45284+thorsten@users.noreply.github.com>
@thorsten thorsten marked this pull request as ready for review November 1, 2025 16:01
Copilot AI and others added 2 commits November 1, 2025 16:02
Co-authored-by: thorsten <45284+thorsten@users.noreply.github.com>
Co-authored-by: thorsten <45284+thorsten@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix phpMyFAQ fatal error when adding new category Fix TypeError when adding subcategory to group-restricted parent category Nov 1, 2025
Copilot AI requested a review from thorsten November 1, 2025 16:08
@thorsten thorsten merged commit 4841f61 into 4.0 Nov 2, 2025
12 checks passed
@thorsten thorsten deleted the copilot/fix-phpmyfaq-fatal-error branch November 2, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants