compat.php error fix

  • MOLEDesign
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #169198 by MOLEDesign
compat.php error fix was created by MOLEDesign
Just a quick tip. I installed the quickstart for EShop on Joomla5 and the site refused to load with error 500 in the front end and the following error (in admin)

missing class is declared in the file plugins/behaviour/compat/src/Extension/Compat.php

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.

This will fix your issues
The following user(s) said Thank You: Giang Dinh Truong

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
1 month 5 days ago #169227 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic compat.php error fix
Hello,

Yes, that's it. Thank you for sharing the solution.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong