Question

I am in a peculiar problem with php error. I set error_reporting = E_ALL , display_errors = On and display_startup_errors = On in php.ini file . I get error for only once. That means I have a error in my script, if I execute the script through browser it shows the error normally. But If I refresh the page, the error disappears.

How can I get rid of this situtation ??

Thanks

Foysal

Was it helpful?

Solution

You most likely have something you are setting in the SESSION scope that isn't present on first load, and is each subsequent load. We need more detail to be sure. Can you show your code?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top