CodeIgniter 显示此问题:SYSTEMPATH/CodeIgniter.php 第 219 行。 我已经将 extension=intl 添加到 php.ini 文件中。但错误依然存在。 错误:
框架需要安装并加载以下扩展: 国际
1。 SYSTEMPATH/CodeIgniter.php : 219 -CodeIgniter\Exceptions\FrameworkException::forMissingExtension (参数)
212 foreach ($requiredExtensions as $extension) {
213 if (! extension_loaded($extension)) {
214 $missingExtensions[] = $extension;
215 }
216 }
217
218 if ($missingExtensions !== []) {
219 throw FrameworkException::forMissingExtension(implode(', ', $missingExtensions));
220 }
221 }
222
223 /**
224 * Initializes Kint
225 */
226 protected function initializeKint()
2。 SYSTEMPATH/CodeIgniter.php : 177 — CodeIgniter\CodeIgniter->resolvePlatformExtensions ()
170 $this->bootstrapEnvironment();
171
172 // Setup Exception Handling
173 Services::exceptions()->initialize();
174
175 // Run this check for manual installations
176 if (! is_file(COMPOSER_PATH)) {
177 $this->resolvePlatformExtensions(); // @codeCoverageIgnore
178 }
179
180 // Set default locale on the server
181 locale_set_default($this->config->defaultLocale ?? 'en');
182
183 // Set default timezone on the server
184 date_default_timezone_set($this->config->appTimezone ?? 'UTC');
3. SYSTEMPATH/bootstrap.php : 146 — CodeIgniter\CodeIgniter->初始化 ()
139 *
140 * The CodeIgniter class contains the core functionality to make
141 * the application run, and does all of the dirty work to get
142 * the pieces all working together.
143 */
144
145 $app = Services::codeigniter();
146 $app->initialize();
147
148 return $app;
149
4。需要 FCPATH/index.php — require()
我已经在 php.ini 中添加了扩展:
extension=php_intl.dll
但是还是不行。
找到 php.ini,然后删除“;”在extension=intl行中
找到 php.ini,然后删除“;”在extension=intl行中。
然后转到 XAMPP 控制面板,单击 Apache 行服务上的“停止”,然后单击“重新启动”。
我通过安装 php-xml 模块解决了该错误 ubuntu:#apt-get install php-xml
环境 PHP 8.1.6 / CI 4.1.9
我该如何解决这个问题?我也遇到同样的情况