View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004020 | OXID eShop (all versions) | 4.06. Language and translations | public | 2012-05-08 13:22 | 2012-06-08 14:15 |
| Reporter | b.hasis | Assigned To | |||
| Priority | urgent | Severity | crash | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 4.6.0 revision 44406 | ||||
| Fixed in Version | 4.6.1 revision 45706 | ||||
| Summary | 0004020: problem by processing lang files (oxeec_langcache_1_0_1_azure_default.txt) | ||||
| Description | in core/oxlang.php fnc:_getLanguageFileData() within the foreach-loop in line 873 the variable $aSeoReplaceChars is not reinitialized therefore each loop encodes the existing arrayKeys. Result of this behaviour is multiple-encoding of the arrayKeys and the array is getting bigger within each loop. Result in tmp/oxeec_langcache_1_0_1_azure_default.txt file with this result '_aSeoReplaceChars' => array ( 'ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'Ä' => 'AE', 'Ö' => 'OE', 'Ü' => 'UE', 'ß' => 'ss', 'À' => 'ae', // second file double encoded 'ö' => 'oe', // "" 'ÃŒ' => 'ue', 'Ã?' => 'AE', 'Ã?' => 'OE', 'Ã?' => 'UE', 'Ã?' => 'ss', 'Ã?â?¬' => 'ae', // third file tripple encoded 'Ã?¶' => 'oe', 'Ã?Å?' => 'ue', 'Ã?Â?' => 'AE', 'Ã?Â?' => 'OE', 'Ã?Â?' => 'UE', 'Ã?Â?' => 'ss', 'Ã?Â?âÂ?¬' => 'ae', 'Ã?Â?Ã?¶' => 'oe', 'Ã?Â?Ã?Â?' => 'ue', 'Ã?Â?Ã?Â?' => 'AE', 'Ã?Â?Ã?Â?' => 'OE', 'Ã?Â?Ã?Â?' => 'UE', 'Ã?Â?Ã?Â?' => 'ss', 'Ã?Â?Ã?Â?Ã?¢Ã?Â?Ã?¬' => 'ae', 'Ã?Â?Ã?Â?Ã?Â?Ã?¶' => 'oe', 'Ã?Â?Ã?Â?Ã?Â?Ã?Â?' => 'ue', 'Ã?Â?Ã?Â?Ã?Â?Ã?Â?' => 'AE', 'Ã?Â?Ã?Â?Ã?Â?Ã?Â?' => 'OE', 'Ã?Â?Ã?Â?Ã?Â?Ã?Â?' => 'UE', 'Ã?Â?Ã?Â?Ã?Â?Ã?Â?' => 'ss', ), So in the basic shop with 3 langfiles its no problem, but in a shop with about 22 files you get a file 120MB of size and the shop crashes! | ||||
| Additional Information | to fix this issue, just set $aSeoReplaceChars = array(); at end of every loop step. | ||||
| Tags | No tags attached. | ||||
| Theme | Both | ||||
| Browser | All | ||||
| PHP Version | any | ||||
| Database Version | any | ||||