Search code examples
phpcakephpcakephp-3.xcakephp-3.2

Intl and mbstring extension error is not showing in cakephp 3.2 in server


I am using cakephp 3.2 . Here my project is working on local perfectly . I have uploaded it to live server .In my server I have checked the phpinfo.php page and got that intl and mbstring extension is not enabled in the server ,but this two error message is not showing . I am not getting what is happening . As extension is not enabled in server so this 2 error message should come.

// You can remove this if you are confident you have intl installed.
if (!extension_loaded('intl')) {
    trigger_error('You must enable the intl extension to use CakePHP.', E_USER_ERROR);
}

// You can remove this if you are confident you have mbstring installed.
if (!extension_loaded('mbstring')) {
    trigger_error('You must enable the mbstring extension to use CakePHP.', E_USER_ERROR);
}

Any help? Thank you.


Solution

  • Put this lines in you root index.php file to show all errors

    error_reporting(E_ALL);
    ini_set("display_errors", "on");
    

    (overhead this line)

    require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';