Fatal error: Class 'JDatabase' not found in

On my website:


I get the following error:

Fatal error: Class 'JDatabase' not found in C:\Inetpub\vhosts\faboh.com\httpdocs\3-20-15\libraries\joomla\factory.php on line 705

The site was working fine the other day. What happened?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you have a clean backup so you can compare actual website with the backup using winmerge.

Maybe you got hacked.

Is this an old Joomla version, have you updated it recently?

You can try to add this to your factory.php
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__).'/' );   // should point to joomla root
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe = JFactory::getApplication('site');

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
domgarofaloAuthor Commented:
It's Joomla version 2.5. I am on a Mac, I will look for a compare software for the file.

According to the following site I have been hacked.


I looked for the 404 folder to delete the .js file and I can't see it in FileZilla.
domgarofaloAuthor Commented:
I was able to get the site up and running again by doing a fresh install of Joomla and imported the existing database into it. Then I copied over the components, modules, images, and theme I was using.
domgarofaloAuthor Commented:
What I completed was part of the solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.