Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.25k stars 2.72k forks source link

Missing modules in the modules config section #27241

Open gherasasmaa opened 8 months ago

gherasasmaa commented 8 months ago

Bug

The end of the page is missing

image

And this is the bug reported by PHP

: Uncaught Error: Call to undefined function mb_strlen() in /var/www/dolibarr/htdocs/includes/parsedown/Parsedown.php:170 Stack trace: #0 /var/www/dolibarr/htdocs/includes/parsedown/Parsedown.php(39): Parsedown->lines() #1 /var/www/dolibarr/htdocs/core/lib/parsemd.lib.php(53): Parsedown->text() #2 /var/www/dolibarr/htdocs/core/modules/DolibarrModules.class.php(702): dolMd2Html() #3 /var/www/dolibarr/htdocs/admin/modules.php(704): DolibarrModules->getDescLong() #4 {main} thrown in/var/www/dolibarr/htdocs/includes/parsedown/Parsedown.php on line170

I resolved it by installing the PHP extension sudo apt-get install php-mbstring sudo service apache2 restart

And here is the environment : Dolibarr 18.0.3, PHP 8.2.7, Serveur sous Debian 6.1.66-1

Environment Version

18.0.3

Environment OS

Debian 6.1.66-1

Environment Web server

Apache/2.4.57

Environment PHP

8.2.7

Environment Database

No response

Environment URL(s)

htdocs/admin/modules.php?mainmenu=home

Expected and actual behavior

No response

Steps to reproduce the behavior

No response

Attached files

No response

altairis-tof commented 7 months ago

Hello @gherasasmaa According to the wiki Dolibarr the mbstring php extension if database is not utf8. Can you confirm it's your case please ? https://wiki.dolibarr.org/index.php?title=Dependencies_and_external_libraries