Opened 3 years ago
Closed 3 years ago
#2332 closed Bug/Fehler (fixed)
Bei Anlegen einer ungültigen USt-IdNr. kommt es zu einer Fehlermeldung
| Reported by: | derHeiko | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.8.0 |
| Component: | Shop | Version: | 2.0.7.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Diese Meldung erscheint, wenn ein Kunde mit ungültiger USt-IdNr.sich registriert:
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] WARNING found for URL: /create_guest_account.php {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] Undefined array key "MS_MAX_CONCURRENT_REQ" in File: /www/htdocs/***/includes/classes/vat_validation.php on Line: 268 {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] Backtrace #0 - /www/htdocs/***/create_guest_account.php called at Line 134 {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] WARNING found for URL: /create_guest_account.php {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] Undefined array key "" in File: /www/htdocs/***/includes/classes/vat_validation.php on Line: 246 {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] Backtrace #0 - /www/htdocs/***/create_guest_account.php called at Line 134 {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] WARNING found for URL: /create_guest_account.php {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] Undefined variable $vat_id_status in File: /www/htdocs/***/includes/classes/vat_validation.php on Line: 133 {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] Backtrace #0 - /www/htdocs/***/create_guest_account.php called at Line 134 {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] WARNING found for URL: /create_guest_account.php {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] Undefined variable $error in File: /www/htdocs/***/includes/classes/vat_validation.php on Line: 134 {} {}
[2022-09-02 12:26:53] [warning] [modified] [pid:12664] Backtrace #0 - /www/htdocs/***/create_guest_account.php called at Line 134 {} {}
PHP 8.0
Attachments (0)
Change History (4)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Google sagt, das ist ein Fehlercode vom VIES VAT Service:
"MS_MAX_CONCURRENT_REQ: Your Request for VAT validation has not been processed; the maximum number of concurrent requests for this Member State has been reached.
Please re-submit your request later or contact TAXUD-VIESWEB@… for further information": Your request cannot be processed due to high traffic towards the Member State you are trying to reach. Please try again later."
comment:3 by , 3 years ago
Das $this->vat_errors Array ist so definiert:
$this->vat_errors = array(
'INVALID_INPUT' => '94',
'SERVICE_UNAVAILABLE' => '95',
'MS_UNAVAILABLE' => '96',
'TIMEOUT' => '97',
'SERVER_BUSY' => '98',
);
Anscheinend kann in diesem Code $result['faultstring'] auch MS_MAX_CONCURRENT_REQ enthalten.
} elseif (is_array($result) && isset($result['faultstring'])) {
return $this->vat_errors[$result['faultstring']];
}
Die "return"-Zeile ist die im Warning monierte Zeile.
Wenn also $result['faultstring'] diesen Wert enthält: MS_MAX_CONCURRENT_REQ
kommt es zu "undefined array key".
Gruß,
noRiddle

Was soll "MS_MAX_CONCURRENT_REQ" für eine Konstante sein!? Die gibt es im Shop überhaupt nicht.
Kannst du das bei uns im DEV-Shop nachstellen?