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
You forgot to install or enable the PHP mbstring module.
Offline
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
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.
Offline
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
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
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
Offline