簡體   English   中英

在這種情況下,為什么會出現錯誤“找不到PDO類”?

[英]Why am I getting the error “Class PDO not found” in this situation?

即使已安裝PDO並包含在php.ini中,我仍收到以下錯誤。

我可能會丟失什么? 我正在使用教義和代碼點火器

<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 />

我的phpinfo可以在以下位置找到: http : //173.203.85.196/test.php

在我的php.ini中,我有以下兩行:

extension=pdo.so
extension=pdo_mysql.so

您是否在網頁上收到此錯誤? 或從cli運行?

php-cli可能使用了不同的php.ini

重新啟動apache服務器。 如果您尚未這樣做。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM