Announcement

#1 2021-09-06 01:29:01

WerewolfLord
Member
2021-09-06
1

Error accessing dashboard on fresh install of 11.5.0

Hello/Hi/Greetings,

I am getting a php error when trying to access the dashboard.  This is on a fresh install of 11.5.0.

Fatal error: Uncaught Error: Call to undefined function mb_substr() in /webroot/admin/intro.php:356 Stack trace: #0 /webroot/admin.php(298): include() #1 {main} thrown in /webroot/admin/intro.php on line 356

Line 356 of admin/intro.php is:

Code:

  $day_labels[] = mb_substr($lang['day'][($i+1)%7], 0, 3);

If I comment out the for-loop in lines 353-357, the dashboard will load, but I don't know what other problems this will cause.

Code:

//for ($i=0; $i<=6; $i++)
//{
  // first 3 letters of day name
//  $day_labels[] = mb_substr($lang['day'][($i+1)%7], 0, 3);
//}

(Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])

    Piwigo 11.5.0 Check for upgrade
    Operating system: Linux
    PHP: 7.4.21 (Show info) [2021-09-05 15:54:28]
    MySQL: 5.5.5-10.5.11-MariaDB-1 [2021-09-05 15:54:28]
    Graphics Library: External ImageMagick 6.9.11-60

Piwigo URL: http://testpics.dwsl.net
I am running this on a private server, but have replicated it to the server above, login piwigo/piwigo

On another note, both installs (the private server and the testpics server) were fresh installs of Debian 11.  The dependencies I installed were as follows.  Does it look like I missed anything, that could be causing this error?:

Code:

sudo apt-get install apache2 mariadb-server mariadb-client perl php libapache2-mod-php php-mysql php-gd imagemagick libmagickwand-dev libimage-exiftool-perl poppler-utils unzip

Thank you.

Last edited by WerewolfLord (2021-09-06 01:29:59)

Offline

 

#2 2021-09-06 17:31:53

erAck
Only trying to help
2015-09-06
2023

Re: Error accessing dashboard on fresh install of 11.5.0

Your PHP doesn't have mbstring enabled. Searching this forum for mb_substr may have helped.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact