Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class "Phalcon\Exception" not found in phalcon.phar/src/Commands/CommandsException.php on line 20 #1542

Open
r-martins opened this issue Sep 20, 2023 · 3 comments

Comments

@r-martins
Copy link

Questions should go to https://forum.phalcon.io
Documentation issues should go to https://github.com/phalcon/docs/issues

Expected and Actual Behavior

Describe what you are trying to achieve and what goes wrong.
When running phalcon.phar model foo it generates an error.

Fatal error: Uncaught Error: Class "Phalcon\Exception" not found in phar:///var/www/html/phalcon.phar/src/Commands/CommandsException.php on line 20

Error: Class "Phalcon\Exception" not found in phar:///var/www/html/phalcon.phar/src/Commands/CommandsException.php on line 20

Call Stack:
0.0134 5137528 1. {main}() /var/www/html/phalcon.phar:0
0.0236 5457280 2. require('phar:///var/www/html/phalcon.phar/phalcon') /var/www/html/phalcon.phar:14
0.0342 6157744 3. Phalcon\DevTools\Script->run() phar:///var/www/html/phalcon.phar/phalcon:64
0.0342 6157744 4. Phalcon\DevTools\Script->dispatch($command = class Phalcon\DevTools\Commands\Builtin\Model

Provide output if related

// paste output here

Provide minimal script to reproduce the issue
Just open an existing project and type the command.

// paste code

Details

  • System info and versions (if possible): (phalcon info)
    Phalcon DevTools (4.2.0)

Environment:
OS: Linux 16c64d6ef568 6.3.13-linuxkit #1 SMP PREEMPT Thu Sep 7 07:48:47 UTC 2023 aarch64
PHP Version: 8.2.10
PHP SAPI: cli
PHP Bin: /usr/local/bin/php
PHP Extension Dir: /usr/local/lib/php/extensions/no-debug-non-zts-20220829
PHP Bin Dir: /usr/local/bin
Loaded PHP config:
Versions:
Phalcon DevTools Version: 4.2.0
Phalcon Version: 5.3.0
AdminLTE Version: 3.0.1

  • Operating System: Linux (on docker)
  • Server: Apache
@daleffe
Copy link

daleffe commented Mar 18, 2024

Hi @r-martins,

For Phalcon 5.x you can use this version.

@vkamelin
Copy link

Hi @r-martins,

For Phalcon 5.x you can use this version.

Just another error

@vkamelin
Copy link

Nobody wants to solve that problem? Right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants