title: BasicNetwork.performRequest: Unexpected response code 500 for
body: <p>I have this Login Java code in my Android Studio:</p>
  
  <pre><code>private void loginUser(){
          pd = ProgressDialog.show(LoginActivity.this, "", "Loading...");
          StringRequest stringRequest = new StringRequest(Request.Method.POST, LOGIN_URL,
                  new Response.Listener&lt;String&gt;() {
                      @Override
                      public void onResponse(String response) {
                          try {
                              JSONObject jsonResponse = new JSONObject(response);
                              System.out.println("JSON RESPONSE: " + jsonResponse.toString());
                              boolean success = jsonResponse.getBoolean("success");
                              if (success) {
                                  launchHomeScreen();
                                  pd.dismiss();
                                  Toast.makeText(LoginActivity.this,"Welcome back " + username,Toast.LENGTH_LONG).show();
  
                                  SharedPreferences sharedPref = getSharedPreferences("loginDatas", Context.MODE_PRIVATE);
  
                                  SharedPreferences.Editor editor = sharedPref.edit();
                                  editor.putString("username", username);
                                  editor.putString("password", password);
                                  editor.apply();
                              }
                              else {
                                  loginButton.setBackgroundColor(0x73000000);
                                  Toast.makeText(LoginActivity.this,"Wrong Username or Password!",Toast.LENGTH_LONG).show();
                                  pd.dismiss();
                              }
                          }
                          catch (JSONException e) {
                              loginButton.setBackgroundColor(0x73000000);
                              e.printStackTrace();
                              pd.dismiss();
                              Toast.makeText(LoginActivity.this,response,Toast.LENGTH_LONG).show();
                          }
                      }
                  },
                  new Response.ErrorListener() {
                      @Override
                      public void onErrorResponse(VolleyError error) {
                          loginButton.setBackgroundColor(0x73000000);
                          pd.dismiss();
                          System.out.println("Error: " + error);
                      }
                  }){
              @Override
              protected Map&lt;String,String&gt; getParams(){
                  Map&lt;String,String&gt; params = new HashMap&lt;&gt;();
                  params.put(KEY_USERNAME,username);
                  params.put(KEY_PASSWORD,password);
                  return params;
              }
  
          };
          RequestQueue requestQueue = Volley.newRequestQueue(this);
          requestQueue.add(stringRequest);
      }
  </code></pre>
  
  <p>But everytime I get this error in my Android Log console:</p>
  
  <pre><code> I tried so many things but everytime I try it, I get back: 04-20 07:44:18.463 3326-2366/com.lolol.gg E/Volley: [294] BasicNetwork.performRequest: Unexpected response code 500 for http://lollipop.xyz/login.php
      04-20 07:44:18.514 3326-3326/com.lolol.ggI/System.out: Error: com.android.volley.ServerError
  </code></pre>
  
  <p>Has anybody an Idea, how to fix my problem? Because I tried many things...It won't work anyway...
  <strong>The weired thing is:</strong>
  I have tested the server code very often it works. When I try the javacode with the url for my localwampserver it works....When I try it with the url from my hostinger server it didn't work...In the 2 servers are the same codes...</p>