简体   繁体   中英

Fatal error: Uncaught Error: Class "Phalcon\Config" not found in Phalcon Php application

I installed Phalcon PHP version 5.0.0beta3 in my Ubuntu, because it's compatible with PHP 8.0, but when I run my application some Phalcon classes are not found, I already installed the psr module using the following command:

sudo apt install php8.0-psr

and I have installed phalcon.so by direct download from phalcon php github releases, so when I access my phpinfo() I can see it there:

evidence of phalcon.so instalation

any idea what's going on?

Phalcon 5 has a number of backwards incompatible changes. Most prominent is all the classes in the base Phalcon namespace were moved to more accurate locations.

  • Phalcon\Config -> Phalcon\Config\Config
  • Phalcon\Di -> Phalcon\Di\Di

Etc

Check the release notes at https://github.com/phalcon/cphalcon/blob/master/CHANGELOG-5.0.md for specific changes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM