Unexpected response to PHP query. PHP may not be configured correctly on your web server. Contact your hosting provider or website administrator about how to configure PHP support.
On website, trying to submit the form, I get this error:
‘The server encountered an error’.
Not sure what the problem is here.
Please can someone advise at the soonest and help me with this issue. Happy to talk over phone & provide materials as well.
Okay, so I’ve deleted it, as since I’m a mod, I can see the deleted post. Quick question, where on the site is the problem? I used the contact us page, and it acted like it successfully sent the request… I’m about to do it again, this time with some of my tools running so I can monitor the requests being made.
Using Chrome (as that is what I’m using right now), navigate to your site.
Press F12 to open the Dev Tools
Navigate to the Network tab of Dev Tools
Check the Preserve Log checkbox
Scroll down to Request a Free Consultation
Enter the data and press the Sendbutton
Inside the Network Tab of Dev Tools, click on the term XHR (it is under ‘Disable cache’)
You should see an entry for form-u18233.php, click on it.
It should show you the Response, which I pasted above.
Unfortunately, it isn’t the version of the PHP script, but the version of PHP being used to run the website.
If you have a CPanel, Plesk, whatever control panel, it should be visible in there. Alternatively, you can create a new PHP file named phpversion.php and put this in it.
<?php
echo phpversion();
Upload it to the website and visit that page and it should tell you.
Okay, so that tells me you have a relevant PHP version, so something else is amiss with the server. Can you alter the text inside phpversion.php to have
<?php
phpinfo();
I need to see more about how PHP was setup to figure out why it can’t find PDO.
Okay, so going here
stone…you_know_the_url_tional.com/scripts/phpversion.php (be sure to delete this file after saving the output of it locally so you can show it to whoever it needs to be shown to)
You can see this:
Whoever, installed PHP on this server intentionally disabled PDO…
You need to contact whoever maintains your web server to get this resolved.
Awesome! Glad it worked out. I think you are the first to have a scenario where it was related to PDO, so thanks for being patient and taking a moment to work through the possible scenarios.
Also, be sure to delete that phpversion.php file in your scripts folder, you don’t want that to be hanging around!