Page 1 of 1

after installation Class missing

Posted: Wed Nov 22, 2023 10:12 am
by trixo707
Joomla told me "installation succesfull" but then "Class "Joomla\Plugin\Behaviour\Compat\Extension\Compat" not found" appeared. No chance to log in.

Re: after installation Class missing

Posted: Thu Nov 23, 2023 10:07 pm
by toivo
Welcome to the Joomla forum!

The missing class is declared in the file plugins/behaviour/compat/src/Extension/Compat.php. Does that file exist?

Locate the file administrator/cache/autoload_psr4.php and delete it. Access Joomla 4 again and the file will get recreated automatically. This file is a map to all PHP classes Joomla uses and it is created and maintained automatically.

Re: after installation Class missing

Posted: Fri Dec 08, 2023 3:36 pm
by djcaptpln880
Do you have a backup to restore that is recent? This may be an easier more crude way to solve it...then look into why it maybe happening.

Re: after installation Class missing

Posted: Fri Dec 22, 2023 6:23 pm
by StanByford
toivo wrote: Thu Nov 23, 2023 10:07 pm Welcome to the Joomla forum!

The missing class is declared in the file plugins/behaviour/compat/src/Extension/Compat.php. Does that file exist?

Locate the file administrator/cache/autoload_psr4.php and delete it. Access Joomla 4 again and the file will get recreated automatically. This file is a map to all PHP classes Joomla uses and it is created and maintained automatically.
Thanks, had the same problem, that fixed it for me.