#85 Pear.php Problem

open
nobody
5
2011-02-03
2011-02-03
Bidbud
No

Hi I managed to get the program installed by changing the cookie variable to file root variable but now I have the following error. Please could you let me know what to do next as I have done a cleanup and a restructure.

Thanks

--------------------------------------

Warning: main(PEAR.php) [function.main]: failed to open stream: No such file or directory in C:\inetpub\vhosts\goblue.co.za\httpdocs\crm\include\classes\HTML\QuickForm.php on line 22

Fatal error: main() [function.require]: Failed opening required 'PEAR.php' (include_path='.;./includes;./pear;C:\inetpub\vhosts\goblue.co.za/httpdocs/crm/include/classes') in C:\inetpub\vhosts\goblue.co.za\httpdocs\crm\include\classes\HTML\QuickForm.php on line 22

Discussion

  • Bidbud
    Bidbud
    2011-02-03

    Hi I changed the directory to Pear as the script was incorrect and it works now.

     
  • 360team.ca
    360team.ca
    2011-02-03

    Hi, Bidbud!

    You should have definitely had no need to modify the path to PEAR.php /include/classes/HTML/QuickForm.php even when running on Windows. Have you checked the path to PEAR in your php.ini?

    XRMS is considerably stable even in CVS to need to be hacked in order to get it working. Unfortunately, I am not that well-acquainted with IIS to be able to provide much more input but it certainly sounds like an environment issue.

    I hope that helps.

    Cheers,
    Ivaylo

     
  • Bidbud
    Bidbud
    2011-02-03

    Hi thanks for the reply. I checked the location of the command after pear and it also had a subdirectory before it but the Pear command did not. For the vars file I used the new version 1.99 and took the settings from the previous version 1.21 I think. Not sure why it didnt work but seems to be Ok now with those 2 changes.

     
  • 360team.ca
    360team.ca
    2011-02-03

    Hi, BidBud!

    You are probably still better off to have PEAR installed on the server instead of modifying /include/classes/HTML/QuickForm.php.

    As to the /include/vars.php you should verify that $xrms_file_root does indeed point to the root XRMS directory. The cookie variable still does not sound like the right solution and may cause other problems down the road.

    I have never had to made the modifications you mentioned even when installing on Windows with Apache. I also have no idea what the 1.21 version is...

    Cheers,
    Ivaylo