When brand-new install 3.4.0.1, http error 500 returned

Here is the error codes

[Thu Jul 27 17:44:34.603856 2023] [proxy_fcgi:error] [pid 17378:tid 139876780910336] [remote 101.86.102.169:1224] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function PKP\i18n\putenv() in /www/wwwroot/chuck.vip/lib/pkp/classes/i18n/Locale.php:147\nStack trace:\n#0 /www/wwwroot/chuck.vip/lib/pkp/classes/i18n/Locale.php(129): PKP\i18n\Locale->setLocale()\n#1 /www/wwwroot/chuck.vip/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /www/wwwroot/chuck.vip/lib/pkp/classes/template/PKPTemplateManager.php(157): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /www/wwwroot/chuck.vip/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /www/wwwroot/chuck.vip/lib/pkp/classes/template/PKPTemplateManager.php(1394): APP\template\TemplateManager->initialize()\n#5 /www/wwwroot/chuck.vip/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /www/wwwroot/chuck.vip/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /www/wwwroot/…'
[Thu Jul 27 17:44:36.439868 2023] [proxy_fcgi:error] [pid 17378:tid 139876473235200] [client 171.67.70.229:59982] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function PKP\i18n\putenv() in /www/wwwroot/chuck.vip/lib/pkp/classes/i18n/Locale.php:147\nStack trace:\n#0 /www/wwwroot/chuck.vip/lib/pkp/classes/i18n/Locale.php(129): PKP\i18n\Locale->setLocale()\n#1 /www/wwwroot/chuck.vip/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /www/wwwroot/chuck.vip/lib/pkp/classes/template/PKPTemplateManager.php(157): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /www/wwwroot/chuck.vip/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /www/wwwroot/chuck.vip/lib/pkp/classes/template/PKPTemplateManager.php(1394): APP\template\TemplateManager->initialize()\n#5 /www/wwwroot/chuck.vip/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /www/wwwroot/chuck.vip/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /www/wwwroot/…'
[Thu Jul 27 17:44:41.752209 2023] [proxy_fcgi:error] [pid 17229:tid 139876464842496] [client 171.67.70.229:56096] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function PKP\i18n\putenv() in /www/wwwroot/chuck.vip/lib/pkp/classes/i18n/Locale.php:147\nStack trace:\n#0 /www/wwwroot/chuck.vip/lib/pkp/classes/i18n/Locale.php(129): PKP\i18n\Locale->setLocale()\n#1 /www/wwwroot/chuck.vip/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /www/wwwroot/chuck.vip/lib/pkp/classes/template/PKPTemplateManager.php(157): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /www/wwwroot/chuck.vip/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /www/wwwroot/chuck.vip/lib/pkp/classes/template/PKPTemplateManager.php(1394): APP\template\TemplateManager->initialize()\n#5 /www/wwwroot/chuck.vip/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /www/wwwroot/chuck.vip/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /www/wwwroot/…'

Thank you very much for checking my message.

Hello @bluecover :slight_smile:

Just a long shot… but you may want to check that the apache_getenv function is not disabled in your php.ini

Many thanks for your reply! Did you mean the apache_setenv function? It was disabled, and I abled it just now, and it works!!! Awesome!

1 Like

Great!
Glad you had it working :slight_smile:

… it was a “sniper shot” after all :sweat_smile: