CodeIgniter Forums
Error 500 on localhost - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Error 500 on localhost (/thread-72224.html)



Error 500 on localhost - sandeeptwr04 - 11-24-2018

Hi All,
I am using third party api in my controller called  Api when i am trying to go on action called search i am 500 error on my localhost.
Please help  me out.


RE: Error 500 on localhost - richb201 - 11-24-2018

(11-24-2018, 07:49 AM)[email protected] Wrote: Hi All,
I am using third party api in my controller called  Api when i am trying to go on action called search i am 500 error on my localhost.
Please help  me out.

That seems to be a "catch all" host error. What I mean is that many things can cause that and it is not truly descriptive. You should check your Apache log to see if something obvious happened.


RE: Error 500 on localhost - sandeeptwr04 - 11-24-2018

(11-24-2018, 09:09 AM)richb201 Wrote:
(11-24-2018, 07:49 AM)[email protected] Wrote: Hi All,
I am using third party api in my controller called  Api when i am trying to go on action called search i am 500 error on my localhost.
Please help  me out.

That seems to be a "catch all" host error. What I mean is that many things can cause that and it is not truly descriptive. You should check your Apache log to see if something obvious happened.



RE: Error 500 on localhost - sandeeptwr04 - 11-24-2018

Hi Rich,

I am getting response from third party api but when i am trying to pass data to view i am getting response like localhost/Codeigniter/api/search unable to handle request Error 500 on my browser.
Please help


RE: Error 500 on localhost - jreklund - 11-25-2018

You need to supply us with your code.
- What's the data you are passing to the view.
- How do you pass it to the view.
- How are you accessing it in the view.

application/config/config.php
$config['log_threshold'] = 1; // Change it into 4

And check your logs at:
application/logs/log-YYYY-MM-DD.php


RE: Error 500 on localhost - InsiteFX - 11-25-2018

In your web browser click on F12 for the Developer Tools and see what is causing the eerror.