Jump to content
Larry Ullman's Book Forums

Recommended Posts

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

 

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...