Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Fatal error: Class 'PDO' not found in .... /includes/database/database.inc  (Read 2717 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
I have just installed Drupal 7 & have been having memory problems whilst in admin tasks, particularly with the Views module which completely failed to save a new view I was trying to create.

The error was:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/thedest1/public_html/rhemahousing.co.uk/dr/modules/ckeditor/includes/ckeditor.page.inc on line 113

I tried adding a php.ini file to my /drupal folder. The file had the contents:
Code: [Select]
php_value memory_limit = "128M"
this resulted in a different error:
Fatal error: Class 'PDO' not found in .... /includes/database/database.inc on line 184

I have now placed the following code in a php.ini file in my drupal directory. This has solved the problem.

Code: [Select]
php_value memory_limit = "128M"
safe_mode = off
session.cache_limiter = nocache
open_basedir = none
extension = pdo.so
extension = pdo_mysql.so

I hope this helps anyone else with a similar problem.