Jump to content

PDO missing from package software


Recommended Posts

Hi, I got this line 705 from a connection.php file.

Error: Class 'PDO' not found in

        return new $pdoClass($dsn, $this->username, $this->password, $this->attributes);
    }

I tried the official site, nothing on this. The installation was okay. Line 705.

Link to post
Share on other sites

So this PDO class is not available on the server I use, and should the package not contain this?

An Error occurred while handling another error:
Error: Class 'PDO' not found in /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/Connection.php:705
Stack trace:
#0 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/Connection.php(626): yii\db\Connection->createPdoInstance()
#1 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/Connection.php(1022): yii\db\Connection->open()
#2 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/Connection.php(1009): yii\db\Connection->getMasterPdo()
#3 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(406): yii\db\Connection->getSlavePdo()
#4 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(430): yii\db\mysql\QueryBuilder->supportsFractionalSeconds()
#5 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/mysql/QueryBuilder.php(59): yii\db\mysql\QueryBuilder->defaultTimeTypeMap()
#6 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/base/BaseObject.php(109): yii\db\mysql\QueryBuilder->init()
#7 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/QueryBuilder.php(116): yii\base\BaseObject->__construct(Array)
#8 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/mysql/Schema.php(217): yii\db\QueryBuilder->__construct(Object(yii\db\Connection))
#9 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/Schema.php(248): yii\db\mysql\Schema->createQueryBuilder()
#10 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/Connection.php(856): yii\db\Schema->getQueryBuilder()
#11 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/ActiveQuery.php(328): yii\db\Connection->getQueryBuilder()
#12 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/Query.php(248): yii\db\ActiveQuery->createCommand(Object(yii\db\Connection))
#13 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)
#14 /home/userajrl/public_html/protected/humhub/libs/BaseSettingsManager.php(177): yii\db\ActiveQuery->all()
#15 /home/userajrl/public_html/protected/humhub/libs/BaseSettingsManager.php(51): humhub\libs\BaseSettingsManager->loadValues()
#16 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/base/BaseObject.php(109): humhub\libs\BaseSettingsManager->init()
#17 [internal function]: yii\base\BaseObject->__construct(Array)
#18 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/di/Container.php(400): ReflectionClass->newInstanceArgs(Array)
#19 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/di/Container.php(159): yii\di\Container->build('humhub\\componen...', Array, Array)
#20 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('humhub\\componen...', Array, Array)
#21 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#22 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/base/Module.php(742): yii\di\ServiceLocator->get('settings', true)
#23 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/di/ServiceLocator.php(74): yii\base\Module->get('settings')
#24 /home/userajrl/public_html/protected/humhub/components/Request.php(28): yii\di\ServiceLocator->__get('settings')
#25 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/base/BaseObject.php(109): humhub\components\Request->init()
#26 [internal function]: yii\base\BaseObject->__construct(Array)
#27 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/di/Container.php(400): ReflectionClass->newInstanceArgs(Array)
#28 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/di/Container.php(159): yii\di\Container->build('humhub\\componen...', Array, Array)
#29 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('humhub\\componen...', Array, Array)
#30 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#31 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/base/Module.php(742): yii\di\ServiceLocator->get('request', true)
#32 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/di/ServiceLocator.php(74): yii\base\Module->get('request')
#33 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/web/ErrorHandler.php(503): yii\di\ServiceLocator->__get('request')
#34 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/web/ErrorHandler.php(116): yii\web\ErrorHandler->shouldRenderSimpleHtml()
#35 /home/userajrl/public_html/protected/vendor/yiisoft/yii2/base/ErrorHandler.php(123): yii\web\ErrorHandler->renderException(Object(Error))
#36 [internal function]: yii\base\ErrorHandler->handleException(Object(Error))
#37 {main}
Edited by Html
Here is the error
Link to post
Share on other sites

PDO is a native PHP class, so libraries and frameworks are not going to try to build their own version of it. You need to make sure that PDO is installed along with PHP, if you cannot do that then you cannot use this library.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...