ERROR in datasavemysql.cls.php

User 515127 Photo


Registered User
116 posts

The form page URL: http://leads.aboutthechildren.co/index.html

The error message:

Fatal error: Class 'PDO' not found in /home/aboutthechildren/public_html/leads/frmLeads/fbapp/php/datasavemysql.cls.php on line 71

I'm stuck at this point - I'm trying to use the provided modules - so that I can use the Form Builder.

In the production version I built the site in RLMP and created the form using the elements provided, hand coding some javascript validation and a php action script to process the posted info. I want to convert the production site to the RSD version with a Web Form Builder form, but I'm experiencing some problems with the Form Builder post action executing as anticipated.

Hosting GoDaddy VPS Linux/CPanel/Apache
PHP 5.4.33
MySQL 5.5.42-cll

Regards,
Gordon Lincoln



User 103173 Photo


VP of Software Development
0 posts

That means the PDO module for PHP is not installed. Contact your hosting provider and have them enable that for your hosting account.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 515127 Photo


Registered User
116 posts

Hello Scott -

Near as I can tell PDO is enabled on the server?
(VPS Godaddy - CentOS 6 & cPanel)

I hooked in with PuTTY logging in as root - ran this command:
# /usr/local/cpanel/3rdparty/bin/php -i | grep -i pdo
...
PDO
PDO support => enabled
PDO drivers => mysql, pgsql, sqlite
pdo_mysql
PDO Driver for MySQL => enabled
pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
pdo_pgsql
PDO Driver for PostgreSQL => enabled
pdo_sqlite
PDO Driver for SQLite 3.x => enabled

Sincerely,
Gordon Lincoln
User 515127 Photo


Registered User
116 posts

Hello Scott -

nevermind the previous message - I was looking in the wrong place. That is cpanel and what I need is system PHP for this purpose - looking at usr/bin/php I see the configure command --disable-pdo' so it's back to the drawing board.

I found instructions on how to enable PDO using WHM - Apache Update but that option isn't available in the WHM implementation on the VPS I am working with - or at least I haven't found it. So at this point I am looking for instructions on how to recompile Apache to enable PDO using the CLI via SSH as root.

Sincerely,
Gordon Lincoln

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.