Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Requesting code update. 
 
Genie Arena
Jr. Member
 
Total Posts:  1
Joined:  2007-12-27
 

Requesting code update in app/Mage.php

From:

define('DS'DIRECTORY_SEPARATOR);
define('PS'PATH_SEPARATOR);
define('BP'dirname(dirname(__FILE__)));

ini_set('include_path',
           
BP '/app/code/local'
    
PS BP '/app/code/community'
    
PS BP '/app/code/core'
    
PS BP '/lib'
    
PS ini_get('include_path')
);

to:

define('DS'DIRECTORY_SEPARATOR);
define('PS'PATH_SEPARATOR);
define('BP'dirname(dirname(__FILE__)));

$paths[] BP DS 'app' DS 'code' DS 'local';
$paths[] BP DS 'app' DS 'code' DS 'community';
$paths[] BP DS 'app' DS 'code' DS 'core';
$paths[] BP DS 'lib';

$app_path implode(PS$paths);

set_include_path(get_include_path() . PS $app_path);

This corrects malformed include_path in both Linux and Windows (especially in windows) e.g.:

C:\web\magento/app/code/local;C:\web\magento/app/code/community;C:\web\magento/app/code/core;C:\web\magento/lib;.;C:\serve\php\pear;C:\server\includes
to:
.;C:\server\php\pear;C:\server\includes;C:\web\magento\app\code\local;C:\web\magento\app\code\community;C:\web\magento\app\code\core;C:\web\magento\lib

Not really a bug as current servers can tolerate it, but to be on the safe side should the future updates/upgrades tighten the standards.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Thanks, done smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top