"Attempt to read property 'username' on null" error after a user is deleted
评估
调研方向
从 SimplePagesPage.php 第188行和第190行开始,这两处会出现警告;接着追踪管理后台列表和编辑页面如何加载该页面的创建者和修改者。删除关联用户后重现问题,然后确认这些页面在用户缺失时能够正常处理且不会出现警告。
由索引模型根据 Issue 内容生成。
描述
After the user responsible for creating/modifying a page is deleted, this warning appears on the admin-side listing and edit screens:
Warning: Attempt to read property "username" on null in /var/www/omeka/plugins/SimplePages/models/SimplePagesPage.php on line 190
Warning: Attempt to read property "username" on null in /var/www/omeka/plugins/SimplePages/models/SimplePagesPage.php on line 188
- 主要语言
- PHP
- 星标
- 7
- 派生
- 12
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
omeka/plugin-SimplePages 的其他 Issue
-
Image function可能已有人在做 @kimisgold 于 11 天前认领。 未关闭a11y
omeka/plugin-SimplePages#48 · 1 条评论 · 已指派 2 人 ·
-
Table Accessibility可能已有人在做 @kimisgold 于 11 天前认领。 未关闭a11y
omeka/plugin-SimplePages#47 · 已指派 2 人 ·
-
难度 1/5 1 小时以内 新手友好度 50/100
omeka/plugin-SimplePages#44 ·
-
难度 3/5 1-2 天 新手友好度 30/100
omeka/plugin-SimplePages#43 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 42/100
omeka/plugin-SimplePages#40 · 2 条评论 ·
查看 omeka/plugin-SimplePages 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
ExpressionEngine/ExpressionEngine#5493 ·
维护者通常 5 天内回复
-
Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
quantum-php/project#222 ·
-
support
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 66/100