View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003165 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2011-08-19 15:38 | 2012-12-10 13:44 |
Reporter | csimon | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 4.5.1 revision 38045 | ||||
Summary | 0003165: language files aren't loaded on some servers | ||||
Description | If glob() returns false, language files aren't loaded correctly. This can be due server configuration issues or other issues, however, this behavior of glob isn't considered in oxlang: in _getLanguageFilesPathArray: *snip* if ( $sGenericPath ) { $aLangFiles[] = $sGenericPath . "lang.php"; $aLangFiles = array_merge( $aLangFiles, glob( $sGenericPath."*_lang.php" ) ); *snap* when glob returns false, array_merge returns NULL, which causes that the lang array is deleted. you have to check if the return value of glob is false, and if not, don't merge the arrays (or pass an empty array to array_merge) However: It IS considered in the same function at the end: //modules language files $aModuleFiles = glob(getShopBasePath().'/modules/*/out/lang/' . $sLang . '/*_lang.php'); if (is_array($aModuleFiles) && count($aModuleFiles)) { $aLangFiles = array_merge( $aLangFiles, $aModuleFiles ); } there, the return value of glob is correctly checked. | ||||
Steps To Reproduce | It can be provoked if you activate open_basedir restriction. delete tmp folder, try to open shop -> all translations are gone. | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
duplicate of | 0003128 | resolved | Linas Kukulskis | Warnings because oxlang.php and texts are not shown in frontend |
|
Reminder sent to: csimon please check 4.5.1 version revision you have in the latest revision it is already fixed |
|
hi, i can confirm that it's fixed in SVN version, i used the release package of 4.5.1, which is of course not fixed. edit: https://bugs.oxid-esales.com/view.php?id=3128 Sorry for duplicate! |
|
closed as duplicate of 0003128 |