Closed brunomerod closed 3 years ago
What is your config file?
It's the default one. Jus recently created this project with 'phalcon project PROJECT_NAME'.
`<?php
defined('BASE_PATH') || define('BASE_PATH', getenv('BASE_PATH') ?: realpath(dirname(FILE) . '/../..')); defined('APP_PATH') || define('APP_PATH', BASE_PATH . '/app');
/*
Using Json connections */ return new \Phalcon\Config([ 'database' => [ 'adapter' => 'Mysql', 'host' => 'localhost', 'username' => 'root', 'password' => '', 'dbname' => 'test', 'charset' => 'utf8', ], 'application' => [ 'appDir' => APP_PATH . '/', 'controllersDir' => APP_PATH . '/controllers/', 'modelsDir' => APP_PATH . '/models/', 'migrationsDir' => APP_PATH . '/migrations/', 'viewsDir' => APP_PATH . '/views/', 'pluginsDir' => APP_PATH . '/plugins/', 'libraryDir' => APP_PATH . '/library/', 'cacheDir' => BASE_PATH . '/cache/',
// This allows the baseUri to be understand project paths that are not in the root directory
// of the webpspace. This will break if the public/index.php entry point is moved or
// possibly if the web server rewrite rules are changed. This can also be set to a static path.
'baseUri' => preg_replace('/public([\/\\\\])index.php$/', '', $_SERVER["PHP_SELF"]),
] ]); `
This error appears in cases, when you have config.php and config.ini at the same time in you configs folder or when other conflicting changes we done after default installation to files structure.
Driving through trace can detect Phalcon\DevTools\Builder\Path->getConfig('ini')
call at last stack, where 'ini' should be NULL by $type = null
methods signature, if no option were provided by input.
Is not reproducible normal ways.
Trying to create a controller from phalcon-devtools command line. It's working on every project except this one...
Command
phalcon controller test
Expected Behavior
Actual Behavior (Fatal Error Output)
Details
System info and versions
Phalcon
PHP Version
Server: Apache
Other related info (MySQL):