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
585 stars 254 forks source link

4.0 Clicks on foreign language tags producing errors #3061

Closed c1972 closed 3 months ago

c1972 commented 3 months ago

I have

If the language is set to German, clicking on an tag given to an english post produces an error. and vice versa If the language is set to English, the tag given to a german post produces the error.

Screenshot: foreign-tag-link

Error Code:

phpMyFAQ Fatal error
Uncaught exception: 'ErrorException'

Message: 'Undefined variable $relTags'

Stack trace:

#0 /home/www/cc10.de/search.php(270): phpMyFAQ\Core\Error::errorHandler(2, 'Undefined varia...', '/home/www/cc10....', 270)
#1 /home/www/cc10.de/index.php(749): require('/home/www/cc10....')
#2 {main}
Thrown in '/home/www/cc10.de/search.php' on line 270

Site: cc10.de 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