1

I've been trying to make a search page, but I keep getting redirected back to the main site. I can't find anything useful in the log about why this might be happening. Is there a way I can enable some sort of traceback so that I can figure out what is causing this? What I'd like to do is see some sort of list that tells me the names of the functions being called, and the php files where those functions reside.

  • Have you tried using xdebug? What IDE/profiling tools are you using and what environment are you looking to trace on? – codearachnid Apr 10 '14 at 15:57
  • I'm not really using any IDE or profiling tools at the moment, apart from vim, php -l, and lots of reloading pages. The environment is a linux server. I just found out about the Debug Bar plugin, but I'm fairly new to this, so I'm not sure what I should be using. – Jonathan Apr 10 '14 at 16:05
  • Please add the code that is relevant to your question. You said "I've been trying to make a search page". If anyone is going to help you, please edit your question and add that code. This will be a starting point to help you – Pieter Goosen Apr 10 '14 at 17:33
  • @PieterGoosen, I understand the need for code snippets generally, but the help I'm looking for here is not with a particular block of code, but with a general inability to debug code because I don't have a function backtrace. In other words, I have no idea what functions are being called which produce an error. If I had a list of the functions called, I might be able to pinpoint the problem. – Jonathan Apr 10 '14 at 18:06
  • 1
    Use Better HTTP Redirects to debug redirects. – Rarst Apr 10 '14 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.