View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003969 | OXID eShop (all versions) | 3.1. Design, GUI, UX | public | 2012-05-02 08:51 | 2012-05-08 08:16 |
Reporter | dainius.bigelis | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.6.0 revision 44406 | ||||
Fixed in Version | 4.6.1 revision 45706 | ||||
Summary | 0003969: E_DEPRECATED occurs in frontend when 4.6.0 shop is running on PHP lower than 5.3.0 | ||||
Description | When 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 | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
as a workaround for that set in your config.inc.php file: if (!defined (E_DEPRECATED) ) { define(E_DEPRECATED,8192); } |
|
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; } |