PHP has four magic constants, %__FILE__%, %__LINE__%, %__FUNCTION__% and %__CLASS__% that can be used to backtrack to the source of the problem.