Search code examples
phppear

PEAR requireonce error on the remote server


hi i am using pear spreadsheet in my project. its working fine on the localhost but on the remote server its throwing a fatal error...

Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/worm/Pear_packages/Spreadsheet/Excel/Writer.php on line 34

Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='/var/worminc/application/../library:.:/usr/share/php:/usr/share/pear') in /var/www/worm/Pear_packages/Spreadsheet/Excel/Writer.php on line 34

Have installed PEAR using go-pear,i also did set_include_path in my index file, then i get

Warning:Zend_Loader::include_once(OLE/PPS.php) [zend-loader.include-once]: failed to open stream: No such file or dir in /var/worminc/library/Zend/Loader.php online 83

Warning: Zend_Loader::include_once() [function.include]: Failed opening 'OLE/PPS.php' for inclusion (include_path='/var/worminc/application/../library:/var/www/worm/Pear_packages/PEAR/PEAR:.:/usr/share/php:/usr/share/pear') in /var/worminc/library/Zend/Loader.php on line 83 Fatal error: Class 'OLE_PPS' not found in /var/www/worm/Pear_packages/OLE/PPS/File.php on line 32

can anyone say whats happening?


Solution

  • That is most likely that:

    • You have not uploaded/installed the pear package or
    • You are not specifying the correct path

    More Info:

    http://pear.php.net/manual/en/installation.getting.php