snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Expiring License Alert Issues with UrlGenerator.php

Open jrosenhq opened this issue 6 years ago • 7 comments

Please confirm you have done the following before posting your bug report:

Describe the bug Each morning I am supposed to get emails about warrantee expirations and expiring licenses. I receive the expiring warrantee report but not the expiring license report. When I run the manual command in terminal "php artisan snipeit:expiring-alerts" I get two errors.

  1. In UrlGenerator.php line 420: Route [license.show] not defined. (View: /var/www/html/snipeit/resources/views/notifications/markdown/report-expiring-licenses.blade.php)

  2. In UrlGenerator.php line 420: Route [license.show] not defined.

To Reproduce Steps to reproduce the behavior: This is an automatic process that is failing. No steps involved with reproducing except to let it run or manually run the artisan command which errors with the errors listed above.

Expected behavior I expect to get an email with the 49 licenses I have expiring within the next 60 days. Was working prior to upgrading to v5.

Screenshots If applicable, add screenshots to help explain your problem. image

Server (please complete the following information):

  • Snipe-IT Version - 5.0.7
  • OS: [e.g. Ubuntu, CentOS] - Red Hat Enterprise 7.9
  • Web Server: [e.g. Apache, IIS] - Apache
  • PHP Version - 7.2.34

jrosenhq avatar Nov 19 '20 15:11 jrosenhq

I was able to get the alert to generate by removing the "a" tag from the "report-expiring-licenses.blade.php" file. The alert generates but it is less useful since the names are no longer linked to the specific license.

jrosenhq avatar Nov 20 '20 19:11 jrosenhq

Hello,

I can confirm that this issue is present on the latest Docker image !

Thanks !

QuentinC avatar Nov 27 '20 22:11 QuentinC

Same problem here. Recent install with docker.

digoblin avatar Nov 30 '20 09:11 digoblin

Hi all,

I have confirm this problem as well.

Config: Git Installation Snipe-IT version: v5.0.9 build 5616 (973eacf6c3) PHP Version: 7.2.34-8+ubuntu20.04.1+deb.sury.org+1 Laravel Version: 6.18.10 OS: Ubuntu 20.04.1 LTS

Diniver avatar Nov 30 '20 11:11 Diniver

And another config:

Git Installation Snipe-IT version: v5.0.9 build 5616 (973eacf6c3) PHP Version: 7.3.22 Laravel Version: 6.18.10 Web Server: IIS OS: Windows Server 2016

sven-piller avatar Nov 30 '20 15:11 sven-piller

With update to 5.0.10 the problem has been resolved for me.

Diniver avatar Dec 01 '20 14:12 Diniver

Updated to 5.0.10 and the issue has been resolved.

jrosenhq avatar Dec 03 '20 01:12 jrosenhq