Skip to content

Error: Call to undefined method OCP\Util::isIE() #30031

@RyanNeumann

Description

@RyanNeumann

Hey all,

Recently upgraded to Nextcloud 23 and am experiencing an issue.
My current setup:

Ubuntu 20.04
PHP8.0-fpm
Nginx

Since the upgrade, my nextcloud webpage shows only a 500 error. If I downgrade to PHP7.4-fpm, then the screen turns into "Internal Service Error", with no indication of why in the logs. Obviously, upgrading to PHP8.1-fpm throws the "Nextcloud is not compatible with the version of PHP"

Below is the nextcloud log of attempting to access the site. From the log, it seems that it is an issue with nextcloud rather than PHP. I'm hoping some of the experts here can provide some clarity on where I am going wrong. Thank you!

{
"reqId": "0PRZwmfr3h9jEmTjxxaJ",
"level": 1,
"time": "2021-12-01T22:42:21+00:00",
"remoteAddr": "...",
"user": "--",
"app": "core",
"method": "GET",
"url": "/nextcloud/",
"message": "Trusted domain error. "
..." tried to access using "..." as host.",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36",
"version": "23.0.0.10"
}
{
"reqId": "0PRZwmfr3h9jEmTjxxaJ",
"level": 3,
"time": "2021-12-01T22:42:21+00:00",
"remoteAddr": "
...",
"user": "--",
"app": "index",
"method": "GET",
"url": "/nextcloud/",
"message": "Call to undefined method OCP\Util::isIE()",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36",
"version": "23.0.0.10",
"exception": {
"Exception": "Error",
"Message": "Call to undefined method OCP\Util::isIE()",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/lib/private/legacy/OC_Template.php",
"line": 182,
"function": "__construct",
"class": "OC\TemplateLayout",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Template/Base.php",
"line": 132,
"function": "fetchPage",
"class": "OC_Template",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/base.php",
"line": 786,
"function": "printPage",
"class": "OC\Template\Base",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/base.php",
"line": 1087,
"function": "init",
"class": "OC",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/index.php",
"line": 35,
"args": [
"/var/www/html/nextcloud/lib/base.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/nextcloud/lib/private/TemplateLayout.php",
"Line": 83,
"CustomMessage": "--"
}
}
{
"reqId": "0PRZwmfr3h9jEmTjxxaJ",
"level": 3,
"time": "2021-12-01T22:42:21+00:00",
"remoteAddr": "
...**",
"user": "--",
"app": "PHP",
"method": "GET",
"url": "/nextcloud/",
"message": "Error: Call to undefined method OCP\Util::isIE() at /var/www/html/nextcloud/lib/private/TemplateLayout.php#83",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36",
"version": "23.0.0.10"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapneeds infostaleTicket or PR with no recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions