Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

PEAR warning when install XRMS

thanh_tan
2008-07-02
2013-04-26
  • thanh_tan
    thanh_tan
    2008-07-02

    I got this when trying to install XRMS on my server

    Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in C:\Program Files\EasyPHP\www\xrms\include\i18n.php on line 232

    Warning: setlocale() [function.setlocale]: Invalid locale category name LC_MESSAGES, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME. in C:\Program Files\EasyPHP\www\xrms\include\i18n.php on line 232

    Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in C:\Program Files\EasyPHP\www\xrms\include\classes\HTML\QuickForm.php on line 22

    Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.;C:\PROGRA~1\EasyPHP\\php5\pear\;C:/Progra~1/EasyPHP/www/xrms/include/classes') in C:\Program Files\EasyPHP\www\xrms\include\classes\HTML\QuickForm.php on line 22

    what is the solution?

    Can anyone help me?

    Thanks in advance

    Tan

     
    • bschimpf
      bschimpf
      2008-07-03

      AFAIK this is windows specific... a quick workaround is to change line 232 in i18n to setlocale(LC_ALL, "deu"); (for german, english should be en, google for windows language codes)
      Be warned that this breaks multi-language support.
      The second error says that you need pear to run XRMS, take a look on pear.php.net for instructions on how to install.

      Regards,
      Björn

       
  • Meco
    Meco
    2011-03-31

    The solution about Pear.php is to modifiey "require_once('PEAR.php');" into /xrms/include/classes/HTML/QuickForm.php with "require_once('PEAR/PEAR.php');" (without " symbol)

    Mecok