Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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 Torsten Riemer, 6 years ago

Milestone: modified-shop-2.0.5.2

comment:2 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

In 12732:

fix #1812 - fix Notice Undefined variable: _SESSION in File: /includes/classes/shopping_cartModules.class.php

comment:3 by Gerhard Waldemair, 6 years ago

In 12735:

fix #1812 - fix Notice Undefined variable: _SESSION in File: /includes/classes/shopping_cartModules.class.php

comment:4 by Gerhard Waldemair, 6 years ago

In 12736:

fix #1812 - fix Notice Undefined variable: _SESSION in File: /includes/classes/shopping_cartModules.class.php

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.