You are not logged in.
Right, after system upgrade with `pacman -Syu` loading fails with the error:
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
intl (more information)
That extension has been required since v1.36 or so
Cluesticks as to what is preventing Mediawiki from loading?
Be Appropriate && Follow Your Curiosity
Offline
Cluesticks as to what is preventing Mediawiki from loading?
The error message gives more than a clue, it tells you explicitly. Is the php_intl extension enabled / loaded in your php.ini or not? Does it show up in the output from phpinfo()?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Moving to Applications and Desktop Environments.
Offline
I've used Mediawiki for years, into has been required since v1.36
So, yes, it is installed and well enough for things to work until this upgrade.
How would I go about getting phpinfo() ??
Be Appropriate && Follow Your Curiosity
Offline
And my `php -i` shows:
Configure Command => './configure' '--srcdir=../php-8.2.8' '--config-cache' '--prefix=/usr' '--sbindir=/usr/bin' '--sysconfdir=/etc/php' '--localstatedir=/var' '--with-layout=GNU' '--with-config-file-path=/etc/php' '--with-config-file-scan-dir=/etc/php/conf.d' '--disable-rpath' '--mandir=/usr/share/man' '--disable-gcc-global-regs' '--enable-cgi' '--enable-fpm' '--with-fpm-systemd' '--with-fpm-acl' '--with-fpm-user=http' '--with-fpm-group=http' '--enable-embed=shared' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-dba=shared' '--enable-exif=shared' '--enable-ftp=shared' '--enable-gd=shared' '--enable-intl=shared' '--enable-mbstring' '--enable-pcntl' '--enable-shmop=shared' '--enable-soap=shared' '--enable-sockets=shared' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--with-bz2=shared' '--with-curl=shared' '--with-enchant=shared' '--with-external-gd' '--with-external-pcre' '--with-ffi=shared' '--with-gdbm' '--with-gettext=shared' '--with-gmp=shared' '--with-iconv=shared' '--with-kerberos' '--with-ldap=shared' '--with-ldap-sasl' '--with-mhash' '--with-mysql-sock=/run/mysqld/mysqld.sock' '--with-mysqli=shared' '--with-openssl' '--with-password-argon2' '--with-pdo-dblib=shared,/usr' '--with-pdo-mysql=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-pgsql=shared' '--with-pdo-sqlite=shared' '--with-pgsql=shared' '--with-pspell=shared' '--with-readline' '--with-snmp=shared' '--with-sodium=shared' '--with-sqlite3=shared' '--with-tidy=shared' '--with-unixODBC=shared' '--with-xsl=shared' '--with-zip=shared' '--with-zlib' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/php/src=/usr/src/debug/php -flto=auto' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/php/src=/usr/src/debug/php -flto=auto'
intl
intl.default_locale => no value => no value
intl.error_level => 2 => 2
intl.use_exceptions => Off => Off
Be Appropriate && Follow Your Curiosity
Offline
So, yes, it is installed
I didn't ask if it was installed - I asked if it was enabled in your php.ini. It is not in the default / stock php.ini, so if you have not done so yourself, it isn't. And FWIW, claiming it is installed is rather off-putting as I know you're not really being upfront about it: there is no (seperate) package to "install". So rather than just claiming an affirmative answer without actually checking, check. There's no point in helping diagnose a potential problem if you will not participate in good faith. Check your php.ini.
How would I go about getting phpinfo() ??
You put that function on a served page and check it in a browser. But this is really secondary to checking the settings in your php.ini.
Last edited by Trilby (2023-07-29 21:28:10)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I apologize for being off putting.
To get into the config files:
grep intl php.ini
extension=intl.so
[into]
;intl.default_locale =
; happens within intl functions. The value is the level of the error produced.
intl.error_level = E_WARNING
intl.use_exceptions = 0and
grep intl php.ini.init
extension=intl.so
[intl]
;intl.default_locale =
; happens within intl functions. The value is the level of the error produced.
intl.error_level = E_WARNING
intl.use_exceptions = 0and for the php7 versions:
grep intl php.ini
extension=intl
[intl]
;intl.default_locale =
; happens within intl functions. The value is the level of the error produced.
intl.error_level = E_WARNING
intl.use_exceptions = 0and
grep intl php.ini
extension=intl
[intl]
;intl.default_locale =
; happens within intl functions. The value is the level of the error produced.
intl.error_level = E_WARNING
intl.use_exceptions = 0These examples confirm that it is enabled.
And to reiterate my issue:
It worked.
I did an upgrade with `pacman -Syu`
It failed.
That makes no sense, hence I am here asking.
Last edited by MichaelRpdx (2023-07-29 22:50:52)
Be Appropriate && Follow Your Curiosity
Offline
Thanks. If you could edit that post to add code thats, that'd be appreciated - but yes, that does confirm it is enabled, so that addresses the initial error message from MediaWiki. Now a further confirmation from phpinfo() would be good. E.g., if you can (temporarily) add a file to the server such as:
<?php
phpinfo();Then visit that page in a browser and copy-past the content - or better yet, if this server is publicly available and you could link to that phpinfo page we could check it ourselves.
Last edited by Trilby (2023-07-29 22:42:01)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
To get into the config files:
grep intl php.ini extension=intl.so [into] …
That does not look right.
english is not my first language. If you find a mistake in this post, please mention it in your reply – this way I can learn. TIA
Offline
That does not look right.
What seems wrong about it? Other than the obvious typo which was clearly just from posting it to the forum?
Last edited by Trilby (2023-07-30 11:52:28)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
What seems wrong about it?
The obvious typo. I’m not convinced that it emerged while copypasting the config …
english is not my first language. If you find a mistake in this post, please mention it in your reply – this way I can learn. TIA
Offline
What typo?
Be Appropriate && Follow Your Curiosity
Offline
I’m not convinced that it emerged while copypasting the config …
Of course it did, grep does not spellcheck! If the typo was in the ini file grep would not have returned that line.
(the typo: [intl] vs [into]).
Last edited by Trilby (2023-07-30 16:47:38)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Of course it did, grep does not spellcheck!
You’re right, I did not notice that it was grep output. So it’s not even copypasta, and there may be other inaccuracies in transfer. And typos that do not show up because they’re not grepped for …
Last edited by nichts (2023-07-30 16:53:36)
english is not my first language. If you find a mistake in this post, please mention it in your reply – this way I can learn. TIA
Offline