danielbrendel / hortusfox-web

Self-hosted collaborative plant management and tracking system for plant enthusiasts
https://www.hortusfox.com
MIT License
674 stars 34 forks source link

Internal server error on the admin page #260

Closed Zo-ey closed 2 months ago

Zo-ey commented 3 months ago

Describe the bug

I am getting an internal server error when trying to access the admin pannel> The error message is displayed in the banner.

Error message: 500 Internal Server ErrorException at /home/xxxx/hortusfox-web/app/modules/UtilsModule.php:247 Reported error: Call to undefined function locale_get_display_language() RefreshStack trace:#4 /home/xxxx/hortusfox-web/vendor/danielbrendel/asatru-php-framework/src/view.php(416) : eval()'d code(265): UtilsModule::getLanguageList#3 /home/xxxx/hortusfox-web/vendor/danielbrendel/asatru-php-framework/src/view.php(416): eval#2 /home/xxxx/hortusfox-web/vendor/danielbrendel/asatru-php-framework/src/view.php(764): Asatru\View\ViewHandler::out#1 /home/xxxx/hortusfox-web/vendor/danielbrendel/asatru-php-framework/src/bootstrap.php(124): HandleView#0 /home/xxxx/hortusfox-web/public/index.php(25): require_once ( '/home/xxxx/hortusfox-web/vendor/danielbrendel/asatru-php-framework/src/bootstrap.php' )

To Reproduce Steps to reproduce the behavior:

  1. Login with your initial admin user account after a fresh install
  2. Click on 'Admin Area'

Expected behavior A display of the admin panel.

Software:

Desktop (please complete the following information):

Additional context I am sorry if this problem comes from my inexpertise. Web development is not one of my programming skills, I just wanted to try this app that seems pretty cool :). I used a freshly installed Xampp with default configuration, except for what is indicated in the troubleshooting section here, and the indicated patch here. Thank you for all this work!

danielbrendel commented 3 months ago

Hi, you need to enable the intl extension in your php.ini.

See here: https://stackoverflow.com/a/53013744