Jump to content
php.lv forumi
Sign in to follow this  
vitalja

Symfony framework, Fatal error: Class 'PDO' not found in ...

Recommended Posts

Labdien, lietoju symfony. Uz sava locālā Apache viss darbojas, bez nekādas vainas, bet uzliekot kodu uz hostinga izmet

Fatal error: Class 'PDO' not found in public_html/main/vendor/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php on line 155"

Esmu atradis ka varētu to izlabot http://stackoverflow.com/questions/7126227/pdo-and-pdo-mysql-loaded-but-class-not-found?rq=1  uzstādot pareizu extension_dir, bet man diemžel nav piekļuves php.ini failam.

Lūdzu dodiet idejas, kā izlabot.

Share this post


Link to post
Share on other sites

php.ini

extension=php_pdo.dll (vai .so)

jābūt atkomentētam (bez ; pirms "extension").

Tas ir vienīgais variants.

Un kas tas vispār par debīlu hostu, kuram nav pieejams PHP PDO? Diez kas vēl tur nav pieejams?

Share this post


Link to post
Share on other sites

SSH arī nav pieejams, nez iespējams vel kas nav. Izvēlējos lētu hostu, vispār  "kā izvēlēties hostingu", varētu būt labs temats.

Share this post


Link to post
Share on other sites

Hostinga operātori deva atbildi, un tas palīdzēja.

Cpanli var nomainīt PHP versiju un aktivizēt nepieciešamos modeļus.

Tik vienkārš risinājums, bet patērēja daudz stundu.

Edited by vitalja

Share this post


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...
Sign in to follow this  

×
×
  • Create New...