Read your first message and tell me if it make sense.
"Error appear on page" ... yes that's so helpful information that I instantly know which error you mean and which page.
What I mean is that the error appears to all visitors to the site
It should appear when you are logged in as an administrator or appear on the error page
the errors is printed in site page that be create security issue. how i can prevent this issue
![Shocked :o](https://forums.osclasspoint.com/Smileys/osclass-emoji/shocked.gif)
Just edit your osclass config to forward all errors to a log
/**
* Copy this code to config.php file
* This will log all error notices and warnings to a file called debug.log in oc-content
*/
define('OSC_DEBUG', true) ;
define('OSC_DEBUG_LOG', true) ;