简体   繁体   English

模块“ gmp”已加载警告代码点火器

[英]Module 'gmp' already loaded warning codeigniter

I freshly installed CI 3.1.0 and once on several refreshes I recieve this warning 我新安装了CI 3.1.0,并且几次刷新后都收到此警告

A PHP Error was encountered Severity: Core Warning Message: Module 'gmp' already loaded Filename: Unknown Line Number: 0 Backtrace: 遇到PHP错误严重性:核心警告消息:模块“ gmp”已加载文件名:未知行号:0回溯:

Can you tell me what to do to fix this? 您能告诉我该怎么做吗? Thank you in advance PS I already have CI 3 and CI 2 installed on the server and they don't throw any warning 预先谢谢您PS我已经在服务器上安装了CI 3和CI 2,它们没有发出任何警告

you can try this: 您可以尝试以下方法:

go to your index.php file from your codeigniter root folder. 从您的codeigniter根文件夹转到index.php文件。 Then set the value 0 in display error like the following codes: 然后在显示错误中将值设置为0,如以下代码所示:

switch (ENVIRONMENT)
    case 'development':
        error_reporting(-1);
        ini_set('display_errors', 0);
    break;

Maybe the extension is already been loaded in the PHP.ini file. 扩展名可能已经在PHP.ini文件中加载了。 Check the extensions that are being loaded and comment out the module in php.ini. 检查正在加载的扩展,并注释掉php.ini中的模块。

Hope that helps 希望能有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM