Kunena / Kunena-Forum

Kunena Forum - Forum / Bulletin Board / Discussions component for Joomla - This is the 6.x/5.x main development branch. Please do not open issues regarding earlier versions of Kunena
https://www.kunena.org
GNU General Public License v3.0
1.75k stars 814 forks source link

Undefined constant "Kunena\Forum\Libraries\Factory\KPATH_ADMIN" #9669

Open pfitzer opened 2 months ago

pfitzer commented 2 months ago

Describe the bug Building the joomla index with the cli command ends with error: Undefined constant "Kunena\Forum\Libraries\Factory\KPATH_ADMIN"

To Reproduce

  1. ssh connect to your server and cd to joomla installation dir
  2. run php cli/joomla.php finder:index

Expected behavior Command should run without any errors

Actual result

php cli/joomla.php finder:index
Finder Indexer
==========================

 Starting Indexer
 Setting up Smart Search plugins

In KunenaFactory.php line 215:

  Undefined constant "Kunena\Forum\Libraries\Factory\KPATH_ADMIN"

System information

Joomla version: 4.4.4 Kunena version: 6.2.6 Php version: 8.3.6

pfitzer commented 2 months ago

I have tested this patch and there is another error showing know

 php cli/joomla.php finder:index
Finder Indexer
==========================

 Starting Indexer
 Setting up Smart Search plugins
 Setup 15135 items in 0.032 seconds.

In KunenaRoute.php line 902:

  Call to undefined method Joomla\CMS\Application\ConsoleApplication::getMenu()
github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity.