#1812 closed Bug/Fehler (fixed)
Notice Undefined variable: _SESSION in File: .../includes/classes/shopping_cartModules.class.php
| Reported by: | noRiddle | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.6.0 |
| Component: | Shop | Version: | 2.0.5.1 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Diese Notice entsteht weil in der Class shoppingCart ganz oben, noch über dem __construct, die /includes/classes/shopping_cartModules.class.php included und die zugehörige Class instantiiert wird und im __construct letztgenannter $_SESSION benutzt wird. Die Session wird in der /includes/application_top.php jedoch erst später gestartet.
Die Instanz der Class shoppingCartModules, das Objekt $scModules, wird in der Funktion xtc_get_uprid() verwendet und dafür muß wohl eine andere Lösung gefunden werden.
Man müsste sich vielleicht ohnehin eine effektivere Lösung suchen, da man (unnötigerweise, wei mir scheint) zwei Instanzen der Class shoppingCartModules laufen hat wenn die Class shoppingCart einmal instantiiert ist, denn in ihrem __construct wird die Class shoppingCartModules ja erneut instatiiert.
Gruß,
noRiddle
Attachments (0)
Change History (4)
comment:1 by , 6 years ago
| Milestone: | → modified-shop-2.0.5.2 |
|---|
comment:2 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |

In 12732: