google-code-backups / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Xinc setting error on XAMPP, WinXP: 'Cannot load pear config' #207

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
C:\xampp\php>xinc-settings set web ohloh 0

Fatal error: Uncaught exception 'Exception' with message 'Cannot load pear 
config' in C:\xampp\php\PEAR\Xinc\Ini.php:51
Stack trace:
#0 C:\xampp\php\PEAR\Xinc\Ini.php(41): Xinc_Ini->__construct()
#1 C:\xampp\php\PEAR\Xinc\Ini.php(184): Xinc_Ini::getInstance()
#2 C:\xampp\php\PEAR\Xinc\Ini.php(173): Xinc_Ini::_setSectionSetting('web', 
'ohl
oh', '0')
#3 C:\xampp\php\xinc-settings.php(29): Xinc_Ini::main()
#4 {main}
  thrown in C:\xampp\php\PEAR\Xinc\Ini.php on line 51

Can you give me some helps ?:)

Original issue reported on code.google.com by tuan...@gmail.com on 7 Jan 2010 at 9:27

GoogleCodeExporter commented 8 years ago
Does the problem still exist?

Original comment by opitz.al...@googlemail.com on 20 Aug 2011 at 10:38

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 11:26

GoogleCodeExporter commented 8 years ago
Do you have your pear.ini file in the standard location?

I do not, and whenever I use an application that relies on pear, I have to make 
some extra changes.
- I patched go-pear.bat to add the php_pear_sysconf_dir variable
- I patched xinc's handler.php script to do teh same:
putenv( "PHP_PEAR_SYSCONF_DIR=D:\\htdocs\\Pear" );

Original comment by giunta.g...@gmail.com on 30 May 2012 at 9:08

GoogleCodeExporter commented 8 years ago
Thank for your replies. I will try it later

Original comment by tuan.ngu...@infocube.ch on 30 May 2012 at 9:46