Foysal
Foysal

Reputation: 185

PHP error shows only once, disappear when refreshed

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 an error for only once. That means I have an error in my script if I execute the script through the browser it shows the error normally. But If I refresh the page, the error disappears.

How can I get rid of this situation ??

Upvotes: 2

Views: 642

Answers (1)

AlexC
AlexC

Reputation: 1141

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?

Upvotes: 1

Related Questions