[英]Why am I getting the error “Class PDO not found” in this situation?
I am getting the following error even though I have PDO installed and included in my php.ini. 即使已安装PDO并包含在php.ini中,我仍收到以下错误。
What could I be possibly missing? 我可能会丢失什么? I am using doctrine and codeigniter 我正在使用教义和代码点火器
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: Doctrine\ORM\Query\ParameterTypeInferer::inferType() [<a href='doctrine\orm\query\parametertypeinferer.infertype'>doctrine\orm\query\parametertypeinferer.infertype</a>]: 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</p>
<p>Filename: Query/ParameterTypeInferer.php</p>
<p>Line Number: 70</p>
</div><br />
<b>Fatal error</b>: Class 'PDO' not found in <b>/home/mrwongs/public_html/engine/application/third_party/Doctrine/ORM/Query/ParameterTypeInferer.php</b> on line <b>70</b><br />
My phpinfo can be seen at: http://173.203.85.196/test.php 我的phpinfo可以在以下位置找到: http : //173.203.85.196/test.php
In my php.ini I have the following 2 lines: 在我的php.ini中,我有以下两行:
extension=pdo.so
extension=pdo_mysql.so
Are you getting this error on a webpage? 您是否在网页上收到此错误? or running from cli? 或从cli运行?
php-cli might be using a different php.ini php-cli可能使用了不同的php.ini
Restart the apache server. 重新启动apache服务器。 If you haven't done so. 如果您尚未这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.