Fatal error: Class 'PEAR' not found

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Fatal error: Class 'PEAR' not found

Postby JillC » 09. May 2010 11:41

I have uninstalled my old old old version of Xampp and have been having the devil's own job getting the latest version installed and running. What is Pear? do I need it? I have got this error in the Xampp pearinfo() page:

");} ?>

Fatal error: Class 'PEAR' not found in D:\Program Files\xampp\php\PEAR\PEAR\Registry.php on line 45

How can I fix this?
Posts: 8
Joined: 29. January 2006 10:29

Re: Fatal error: Class 'PEAR' not found

Postby JonB » 10. May 2010 16:50

I have not grokked your error at the moment, but I CAN answer part of your question.

PEAR is a framework and distribution system for reusable PHP components.

PEAR is to PHP, what CPAN is to Perl. They are both standardized repositories for add-in Modules/packages. Modules are generalized extensions to the core languages, usually engineered for a specific task. Things like authentication methods, mail handlers, uploaders, and security enhancements all fit the bill.

Do you "need it?" - Only if your PHP code requires installation of extensions (dependencies).


Hot off the Press
PEAR channels on google code currently broken

It 'may' be that your error is casued by this PEAR issue - although mine is not broken when I access the page. The default install does point to googlecode.

D:\Program Files\xampp\php\PEAR\PEAR\Registry.php

I don't know the version of Windows you are on, but you might consider installing XAMPP in the root of one of your named drives. i.e. C:\XAMPP or D:\XAMPP. I have seen topics where this fixed some oddball issues.

You also might just try replacing this one file with the origianl extracted for your download.

I also have a question, when you did this upgrade/replacement - did you do a clean install, and then relocate your projects, or did you 'install over' your old version?

Good Luck
User avatar
AF Moderator
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Fatal error: Class 'PEAR' not found

Postby Altrea » 11. May 2010 01:43

Installation destination with spaces or special characters inside are never a good idea for multiplatform programs like the xampp-package.

I don't know, if this is the reason for the problem, but you should check this.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 8243
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Fatal error: Class 'PEAR' not found

Postby JillC » 11. May 2010 06:18

Thanks JonB but replacing the registry.php from the original didn't help.

I uninstalled XAMPP but left the databases. Then I installed the new version in the same location. It screwed up my ZenCart and Joomla databases but not the Wordpress site. Although at the end of the installation it insisted it had to move the location of databases.

I'm using Win XP. I've been working through a book on Joomla and got to a point where some functions were not working. Can't remember now whether it was php or mysql which needed upgrading. I figured it would be easier to upgrade Xampp and get everything new. Perhaps not such a good idea afterall!
Posts: 8
Joined: 29. January 2006 10:29

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 27 guests