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

[BUG]: Error: Class "Phalcon\'Mvc\View" not found in Base.php:118 #16698

Open
count0nsk opened this issue Feb 23, 2025 · 3 comments
Open

[BUG]: Error: Class "Phalcon\'Mvc\View" not found in Base.php:118 #16698

count0nsk opened this issue Feb 23, 2025 · 3 comments
Labels
bug A bug report status: unverified Unverified

Comments

@count0nsk
Copy link

Hello, I newbie in Phalcon. Try to create the app, but have this problem (in title).

Base.php file:

use Phalcon\Di\FactoryDefault;
use Phalcon\Mvc\View;
use Phalcon\Mvc\View\Engine\Volt as VoltEngine;

...

public function __create()
    {
        $volt_functions = $this->volt_functions;
        $appcfg = new AppConfig();
        $this->view = new View();
//crash here
...

Expected behavior
All work.

Details

  • Phalcon version: 5.0.2
  • PHP Version: 8.1.31
  • Operating System: Fedora 37
  • Installation type: installing via package manager
  • Zephir version (if any): no
  • Server: lighttpd 1.4.74
@count0nsk count0nsk added bug A bug report status: unverified Unverified labels Feb 23, 2025
@niden
Copy link
Member

niden commented Feb 24, 2025

On your server, or wherever you have this, create a simple PHP file called test.php and add this:

<?php

error_reporting(E_ALL);
ini_set('display_errors', 'On');

echo (new Phalcon\Support\Version())->get();

Then run it and see what it reports

php test.php

By the looks of it, Phalcon is not installed or enabled.

@count0nsk
Copy link
Author

Then run it and see what it reports

php pha.php
5.0.2

@raicabogdan
Copy link

Can you include the web server error_log for that specific crash? It doesn't make sense to have everything crash by just instantiating a class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: unverified Unverified
Projects
None yet
Development

No branches or pull requests

3 participants