Announcement

#1 2024-08-12 15:01:27

swie99
Member
2024-08-12
3

error when go to gallery page - latest stable version

Hello,
After successfully installed piwigo on my webserver (only for LAN acces) I added few photos from my device(also succes).
But when i try go to main page I get error only


(
Fatal error: Uncaught Error: Call to undefined function mb_regex_encoding() in /opt/www/include/smarty/libs/plugins/shared.mb_str_replace.php:47 Stack trace: #0 /opt/www/include/smarty/libs/plugins/modifier.replace.php(34): smarty_mb_str_replace('dt', 'h3', '<h3>Albumy</h3>...') #1 /opt/www/_data/templates_c/tpmaej^18e1d0c7bc85e8e5c8ab4d384f5ed6eaee4d664c_0.file.menubar.tpl.php(44): smarty_modifier_replace('<h3>Albumy</h3>...', 'dt', 'h3') #2 /opt/www/include/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66ba0627b64d77_18996529(Object(Smarty_Internal_Template)) #3 /opt/www/include/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #4 /opt/www/include/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #5 /opt/www/include/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0) #6 /opt/www/include/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #7 /opt/www/include/template.class.php(486): Smarty_Internal_TemplateBase->fetch('menubar.tpl') #8 /opt/www/include/template.class.php(409): Template->parse('menubar', true) #9 /opt/www/include/block.class.php(192): Template->assign_var_from_handle('MENUBAR', 'menubar') #10 /opt/www/include/menubar.inc.php(380): BlockManager->apply('MENUBAR', 'menubar.tpl') #11 /opt/www/include/menubar.inc.php(15): initialize_menu() #12 /opt/www/index.php(103): include('/opt/www/includ...') #13 {main} thrown in /opt/www/include/smarty/libs/plugins/shared.mb_str_replace.php on line 47)


Do you know why ?

Offline

 

#2 2024-08-14 10:31:22

erAck
Only trying to help
2015-09-06
2129

Re: error when go to gallery page - latest stable version

You forgot to install or enable the PHP mbstring module.


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

Offline

 

#3 2024-08-14 17:09:36

swie99
Member
2024-08-12
3

Re: error when go to gallery page - latest stable version

Mb String is enabled

root@unknown:/tmp/home/root# php-cli -m
[PHP Modules]
Core
ctype
date
dom
exif
fileinfo
filter
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
pcre
PDO
pdo_mysql
pdo_sqlite
posix
random
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]

Offline

 

#4 2024-08-15 10:50:12

erAck
Only trying to help
2015-09-06
2129

Re: error when go to gallery page - latest stable version

Make sure that php-cli uses the same PHP version and ini settings as the one the web server environment uses, they can be different.


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

Offline

 

#5 2024-08-15 10:59:25

OHappyDay
Member
2023-02-08
84

Re: error when go to gallery page - latest stable version

Check the php version used by the webserver:

Create a .php page with this content within you piwigo installation:

<?php phpinfo(); ?>

and call that page with you browser. The version of php is shown at the very top and you can also check whether the mbstring module is installed with that version of php. There should be a section titled "mbstring".
In that section it is shown whether Multibyte support is enabled or not.

Offline

 

#6 2024-08-20 13:27:17

swie99
Member
2024-08-12
3

Re: error when go to gallery page - latest stable version

Code:

mbstring
Multibyte Support   enabled
Multibyte string engine   libmbfl
HTTP input encoding translation   disabled
libmbfl version   1.3.2
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive  Local Value  Master Value
mbstring.detect_order  no value  no value
mbstring.encoding_translation  Off  Off
mbstring.http_input  no value  no value
mbstring.http_output  no value  no value
mbstring.http_output_conv_mimetypes  ^(text/|application/xhtml\+xml)  ^(text/|application/xhtml\+xml)
mbstring.internal_encoding  no value  no value
mbstring.language  neutral  neutral
mbstring.strict_detection  Off  Off
mbstring.substitute_character  no value  no value

PHP Version 8.3.9

Offline

 

#7 2024-08-21 10:55:06

erAck
Only trying to help
2015-09-06
2129

Re: error when go to gallery page - latest stable version

Looks all good. The same information btw is provided in Piwigo's Admin -> Tools -> Maintenance, tab Environment, PHP Show info, if that doesn't differ I don't know.

Your PHP version 8.3.9 might be too new though to be fully supported by Piwigo, you could try with 8.2 or even 8.1


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

Offline

 

Board footer

Powered by FluxBB

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