after installation Class missing Topic is solved

Need help installing Joomla! 4.x? For all Joomla! 4.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
trixo707
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Nov 22, 2023 10:04 am

after installation Class missing

Post by trixo707 » Wed Nov 22, 2023 10:12 am

Joomla told me "installation succesfull" but then "Class "Joomla\Plugin\Behaviour\Compat\Extension\Compat" not found" appeared. No chance to log in.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17471
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: after installation Class missing

Post by toivo » 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.
Toivo Talikka, Global Moderator

djcaptpln880
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 215
Joined: Mon Jul 26, 2021 9:32 am

Re: after installation Class missing

Post by djcaptpln880 » Fri Dec 08, 2023 3:36 pm

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.

StanByford
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue May 09, 2023 9:41 pm

Re: after installation Class missing

Post by StanByford » Fri Dec 22, 2023 6:23 pm

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.

mtomy2008
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jan 31, 2024 8:36 am

Re: after installation Class missing

Post by mtomy2008 » Wed Jan 31, 2024 8:42 am

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.
Appreciate it Toivo!, encountered the same issue, but that solution worked for me.
download lagu


Post Reply

Return to “Installation Joomla! 4.x”