Modify ↓
Opened 9 years ago
Closed 9 years ago
#1062 closed Bug/Fehler (worksforme)
Fehler in "/boxes/wishlist.php"?
| Reported by: | Torsten Riemer | Owned by: | |
|---|---|---|---|
| Priority: | hoch | Milestone: | modified-shop-2.0.2.0 |
| Component: | Template | Version: | 2.0.0.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Es kommt wohl unter bestimmten Umständen zu folgendem Fehler:
[28-10-2016 16:11:39] E_ERROR : LoggingManager: Call to a member function count_contents() on a non-object in File: .../templates/bs24_freemium/source/boxes/wishlist.php on Line: 22 [28-10-2016 16:12:18] E_ERROR : LoggingManager: Call to a member function count_contents() on a non-object in File: .../templates/bs24_freemium/source/boxes/wishlist.php on Line: 22
Auch wenn das hier ein andere Template ist so lautet die Zeile dort genau so wie in unseren ausgelieferten Templates:
if ($_SESSION['wishlist']->count_contents() > 0) {
Abhilfe schafft hier wohl folgender Code:
if (is_object($_SESSION['wishlist']) && $_SESSION['wishlist']->count_contents() > 0) {
Siehe dazu: TEMPLATE: Kostenloses Shop-Template "Freemium"
Attachments (0)
Note:
See TracTickets
for help on using tickets.

Fehler bei uns nicht nachvollziehbar, da die wishlist.php nur eingebunden wird, wenn das Wishlist-System auch aktiviert ist, siehe dazu: TEMPLATE: Kostenloses Shop-Template "Freemium"