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
I encountered a fatal error when running the script related to the FinTS API. The error occurs in the FinTs.php file at line 429. The exact error message is:
PHP Fatal error: Uncaught RuntimeException: Cannot init another dialog. in /path/to/FinTs.php:429
It seems that the script is trying to initialize a new dialog while another dialog session is still active, which is causing the RuntimeException. This likely indicates that the previous session hasn't been properly closed before attempting to start a new one.
Relevant Code:
if ($this->dialogId !== null) { throw new \RuntimeException('Cannot init another dialog.'); }
This code is checking if a dialog session is already active by inspecting $this->dialogId. If it's not null, the exception is thrown.
Possible Causes:
A previous session might still be open and wasn't closed properly before a new one was initiated.
The flow of code might be incorrect, leading to multiple dialog initializations without proper session termination.
I did not change anything in my code since a while and suddenly yesterday got this error ! is anything changed by Sparkasse?
The text was updated successfully, but these errors were encountered:
Maybe you called persist() at a time when a dialog was still open, but also your code does something that needs a new dialog. So now whenever you load that persisted state, it has the open dialog and is expecting something like submitTan() to finish it up, but you're not delivering that.
In my own application, when I'm not doing something like submitTan() but when my application expects no dialog to be open, I call $fints->forgetDialog() right after restoring the FinTs instance. It fixes such corner cases where something went wrong / was interrupted previously, and it doesn't hurt in the normal case where there's no dialog to begin with.
I encountered a fatal error when running the script related to the FinTS API. The error occurs in the FinTs.php file at line 429. The exact error message is:
PHP Fatal error: Uncaught RuntimeException: Cannot init another dialog. in /path/to/FinTs.php:429
It seems that the script is trying to initialize a new dialog while another dialog session is still active, which is causing the RuntimeException. This likely indicates that the previous session hasn't been properly closed before attempting to start a new one.
Relevant Code:
if ($this->dialogId !== null) { throw new \RuntimeException('Cannot init another dialog.'); }
This code is checking if a dialog session is already active by inspecting $this->dialogId. If it's not null, the exception is thrown.
Possible Causes:
I did not change anything in my code since a while and suddenly yesterday got this error ! is anything changed by Sparkasse?
The text was updated successfully, but these errors were encountered: