thorsten / phpMyFAQ

phpMyFAQ - Open Source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases
https://www.phpmyfaq.de
Mozilla Public License 2.0
582 stars 253 forks source link

nightly 2024-07-04 / Error when trying to create a category in English #3080

Closed c1972 closed 2 days ago

c1972 commented 4 days ago

The system on cc10 is setup with german language.

My first attempt to create a category in English was ignored by the system without comment, nothing happened.

The second attempt to create a category in English, this time without checking "active", reproducibly produces the following error code:

phpMyFAQ Fatal error
Uncaught exception: 'TypeError'

Message: 'phpMyFAQ\Entity\CategoryEntity::setActive(): Argument #1 ($active) must be of type bool, null given, called in /home/www/cc10.de/admin/category.main.php on line 77'

Stack trace:

#0 /home/www/cc10.de/admin/category.main.php(77): phpMyFAQ\Entity\CategoryEntity->setActive(NULL)
#1 /home/www/cc10.de/admin/index.php(297): require('/home/www/cc10....')
#2 {main}
Thrown in '/home/www/cc10.de/src/phpMyFAQ/Entity/CategoryEntity.php' on line 55

Site: cc10.de / nightly 2024-07-04 OS: Windows 11 Pro 23H2 Browser: Chrome 126.0.6478.127 phpMyFAQ Version: 4.0 PHP-Version: 8.2 Database: MariaDB 10.11.4 Elasticsearch: No

Regards Christian