We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Fatal error: Class 'Phalcon\Config\Adapter\Ini' not found in D:\wamp\www\phalcon\public\index.php on line 18

Testing invo application in windows 7 under wamp 32 / Apache Version 2.4.9 / PHP 5.5.12 when i access this app via https://localhost/phalcon/public/ i receive this error: "Fatal error: Class 'Phalcon\Config\Adapter\Ini' not found in D:\wamp\www\phalcon\public\index.php".

This is a problem in installation but i have failed to determine the cause.

Config file is:

[database]

adapter = Mysql

host = localhost

username = root

password =

name = invo

[application]

controllersDir = app/controllers/

modelsDir = app/models/

viewsDir = app/views/

pluginsDir = app/plugins/

formsDir = app/forms/

libraryDir = app/library/

baseUri = /phalcon/

Phpinfo:

Compiler MSVC11 (Visual C++ 2012)

Architecture x86

The dll downloaded was "Phalcon 1.3.4 - Windows x86 for PHP 5.5.0 (VC11)". This dll was included in both php.ini as extensiones as described in https://docs.phalcon.io/es/latest/reference/wamp.html.

Wamp check or mark phalcon extension as installed.

The index.php file is:

<?php

error_reporting(E_ALL);

use Phalcon\Mvc\Application; use Phalcon\Config\Adapter\Ini as ConfigIni;

try {

define('APP_PATH', realpath('..') . '/');

$config = new ConfigIni(APP_PATH . 'app/config/config.ini'); <---This is the error line

There is something wrong but i am unabled to find out what is.

The namespace is correct, so if PHP cannot load it, it means either you haven't installed Phalcon correctly or misconfigured it so PHP doesn't load the extension. What does phpinfo() output say? Is Phalcon loaded?



3.2k

Hello scrnjakovic,

You are right. I finnaly instaled the library phalcon_x86_VC11_php5.5.0_1.3.4. That's the dll that corresponds to the version of php that shows in sysinfo or phpinfo . In this case:

System Windows NT TOSH 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) i586

Build Date Apr 30 2014 11:13:46

Compiler MSVC11 (Visual C++ 2012)

Architecture x86

Thanks