Skip to content
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

Report Notification of Deleted Content - Lead Internal Error #77

Open
luke- opened this issue Apr 28, 2024 · 1 comment · May be fixed by #79
Open

Report Notification of Deleted Content - Lead Internal Error #77

luke- opened this issue Apr 28, 2024 · 1 comment · May be fixed by #79

Comments

@luke-
Copy link
Contributor

luke- commented Apr 28, 2024

  1. Delete Reported Content
  2. Click on the E-Mail Notification "XYZ has reported post...:" -> View Online
  3. Internal Error

Message:

yii\base\ErrorException: Attempt to read property "content_id" on null in /srv/www/htdocs/community/modules/reportcontent/notifications/NewReportAdmin.php:94
Stack trace:
#0 /srv/www/htdocs/community/modules/reportcontent/notifications/NewReportAdmin.php(94): yii\base\ErrorHandler->handleError()
#1 /srv/www/htdocs/community/modules/reportcontent/notifications/NewReportAdmin.php(63): humhub\modules\reportcontent\notifications\NewReportAdmin->getReportedRecord()
#2 /srv/humhub/protected/humhub/modules/notification/controllers/EntryController.php(61): humhub\modules\reportcontent\notifications\NewReportAdmin->getUrl()
#3 [internal function]: humhub\modules\notification\controllers\EntryController->actionIndex()
#4 /srv/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(58): call_user_func_array()
#5 /srv/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(179): yii\base\InlineAction->runWithParams()
#6 /srv/humhub/protected/vendor/yiisoft/yii2/base/Module.php(553): yii\base\Controller->runAction()
#7 /srv/humhub/protected/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction()
#8 /srv/humhub/protected/vendor/yiisoft/yii2/base/Application.php(385): yii\web\Application->handleRequest()
#9 /srv/www/htdocs/community/index.php(24): yii\base\Application->run()
#10 {main}

@ArchBlood ArchBlood linked a pull request May 25, 2024 that will close this issue
@ArchBlood
Copy link

Should be fixed in #79 although I see another issue is that the notification isn't deleted as well. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants