Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7741951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:09:33+00:00 2026-06-01T09:09:33+00:00

I moved my website on a server in order to go live, but I

  • 0

I moved my website on a server in order to go live, but I am getting an issue with an Ajax call to a PHP file designed to return a text value. I am trying to find what the bug is. The code works on my local PC.

The error I get from the Ajax call is:

Error: error Internal Server Error

I am using the following piece of code to perform the call:

function goClick(ttype, vvalue) {

    $.get(fw_script, { type: ttype, value: vvalue, langpref: langpref })
        .success(function(result) {
            setResult(result);
        })
        .error(function(jqXHR, textStatus, errorThrown) {
            setResult("Error: " + textStatus + " " + errorThrown);
            alert("Failure");
        });

}

How can I obtain more information about what could cause this issue? I am not an expert at PHP. Is there some equivalent of Java’s try {} catch {} finally{} in PHP? Would this be the proper way to catch exceptional errors on the server side? Should I wrap my PHP code with a catch? How to retrieve information about internal errors?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:09:34+00:00Added an answer on June 1, 2026 at 9:09 am

    You’re exactly right. try {} catch {} works the same way in PHP.
    http://php.net/manual/en/language.exceptions.php

    Internal Server Errors are often caused by a typo or similar in the PHP file. You can try to enable error logging to get more details about the error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a new website moved to my server. This website uses PHP and
This morning I moved a .NET website from our local server to live (not
I moved my Wordpress website from its live location to my local server and
My company recently moved a php website to a new server. I updated all
I just moved my website (asp.net) to the live environment. I realized they are
I just moved my website to a new server (Shared to VPS) I expected
I moved my website to new server and found strange PDO behaviour: $q =
I moved a Wordpress website from one server to another and I am now
I was working on microsoft environment, but now I moved my website to ubuntu,
I have moved my website and MySQL database to a new, free server at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.