View Issue Details

IDProjectCategoryView StatusLast Update
0003969OXID eShop (all versions)3.1. Design, GUI, UXpublic2012-05-08 08:16
Reporterdainius.bigelis Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.6.0 revision 44406 
Fixed in Version4.6.1 revision 45706 
Summary0003969: E_DEPRECATED occurs in frontend when 4.6.0 shop is running on PHP lower than 5.3.0
DescriptionWhen eShop 4.6.0 version is running on PHP lower than 5.3.0, the error occurs on the frontend:
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /[eshop]/index.php on line 27
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

dainius.bigelis

2012-05-02 08:52

reporter   ~0006493

as a workaround for that set in your config.inc.php file:
if (!defined (E_DEPRECATED) ) { define(E_DEPRECATED,8192); }

saulius.stasiukaitis

2012-05-08 08:16

reporter   ~0006534

Checks if E_DEPRECATED defined and use it only if is defined.
index.php
    if ( defined( 'E_DEPRECATED' ) ) {
        error_reporting( E_ALL ^ E_NOTICE ^ E_DEPRECATED );
    } else {
        error_reporting( E_ALL ^ E_NOTICE );
    }
views/oxshopcontrol.php previous was php version check, now:
            if ( defined( 'E_DEPRECATED' ) ) {
                // some 3rd party libraries still use deprecated functions
                $iErrorReporting = E_ALL ^ E_NOTICE ^ E_DEPRECATED;
            } else {
                $iErrorReporting = E_ALL ^ E_NOTICE;
            }