简体   繁体   English

在这种情况下,为什么会出现错误“找不到PDO类”?

[英]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.

相关问题 为什么会出现此错误? 致命错误:找不到类“ TestCase” - Why am I getting this error? Fatal error: Class 'TestCase' not found 为什么我找不到错误类ImagePixel? - Why am I getting error class ImagePixel not found? 为什么我会收到此错误:“找不到类应用\\笔记本电脑?” - Why am I getting this error: "class app\Laptop not found?" 为什么我会收到“找不到类 &#39;app\\models\\Yii&#39;”错误? - Why am I getting "Class 'app\models\Yii' not found" error? 为什么我的Laravel模块中出现“未找到类”错误? - Why am I getting a “class not found” error in my Laravel module? 为什么会出现“找不到工匠类”错误? - Why am I getting the “Class 'Artisan' not found” error? 为什么即使 class 确实存在并且命名空间正确,我也会收到错误 Class - Why am I getting error Class not found even if the class does exist and is correctly namespaced 为什么我的PDO连接失败 - Why am I getting Fail PDO connect 为什么我收到此错误:找不到“Google_Service_Calendar”类? - Why am I getting this error: Class “Google_Service_Calendar” not found? 为什么我在 Laravel 5.5.43 中收到“找不到 Class &#39;App\\Providers\\Form&#39;”错误? - Why am I getting a "Class 'App\Providers\Form' not found" error in Laravel 5.5.43?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM