Description of problem: See https://openshift.redhat.com/community/forums/openshift/problems-with-path-of-openshiftinc-cakephp Steps to Reproduce: 1. Create CakePHP app 2. Browse app web page 3. Check error log on gear Actual results: Error log contains messages like: [Fri Aug 31 16:37:24 2012] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'openshift.inc' (include_path='/var/www/wall/php/lib:.:/usr/share/php:/usr/share/pear') in /var/www/wall/php/app/Config/core.php on line 23 [Fri Aug 31 16:37:24 2012] [error] [client 127.0.0.1] PHP Warning: require_once(openshift.inc): failed to open stream: No such file or directory in /var/www/wall/php/app/Config/core.php on line 23 Expected results: error log should not contain any errors related to the openshift.inc file.
Assigned.
Have asked community member for more info. I am not seeing this error in any of the normal log files when following the process above.
Possible resolutions. 1: A php cartridge should automatically include /libs/ in the repo folder. Or 2: Modify Core.php and replace line require_once('openshift.inc'); with include(dirname(dirname(dirname(dirname(__FILE__)))) . DS . 'libs' . DS . 'openshift.inc');
Fixed here (and merged long ago): https://github.com/openshift/cakephp-example/pull/9