-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP7 Check for missing modules incomplete (should check for php-xml) #2180
Comments
We actually check for this at server/lib/private/legacy/util.php Lines 731 to 765 in d7dd399
|
Yes, it looks like simplexml_load_file is called at /lib/private/App/InfoParser.php#61 At least I get this in my logs: |
here is the stack if that is of interest:
|
@nickvergessen Thanks for taking over this one |
Fix at #2619 |
I've encountered this error in 13.0.4 again. Fresh install of php-7.2 and received 500 error. Ran sudo -u www-data php occ upgrade to see if it maybe needed to finish an upgrade, and received:
Manually installed php-xml via apt install php-xml and after an apache2 restart I received php module missing errors for php-mbstring php-zip and php-curl. Before installing php-xml however, I did not see any of these notices and instead was just given a 500 error when navigating to the main page. |
The following helped me with the missing php modules: #15708 (comment) |
Hi, please update to at least 23.0.12 and report back if it fixes the issue. Thank you! |
I upgraded from 24 to 25.0.3 via web interface
suggestion
|
BTW, the nextcloud admin may not have root privileges which are necessary to install the missing modules |
@ferdiga: Did you by chance also upgrade your PHP version at same time as upgrading NC? Because this module was already required for NC24 so you would have had it. The only scenario I can think of where you wouldn't have - possibly - is if you upgraded PHP also just prior to upgrading to NC25. Whenever PHP gets upgraded on one's server, an admin has to check all the same PHP extensions are installed with the new version of PHP. Doing so is OS/distribution specific. I understand the request to enhance the checks for dependencies within NC, but it's unclear how you ended up in this state during a straight NC upgrade for an extension that's been required going back to at least NC10. Side note: The original fix proposed in PR #2619 was never merged. That may have been for good reason - I don't know as I haven't tested the patch myself. |
I am using Hetzner Storage share as a black box - hence I can (and should not) investigate what is running behind. But I will try with my other installation on my server |
Nextcloud Hub 4 (26.0.2) php -v no Error opening a 5MB dwg file , but nothing is displayed - just a white screen with icons of the app |
ah sorry Memory limit: 512 MB Max execution time: 3600 Upload max size: 2 MB Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, intl, ldap, exif, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache |
I'd say this is a feature request to check the extensions before upgrading |
There's your problem. They do it for you and tell you not to use the Nextcloud update process: |
sorry this was a very old thread starting in 2016!! |
Fixes nextcloud#2180 And prevents nextcloud#31473, nextcloud#23970, nextcloud#18610, nextcloud#15708 Avoids a 500 error and also gives a useful error message on the web interface if this module isn't installed, gets overlooked during a PHP upgrade, etc. While we check for it later, it's too late for session. Inspired by nextcloud#17163 Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Fixes nextcloud#2180 And prevents nextcloud#31473, nextcloud#23970, nextcloud#18610, nextcloud#15708 Avoids a 500 error and also gives a useful error message on the web interface if this module isn't installed, gets overlooked during a PHP upgrade, etc. While we check for it later, it's too late for session. Inspired by nextcloud#17163 Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Fixes nextcloud#2180 And prevents nextcloud#31473, nextcloud#23970, nextcloud#18610, nextcloud#15708 Avoids a 500 error and also gives a useful error message on the web interface if this module isn't installed, gets overlooked during a PHP upgrade, etc. While we check for it later, it's too late for session. Inspired by nextcloud#17163 Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
How to use GitHub
Steps to reproduce
Nextcloud seems to check if a required php module is missing. This does not seem to be the case for php-xml. If this module is missing only a 500 server error is reported when accessing the page.
Expected behaviour
Nextcloud should tell me that the xml php module is missing as it does for other modules (like mbstring for example).
Actual behaviour
A 500 server error is thrown and then I need to check the log. The log tells me:
And then I have to figure out myself that this may be due to a missing php module.
Server configuration
Operating system: Ubuntu Xenial
Web server: Apache 2x
Database: MariaDB
PHP version: 7.0
Nextcloud version: 10.0.1
Updated from an older Nextcloud/ownCloud or fresh install: Updated from owncloud -> nextcloud 9 -> nextcloud 10.0.1
The text was updated successfully, but these errors were encountered: