Warning: include(PDO.php): failed to open stream: No such file or directory in /home/oo/public_html/yii/framework/YiiBase.php on line 338
Warning: include(PDO.php): failed to open stream: No such file or directory in /home/oo/public_html/yii/framework/YiiBase.php on line 338
Warning: include(): Failed opening ‘PDO.php’ for inclusion (include_path=’.:/home/oo/public_html/test/protected/components:/home/oo/public_html/test/protected/models:/usr/lib/php:/usr/local/lib/php’) in /home/oo/public_html/yii/framework/YiiBase.php on line 338
Fatal error: Class ‘PDO’ not found in /home/oo/public_html/yii/framework/db/CDbConnection.php on line 301
-bash-3.2$
I’m not sure really sure why it isn’t working now could it just be the info for my db is incorrect? I have checked to verify pdo is configured and i did have a database setup at one point…
[web0 yiilatest]# php -i | grep PDO
PDO
PDO support => enabled
PDO drivers => mysql, sqlite, sqlite2
PDO Driver for MySQL, client library version => 5.0.90
PDO Driver for SQLite 3.x => enabled
If you’re on windows, you can also do a “php -i” and inspect the output for PDO drivers. You’ll very probably find, that they are missing for you. So you need to check the php.ini file used for PHP on CLI. To find the right file, use “php --ini”:
PHP Warning: Unknown: It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/Chicago’ for ‘CDT/-5.0/DST’ instead in Unknown on line 0
PDO
PDO support => enabled
PDO drivers => sqlite, sqlite2
PDO Driver for SQLite 3.x => enabled
root@opt [~/install/php-5.3.3/pear]$
I think upgraded may have fixed it but caused a problem with the date cause when i attempt to run the shell at all i get this
<div class="version">
PHP Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/Chicago’ for ‘CDT/-5.0/DST’ instead in /home/oo/public_html/yii/framework/views/exception.php on line 71
as well… Not sure if this is a conflict between latest php and yii or just my configuration… I’ll investigate further…