From: Byron S. <by...@we...> - 2013-08-02 13:05:47
|
Comparing the PHPInfo to another Vufind server where PHP/pear is working correctly can see the following difference. Working Vufind server Loaded Configuration File C:\PHP\php.ini Server with error Loaded Configuration File (none) Regards, Byron _____ From: Demian Katz [mailto:dem...@vi...] Sent: Friday, 2 August 2013 10:48 PM To: Byron Smith; vuf...@li... Subject: RE: [VuFind-Tech] pear error Okay, so the problem is that the include_path isn't being picked up correctly -- PHP is getting C:\php5\pear instead of whatever directory actually contains the PEAR libraries. It might be worth creating a phpinfo() script: <?php phpinfo(); ?> and accessing it in a browser to see the PHPInfo details -- this will tell you where PHP is reading php.ini settings from. Perhaps you will find that the file it expects does not exist, or that it has been compiled to run without reading an .ini file. - Demian _____ From: Byron Smith [by...@we...] Sent: Friday, August 02, 2013 8:46 AM To: Demian Katz; vuf...@li... Subject: RE: [VuFind-Tech] pear error Hi Demian, No that does not exist. When I copy PEAR.php into the vufind\web folder I then get the following error Warning: include_once(PEAR5.php) [function.include-once]: failed to open stream: No such file or directory in C:\VuFind\web\PEAR.php on line 730 Warning: include_once() [function.include]: Failed opening 'PEAR5.php' for inclusion (include_path='.;C:\php5\pear') in C:\VuFind\web\PEAR.php on line 730 Warning: require_once(Smarty/Smarty.class.php) [function.require-once]: failed to open stream: No such file or directory in C:\VuFind\web\sys\Interface.php on line 28 Fatal error: require_once() [function.require]: Failed opening required 'Smarty/Smarty.class.php' (include_path='.;C:\php5\pear') in C:\VuFind\web\sys\Interface.php on line 28 Regards, Byron _____ From: Demian Katz [mailto:dem...@vi...] Sent: Friday, 2 August 2013 10:20 PM To: Byron Smith; vuf...@li... Subject: RE: [VuFind-Tech] pear error Does c:\php5\pear\PEAR.php exist? What happens if you copy PEAR.php into c:\VuFind\web temporarily? - Demian _____ From: Byron Smith [by...@we...] Sent: Friday, August 02, 2013 8:12 AM To: vuf...@li... Subject: [VuFind-Tech] pear error Hi Everyone, I am installing Vufind for yet another library here in Australia. I have run into a hurdle with PHP/Pear. I am getting the following message when opening Vufind in a web browser. Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in C:\VuFind\web\index.php on line 43 Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.;C:\php5\pear') in C:\VuFind\web\index.php on line 43 The pear install itself went without a hitch and I have made sure that the 'include_path' in the php.ini file is pointing to the correct path for pear and have verified that the pear modules are installed correctly. I am really confused as to why it is even referencing 'c:\php5\pear' since this is not referenced anywhere in the php.ini or anywhere else that I can see. The server that this is installed on does have a number of applications running on it however I have double checked to make sure there are no other instances of php.ini. Does anyone have any advice on how I could trouble shoot this issue? Regards, Byron |