partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 401 forks source link

Internal server error during web setup when creating admin user #443

Closed damoclark closed 8 years ago

damoclark commented 9 years ago

I'm using CentOS 7.1 with PHP 5.6, Apache 2.4 and Postgresql 9.4 from softwarecollections.org.

When getting to the web setup step of creating the admin user, I get an internal server error.
screen shot 2015-10-18 at 3 18 25 pm

No errors from composer install

The output of the apache error_log is as follows: [Sun Oct 18 14:06:01.684840 2015] [core:notice] [pid 802] AH00094: Command line: '/opt/rh/httpd24/root/usr/sbin/httpd -D FOREGROUND' [Sun Oct 18 15:09:46.263574 2015] [:error] [pid 2221] [client 192.168.100.9:51945] PHP Fatal error: Call to undefined function FOS\UserBundle\Util\mb_convert_case() in /opt/rh/httpd24/root/var/www/html/PartKeepr/vendor/friendsofsymfony/user-bundle/Util/Canonicalizer.php on line 18, referer: http://192.168.100.74/setup/

Output from the app/logs/setup.log: [2015-10-18 15:09:42] request.INFO: Matched route "partkeepr_setup_schemamigrationsetup_migrateschema". {"route_parameters":{"_controller":"PartKeepr\SetupBundle\Controller\SchemaMigrationSetupController::migrateSchemaAction","_route":"partkeepr_setup_schemamigrationsetup_migrateschema"},"request_uri":"http://192.168.100.74/setup.php/setup/schemaMigration"} [] [2015-10-18 15:09:46] request.INFO: Matched route "partkeepr_setup_adminusersetup_createuser". {"route_parameters":{"_controller":"PartKeepr\SetupBundle\Controller\AdminUserSetupController::createUserAction","_route":"partkeepr_setup_adminusersetup_createuser"},"request_uri":"http://192.168.100.74/setup.php/setup/createUser"} [] [2015-10-18 15:09:46] php.CRITICAL: Fatal Error: Call to undefined function FOS\UserBundle\Util\mb_convert_case() {"type":1,"file":"/opt/rh/httpd24/root/var/www/html/PartKeepr/vendor/friendsofsymfony/user-bundle/Util/Canonicalizer.php","line":18,"level":6143,"stack":[]} [] [2015-10-18 15:09:46] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "mb_convert_case" from namespace "FOS\UserBundle\Util"." at /opt/rh/httpd24/root/var/www/html/PartKeepr/vendor/friendsofsymfony/user-bundle/Util/Canonicalizer.php line 18 {"exception":"[object](Symfony\Component\Debug\Exception\UndefinedFunctionException%28code: 0%29: Attempted to call function "mb_convert_case" from namespace "FOS\UserBundle\Util". at /opt/rh/httpd24/root/var/www/html/PartKeepr/vendor/friendsofsymfony/user-bundle/Util/Canonicalizer.php:18)"} []

From the app/logs/setup_test.log file: [2015-10-18 15:09:46] php.DEBUG: include_once(/opt/rh/httpd24/root/var/www/html/PartKeepr/app/cache/setup/twig/f/6/f6aadf4b28cd51ab335832de9fba6b775bf2625a48e1f5774f2e098c4fd1bf20.php): failed to open stream: No such file or directory {"type":2,"file":"/opt/rh/httpd24/root/var/www/html/PartKeepr/vendor/twig/twig/lib/Twig/Cache/Filesystem.php","line":49,"level":28928} [] [2015-10-18 15:09:46] php.DEBUG: include_once(): Failed opening '/opt/rh/httpd24/root/var/www/html/PartKeepr/app/cache/setup/twig/f/6/f6aadf4b28cd51ab335832de9fba6b775bf2625a48e1f5774f2e098c4fd1bf20.php' for inclusion (include_path='.:/opt/rh/rh-php56/root/usr/share/pear:/opt/rh/rh-php56/root/usr/share/php') {"type":2,"file":"/opt/rh/httpd24/root/var/www/html/PartKeepr/vendor/twig/twig/lib/Twig/Cache/Filesystem.php","line":49,"level":28928} []

Drachenkaetzchen commented 9 years ago

It seems that the FOSUserBundle relies on the mbstring PHP extension. I will modify the setup to check for mbstring.

You should be able to install it on CentOS via the package php-mbstring