je456 Posted August 29, 2014 Share Posted August 29, 2014 Hi, I'm following the cms example (Chapter 9) in the book. On a pc with xampp with windows 7 operating system and I can't figure out why when I load try to get Quickform2 to load on my login.php page I get this error message: Warning:require(classes/PEAR_Error.php): failed to open stream: No such file or directory in C:\xampp\htdocs\site1\includes\utilities.php on line 5 Fatal error: require(): Failed opening required 'classes/PEAR_Error.php' *include_path='.;C:\xampp\php\PEAR;/usr/local/pear/share.pear') in C:\xampp\htdocs\site1\includes\utilities.php on line 5 I may be mistaken but I think that the filepath is incorrect for the php.ini set and that when my utilities.php autoload function searches for the pear classes to load it can't find any. Please help. Thanks, je456 Link to comment Share on other sites More sharing options...
Larry Posted August 30, 2014 Share Posted August 30, 2014 Yes, you are correct: your include path is wrong (if you're on Windows, you won't have a /usr/local directory). I would confirm where PEAR got installed and then update your PATH accordingly. Link to comment Share on other sites More sharing options...
je456 Posted September 1, 2014 Author Share Posted September 1, 2014 Thanks Larry. I'll update my include with correct directory for PEAR, I believe its something like xampp/php/PEAR... Link to comment Share on other sites More sharing options...
je456 Posted September 2, 2014 Author Share Posted September 2, 2014 Larry, I noticed that the pear_error class has been deprecated and replaced with the pear_exception class (I am running php 5.5). And after looking at my php.ini file and seeing the correct file path for pear, that is, 'c:xampp/php/pear' I was wondering if the problem could be with the configuration of the autoload file. Is loading php_error a problem with php 5.5 or am I on the wrong track? If so, is there a way to easily fix this, that is, where can I find the config file for autoloading pear classes? Thanks, Josh Link to comment Share on other sites More sharing options...
Larry Posted September 6, 2014 Share Posted September 6, 2014 Hey Josh, "deprecated" doesn't mean it's a problem, it means it could be a problem someday. But this is due to your PHP version, and there's not much you can do about that. Link to comment Share on other sites More sharing options...
Recommended Posts