-
Error log
Where can I see my error log? I get the following error message when attempting to submit information through the script I'm using:
'Error: Could not run query on the database. Please check your database details and try again.'
It worked for a number of years and then suddenly didn't, but in order for the script creator to help fix the problem, I need to provide the information from the error log.
-
It isn't possible to view the error log (if your CMS / script creates a log, you can check that).
Make sure you are not using the old mysql_ functions that are now obsolete: you should be using mysqli_ or pdo.
Bye!
-
The script had been updated with mysqli_ prior to me coming here. I created an error_log.txt file and added code to .htaccess from instructions I found online, but that didn't work, the file remained blank. Why aren't we given access to error logs for our sites?
-
Because you are on a shared server and any logs would be from the entire server.
Can you access the database via phpMyAdmin?
Bye!
-
Oh, that's understandable, then. Yes, I can access the database there.
-
Ok, so i guess the problem is in the PHP script (phpMyAdmin is "simple" PHP code). Did you check the settings of your script?
Bye!
-
I just did, but I'm not sure what in Settings I should be looking for?
-
Check the link: the settings are:
Hostname/server, Username, Database.
Bye!
-
All the information is correct.
-
Ok, so che problem seems to be in the PHP script. Did you try to change the PHP version? I don't know anything about the script, so i can't help you about it.
Bye!