You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I have a similar issue to #79. I enabled the Cospend app and had no projects added. Not long after, I checked my logs and saw that there was a TypeError telling me that getProjectNames() returned a null (go to the bottom for an extended description of the error). I added a project titled `House renovation' but the error still popped up 15 minutes after the last one. Restarting the Nextcloud docker did nothing either.
I know that I should add a try-catch in .../www/nextcloud/apps/cospend/lib/Service/ProjectService.php from the error debug but I'm not familiar with php so I would appreciate it if somebody could help draft something up for me to use.
The debug of the error as seen in the logs:
TypeError: Argument 1 passed to OCA\Cospend\Service\ProjectService::getProjectNames() must be of the type string, null given, called in /config/www/nextcloud/apps/cospend/lib/Activity/CospendProvider.php on line 84
/config/www/nextcloud/apps/cospend/lib/Activity/CospendProvider.php - line 84:
OCA\Cospend\Service\ProjectService->getProjectNames()
<<closure>>
OCA\Cospend\Activity\CospendProvider->__construct()
/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 106:
ReflectionClass->newInstanceArgs()
/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 114:
OC\AppFramework\Utility\SimpleContainer->buildClass()
/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 131:
OC\AppFramework\Utility\SimpleContainer->resolve()
/config/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 460:
OC\AppFramework\Utility\SimpleContainer->query()
/config/www/nextcloud/lib/private/ServerContainer.php - line 145:
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
/config/www/nextcloud/lib/private/Activity/Manager.php - line 245:
OC\ServerContainer->query()
/config/www/nextcloud/apps/activity/lib/MailQueueHandler.php - line 451:
OC\Activity\Manager->getProviders()
/config/www/nextcloud/apps/activity/lib/MailQueueHandler.php - line 358:
OCA\Activity\MailQueueHandler->parseEvent()
/config/www/nextcloud/apps/activity/lib/MailQueueHandler.php - line 163:
OCA\Activity\MailQueueHandler->sendEmailToUser()
/config/www/nextcloud/apps/activity/lib/BackgroundJob/EmailNotification.php - line 65:
OCA\Activity\MailQueueHandler->sendEmails()
/config/www/nextcloud/lib/private/BackgroundJob/Job.php - line 51:
OCA\Activity\BackgroundJob\EmailNotification->run()
/config/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 58:
OC\BackgroundJob\Job->execute()
/config/www/nextcloud/cron.php - line 127:
OC\BackgroundJob\TimedJob->execute()
'''
The text was updated successfully, but these errors were encountered:
Hi there, I have a similar issue to #79. I enabled the Cospend app and had no projects added. Not long after, I checked my logs and saw that there was a TypeError telling me that
getProjectNames()
returned a null (go to the bottom for an extended description of the error). I added a project titled `House renovation' but the error still popped up 15 minutes after the last one. Restarting the Nextcloud docker did nothing either.I know that I should add a try-catch in
.../www/nextcloud/apps/cospend/lib/Service/ProjectService.php
from the error debug but I'm not familiar with php so I would appreciate it if somebody could help draft something up for me to use.The debug of the error as seen in the logs:
The text was updated successfully, but these errors were encountered: