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
When executing the snipeit:acceptance-reminder command, an error is thrown and the command does not execute.
The SnipeIT System in question was recently updated from v7.0.10 to v7.1.15.
Reproduction steps
Log into SnipeIT via SSH using the SnipeIT User
Execute php /var/www/html/snipeit/artisan snipeit:acceptance-reminder to send the reminders
Expected behavior
When executing the command, acceptance reminders should be sent for all unaccepted assets, and the command should put out a total number of reminders sent.
Screenshots
Snipe-IT Version
v7.1.15 build 16052 (g25bfd3e84)
Operating System
Ubuntu Server 24.04 LTS
Web Server
Apache/2.4.58 (Ubuntu)
PHP Version
8.3.14
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
php /var/www/html/snipeit/artisan snipeit:acceptance-reminder
Error
Call to a member functionpresent() on null
at app/Console/Commands/SendAcceptanceReminder.php:75
71▕ $acceptance = $unacceptedAssetGroup[0]['acceptance'];
72▕ $locale = $acceptance->assignedTo?->locale;
73▕ $email = $acceptance->assignedTo?->email;
74▕ if(!$email){
➜ 75▕ $this->info($acceptance->assignedTo->present()->fullName().' has no email address.');
76▕ }
77▕ $item_count = $unacceptedAssetGroup->count();
78▕
79▕ if ($locale&&$email) {
+12 vendor frames
13 artisan:33
Illuminate\Foundation\Console\Kernel::handle()
Additional context
No response
The text was updated successfully, but these errors were encountered:
Debug mode
Describe the bug
When executing the snipeit:acceptance-reminder command, an error is thrown and the command does not execute.
The SnipeIT System in question was recently updated from v7.0.10 to v7.1.15.
Reproduction steps
Expected behavior
When executing the command, acceptance reminders should be sent for all unaccepted assets, and the command should put out a total number of reminders sent.
Screenshots
Snipe-IT Version
v7.1.15 build 16052 (g25bfd3e84)
Operating System
Ubuntu Server 24.04 LTS
Web Server
Apache/2.4.58 (Ubuntu)
PHP Version
8.3.14
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
Additional context
No response
The text was updated successfully, but these errors were encountered: