View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001865 | OXID eShop (all versions) | 4. ------ eShop Core ------- | public | 2010-05-30 11:35 | 2012-12-10 13:42 |
Reporter | monotek | Assigned To | |||
Priority | high | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.3.2 revision 27884 | ||||
Fixed in Version | 4.4.0 revision 28699 | ||||
Summary | 0001865: Realpath error on index.php | ||||
Description | After a fresh install of Oxid CE 4.3.2 on Ubuntu 8.04 i get the following error on Oxids index page: [code] Warning: realpath(): Unable to access /var/www/oxid/out/basic/oxbaseshop/de/tpl/ in /var/www/oxid/core/oxconfig.php on line 1118 Warning: realpath(): Unable to access /var/www/oxid/out/basic/oxbaseshop/tpl/ in /var/www/oxid/core/oxconfig.php on line 1124 Warning: realpath(): Unable to access /var/www/oxid/out/basic/de/tpl/ in /var/www/oxid/core/oxconfig.php on line 1131 Warning: realpath(): Unable to access /var/www/oxid/out/basic/oxbaseshop/de/tpl/content.tpl in /var/www/oxid/core/oxconfig.php on line 1118 Warning: realpath(): Unable to access /var/www/oxid/out/basic/oxbaseshop/tpl/content.tpl in /var/www/oxid/core/oxconfig.php on line 1124 Warning: realpath(): Unable to access /var/www/oxid/out/basic/de/tpl/content.tpl in /var/www/oxid/core/oxconfig.php [/code] This "bug" is due to the inclusion of the Hardened-PHP Project's Suhosin Patch in many distributions by default (Ubuntu Hardy 8.04 and above for example). The suhosin patch replaces PHPs realpath function with the BSD implementation, which ignores the last path component. Info about Suhosins realpath replacement: http://www.hardened-php.net/suhosin/a_feature_list:realpath.html My PHP runs with mod_fcgid and safe_mode = on (i cant change this). I hope there will be some kind of workaround. | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
@Developers: this issue needs to be debugged from the source code side with Suhosin installed. Please check it and fix if possible, or suggest some workaround here. |
|
Reminder sent to: monotek Hi, Is it possible to debug this case (bug https://bugs.oxid-esales.com/view.php?id=1865) on your testing environment? Best regards, |
|
What do you need for this? Only Url and Admin access or FTP and MySQL too? P.S.: Joomla Project allready found a fix for this: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=32&tracker_item_id=20423 |
|
Reminder sent to: monotek would be nice to have FTP access to be sure if fix really works. |
|
is_readable( xyz ) || is_dir( realpath( xyz )) replaced into is_readable( xyz ) |