I foolishly did an apt update && apt upgrade the other day, didn’t think much of it till I went to use owncloud and had the same issue. I’ve used sury.org to upgrade to php 7.3, but now I get this error in my apache log:
[Sun Jun 14 12:17:42.116924 2020] [:error] [pid 31631] [client 192.168.8.5:40158] PHP Fatal error: Uncaught TypeError: Return value of OC::crashLog() must be an instance of void, none returned in /var/www/owncloud/lib/base.php:1056\nStack trace:\n#0 /var/www/owncloud/status.php(58): OC::crashLog(NULL)\n#1 {main}\n thrown in /var/www/owncloud/lib/base.php on line 1056
According to the changelog file, owncloud is now version 10.4.1.
php is 7.4.7
Any clue as to there I should start looking? The site only loads to an error page with the below content.
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times and include the technical details below in your report.
You’re right, and I posted the wrong version output, I’ve tried a few.
The correct version is 7.3.19-1+0~20200612.60+debian9~1.gbp6c8fe1.
When I tried 7.4, it just refused to load the page and told me 7.4 wasn’t supported.
i think this is a different issue then the one of the thread creator is facing and should be discussed in a new thread. Maybe a moderator can split this postings into a new topic?
Personally i would try to search for the error message at https://github.com/owncloud/core/issues or even create a new issue for the ownCloud developers because it seems to me that ownCloud should provide more info on this issue but somehow crashes without providing this info.
You’re right, it’s not there. When I went to create the issue on github, one of the things they asked me to do, was run the below command in the root of the owncloud folder.
sudo -u www-data php occ config:list system
The output from that included
An unhandled exception has been thrown: Error: Call to undefined function simplexml_load_file()
This indicated to the guy who commented that the xml module was missing.
When I got that installed, the site started up and could now tell me the rest of the modules that were missing.
ah i have seen the issue https://github.com/owncloud/core/issues/37524 now. Maybe you can still re-open this because i think ownCloud should still log the same message instead of a meaningless error like:
[Sun Jun 14 12:17:42.116924 2020] [:error] [pid 31631] [client 192.168.8.5:40158] PHP Fatal error: Uncaught TypeError: Return value of OC::crashLog() must be an instance of void, none returned in /var/www/owncloud/lib/base.php:1056\nStack trace:\n#0 /var/www/owncloud/status.php(58): OC::crashLog(NULL)\n#1 {main}\n thrown in /var/www/owncloud/lib/base.php on line 1056