Modify

Opened 8 years ago

Closed 6 years ago

#1331 closed Bug/Fehler (fixed)

Fehler mit PROJECT_VERSION

Reported by: Ronald Parcinski Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.5.1
Component: Shop Version: 2.0.3.0
Keywords: Cc:
Blocked By: Blocking:

Description

Beim Einloggen wird immer eine Notice ausgelöst

includes/application_top.php

// project version
define('PROJECT_VERSION', 'modified eCommerce Shopsoftware');

inc\check_version_update.inc.php

Hier wird mit require_once(DIR_FS_CATALOG.DIR_ADMIN.'includes/version.php');

und

define('PROJECT_VERSION', $version);

eine erneute Definition versucht und die Notice ausgelöst.

Vorschlag:

in DIR_FS_CATALOG.DIR_ADMIN.'includes/version.php' ein

defined('PROJECT_VERSION') OR define('PROJECT_VERSION', $version);

Attachments (0)

Change History (4)

comment:1 by Torsten Riemer, 8 years ago

Milestone: modified-shop-2.0.4.0

comment:2 by noRiddle, 6 years ago

Die notice ist auch in der 2.0.5.0 noch da, was die Log-Files volllaufen lässt.
Grund:

In /includes/application_top.php

define('PROJECT_VERSION', 'modified eCommerce Shopsoftware');

In /templates/DAS_TEMPLATE/sourde/boxes.php wird eingebunden

require_once(DIR_FS_INC.'check_version_update.inc.php');

welche Datei ihrerseits einbindet

require_once(DIR_FS_CATALOG.DIR_ADMIN.'includes/version.php');

in welcher definiert ist

$version = 'modified eCommerce Shopssoftware v' . PROJECT_MAJOR_VERSION . '.' . PROJECT_MINOR_VERSION . ' rev ' . PROJECT_REVISION . ((PROJECT_SERVICEPACK_VERSION != '') ? ' SP' . PROJECT_SERVICEPACK_VERSION : ''). ' dated: ' . PROJECT_RELEASE_DATE;
define('PROJECT_VERSION', $version);

Wenn ich nichts übersehe könnte man das define aus der application_top.php einfach entfernen.

Gruß,
noRiddle

comment:3 by Torsten Riemer, 6 years ago

Milestone: modified-shop-2.0.5.1

comment:4 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

In 12563:

fix #1331 - fix notice

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.