Opened 4 years ago
Closed 4 years ago
#2249 closed Bug/Fehler (fixed)
Warning Undefined variable $vat
| Reported by: | anonymous | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.7.1 |
| Component: | Shop | Version: | 2.0.7.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Ich weiß nicht, ob das schon gesehen wurde
In /create_account.php und /create_guest_account.php kommt dieses Warning unter PHP8.1.3 mit modified eCommerce Shopsoftware v2.0.7.0 rev 14473 dated: 2022-05-17
Habe ich so mit isset() abgefangen
New VAT Check
if (ACCOUNT_COMPANY_VAT_CHECK == 'true'){
if(!isset($vat)) $vat = ' ';
require_once(DIR_WS_CLASSES.'vat_validation.php');
Attachments (0)
Change History (7)
comment:1 by , 4 years ago
| Milestone: | modified-shop-2.0.7.1 |
|---|---|
| Resolution: | → invalid |
| Status: | new → closed |
comment:2 by , 4 years ago
Ich kann das in meinem Testshop nachstellen.
Und es passiert eben wenn die UST-ID Abfrage ausgeschaltet ist.
[2022-06-22 09:50:36] [warning] [modified] [pid:9132] WARNING found for URL: /create_account.php {} {}
[2022-06-22 09:50:36] [warning] [modified] [pid:9132] Undefined variable $vat in File: /var/www/clients/client1/web5/web/create_account.php on Line: 302 {} {}
[2022-06-22 09:50:36] [warning] [modified] [pid:9132] WARNING found for URL: /create_account.php {} {}
[2022-06-22 09:50:36] [warning] [modified] [pid:9132] Undefined variable $customers_vat_id_status in File: /var/www/clients/client1/web5/web/create_account.php on Line: 303 {} {}
[2022-06-22 09:50:36] [warning] [modified] [pid:9132] WARNING found for URL: /create_account.php {} {}
[2022-06-22 09:50:36] [warning] [modified] [pid:9132] Undefined variable $fax in File: /var/www/clients/client1/web5/web/create_account.php on Line: 309 {} {}
Wenn die UST-ID Abfrage an ist, dann entsteht nur noch
[2022-06-22 09:55:57] [warning] [modified] [pid:12519] WARNING found for URL: /create_guest_account.php {} {}
[2022-06-22 09:55:57] [warning] [modified] [pid:12519] Undefined variable $fax in File: /var/www/clients/client1/web5/web/create_guest_account.php on Line: 272 {} {}
comment:4 by , 4 years ago
Gleiches Ergebnis bis auf $fax
[2022-06-22 10:08:30] [warning] [modified] [pid:17432] WARNING found for URL: /create_account.php {} {}
[2022-06-22 10:08:30] [warning] [modified] [pid:17432] Undefined variable $vat in File: /var/www/clients/client1/web1/web/create_account.php on Line: 302 {} {}
[2022-06-22 10:08:30] [warning] [modified] [pid:17432] WARNING found for URL: /create_account.php {} {}
[2022-06-22 10:08:30] [warning] [modified] [pid:17432] Undefined variable $customers_vat_id_status in File: /var/www/clients/client1/web1/web/create_account.php on Line: 303 {} {}
comment:5 by , 4 years ago
$fax erzeugt nur bei mir einen Fehler, weil es im Template bei der Registrierung nicht angezeigt wird.
comment:6 by , 4 years ago
| Milestone: | → modified-shop-2.0.7.1 |
|---|---|
| Resolution: | invalid |
| Status: | closed → reopened |
Das ist ja was völlig anderes.
Aufgrund der Ticketbeschreibung, muss ich davon ausgehen, dass es bereits beim VAT Check auftritt.
@Timm
deine Meldung kommt beim speichern

Wenn ACCOUNT_COMPANY_VAT_CHECK aktiviert ist, dann ist im POST Array immder vat mit dabei. Dadurch ist die Variable $vad auch immer gesetzt.
Ich gehe davon aus, dass hier eine Änderung im Template vorhanden ist.