Skip to main content
Participant
Jun 5, 2022 5:13 AM UTC
Question

Fatal error: Class 'PDO' not found problem

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    Jun 5, 2022 6:04 PM UTC

    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?

     

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    Community Expert
    Jun 5, 2022 5:40 AM UTC

    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.

     

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