Can't see configuration page, all is in blank

未关闭
#655 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php

调研方向

安装 SSO & SAML 应用并从 Settings 中打开它,以复现空白配置页面。先从第 202 行的 templates/admin.php 和第 116 行的 lib/SAMLSettings.php 开始,然后将报告的 PHP 错误与正在渲染的配置数据进行比较。当配置面板显示且不再出现这些错误时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug regression

We are having a problem with the SSO & SAML authentication app. It does not load any type of configuration panel when you click it from the "Settings" menu

Steps to reproduce
  1. Install SSO & SAML authentication app
  2. Go Settings
  3. Click in the app
Expected behaviour

You should see the app configuration to be able to work with it

Actual behaviour

Any type of configuration appears, only the title (name of the app) is seen at the top and everything else is blank.

SSO & SAML authentication app version
5.0.2 and 5.0.3 (we try both), download from the app store

Web server:
nginx/1.22.0

PHP version:
PHP 8.0.23 (cli) (built: Sep 1 2022 22:32:41) ( NTS )

Nextcloud version:
24.0.5

NextCloud Logs:
Every time we access the app, we get the following 3 errors in the log:

Error PHP Error: Trying to access array offset on value of type null at /var/www/html/custom_apps/user_saml/templates/admin.php#202

Error PHP Error: Undefined array key 0 at /var/www/html/custom_apps/user_saml/templates/admin.php#202

Error PHP Error: foreach() argument must be of type array|object, null given at /var/www/html/custom_apps/user_saml/lib/SAMLSettings.php#116

Captura de pantalla 2022-09-16 a las 12 30 44
Captura de pantalla 2022-09-16 a las 12 30 05

主要语言
PHP
星标
106
派生
84
平均合并
1 天 11 小时
30 天内合并 PR
14

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/user_saml 的其他 Issue

查看 nextcloud/user_saml 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。