Modify

Opened 3 years ago

Closed 3 years ago

#2483 closed Bug/Fehler (fixed)

Warning wegen Shopvote-Cache

Reported by: noRiddle 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

Nachdem man bei Verwendung des Cache den Cache gelöscht hat erscheint einmalig dieses Warning:

file_get_contents(PATH/cache/shopvote.cache): failed to open stream: No such file or directory in File: PATH/includes/extra/application_top/application_top_end/70_shopvote.php on Line: 32

Diese Zeile in im Warning genannten File

$response = unserialize(file_get_contents(SQL_CACHEDIR.'shopvote.cache'));

müsste man so in der Art umschreiben:

$response = false;
if(is_file(SQL_CACHEDIR.'shopvote.cache')) {
  $response = unserialize(file_get_contents(SQL_CACHEDIR.'shopvote.cache'));
}

Gruß,
noRiddle

Attachments (0)

Change History (1)

comment:1 by Gerhard Waldemair, 3 years ago

Resolution: fixed
Status: newclosed

In 15059:

fix #2483 - fix shopvote cache

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.