Results 1 to 10 of 10

Thread: Error log

  1. #1
    kelli is offline Junior Member
    Join Date
    Jul 2012
    Posts
    5

    Default 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.

  2. #2
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    735

    Default

    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!

  3. #3
    kelli is offline Junior Member
    Join Date
    Jul 2012
    Posts
    5

    Default

    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?

  4. #4
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    735

    Default

    Because you are on a shared server and any logs would be from the entire server.
    Can you access the database via phpMyAdmin?

    Bye!

  5. #5
    kelli is offline Junior Member
    Join Date
    Jul 2012
    Posts
    5

    Default

    Oh, that's understandable, then. Yes, I can access the database there.

  6. #6
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    735

    Default

    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!

  7. #7
    kelli is offline Junior Member
    Join Date
    Jul 2012
    Posts
    5

    Default

    I just did, but I'm not sure what in Settings I should be looking for?

  8. #8
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    735

    Default

    Check the link: the settings are:

    Hostname/server, Username, Database.

    Bye!

  9. #9
    kelli is offline Junior Member
    Join Date
    Jul 2012
    Posts
    5

    Default

    All the information is correct.

  10. #10
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    735

    Default

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO