Skip to main content
Participant
June 5, 2022
Question

Fatal error: Class 'PDO' not found problem

  • June 5, 2022
  • 2 replies
  • 1202 views
I've just started using PDO, I'm using dreamweaver 2021 and I'm getting this error, I tried many things, but I couldn't figure out what I did, I would appreciate if you could help.

 

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    June 5, 2022

    You need a testing server to parse PHP code locally.

    Which testing server do you have  -- Xampp, Wamp, Mamp/Mamp Pro?

    Did you define the testing server in Dreamweaver?

     

     

    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    Community Expert
    June 5, 2022

    This error reports that the web server was unable to locate a PHP module called “PDO” in the server. Web applications require this PHP module to establish a database connection.

     

    Have a look at the compiled mosules list using the phpinfo() function.

     

    To do this, create a new file called phpinfo.php and as the only instruction, type `phpinfo()` (without the `) and run the file. This will give you similar to

     

     

    If you do not see the above, then you will need to go to `php.ini` to enable the extensions.

     

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!