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

SurveyRequestsSend: Message: Missing parameter Year. #3

Open
MalteP opened this issue Mar 28, 2022 · 2 comments
Open

SurveyRequestsSend: Message: Missing parameter Year. #3

MalteP opened this issue Mar 28, 2022 · 2 comments
Assignees
Labels
Clarification Clarification is needed.

Comments

@MalteP
Copy link

MalteP commented Mar 28, 2022

After updating the Survey plugin on Znuny LTS from an previous, older installation, i frequently got the error message shown below:

ERROR: OTRS-otrs.Console.pl-Maint::Survey::RequestsSend-10 Perl: 5.24.1 OS: linux Time:
Wed Mar 23 16:00:16 2022

Message: Missing parameter Year.

Traceback (31235):
Module: Kernel::System::DateTime::_CPANDateTimeObjectCreate Line: 1887
Module: Kernel::System::DateTime::new Line: 153
Module: Kernel::System::ObjectManager::_ObjectBuild Line: 307
Module: Kernel::System::ObjectManager::Create Line: 242
Module: Kernel::System::Survey::Request::RequestSend Line: 470
Module: Kernel::System::Console::Command::Maint::Survey::RequestsSend::Run Line: 136
Module: (eval) Line: 461
Module: Kernel::System::Console::BaseCommand::Execute Line: 455
Module: (eval) Line: 145
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 124
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 236
Module: (eval) Line: 331
Module: main::Start Line: 331
Module: /opt/otrs/bin/otrs.Daemon.pl Line: 152

ERROR: OTRS-otrs.Console.pl-Maint::Survey::RequestsSend-10 Perl: 5.24.1 OS: linux Time:
Wed Mar 23 16:00:16 2022

Message: Error creating DateTime object ( 'String' => undef ).

Traceback (31235):
Module: Kernel::System::DateTime::new Line: 175
Module: Kernel::System::ObjectManager::_ObjectBuild Line: 307
Module: Kernel::System::ObjectManager::Create Line: 242
Module: Kernel::System::Survey::Request::RequestSend Line: 470
Module: Kernel::System::Console::Command::Maint::Survey::RequestsSend::Run Line: 136
Module: (eval) Line: 461
Module: Kernel::System::Console::BaseCommand::Execute Line: 455
Module: (eval) Line: 145
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 124
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 236
Module: (eval) Line: 331
Module: main::Start Line: 331
Module: /opt/otrs/bin/otrs.Daemon.pl Line: 152

It seems that in some cases, when checking if a survey was sent in the last time (Kernel/System/Survey/Request.pm:453), the select statement returns a NULL value.

The solution shown in the znuny community board is to exclude all columns where send_time is NULL: https://community.znuny.org/viewtopic.php?p=161160&sid=8244135e8466851f38051881166a9efb#p161160

Would be great if this could be fixed in the official repository.

Best regards,
Malte

@rkaldung rkaldung added the Clarification Clarification is needed. label Mar 28, 2022
@rkaldung rkaldung self-assigned this Mar 28, 2022
@rkaldung
Copy link
Member

Hi @MalteP, Could you perhaps let me know the version you had installed before the update?

@MalteP
Copy link
Author

MalteP commented Mar 29, 2022

Hi @rkaldung, i have recovered the old OTRS directory from a backup, but unfortunately there are no files with a version number (e.g. Survey.sopm) inside the filesystem. The copyright notice of the plugin files dates to 2019, and i've compared some modifications made in the releases back then, so i guess the previous version must have been Survey 6.0.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clarification Clarification is needed.
Development

No branches or pull requests

2 participants