This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

rooman

  • ****
  • 231 posts
Error displaying on the page
« on: February 11, 2023, 04:03:50 PM »
Why does the error appear on the page?
This poses a risk to the data
Where data paths appear on the page
is there a solution
I don't want the error to appear on the page with the path
I want the error to appear on the page (there is only an error)
Error details only appear in the error file
Thanks

*

rooman

  • ****
  • 231 posts
Re: Error displaying on the page
« Reply #1 on: February 17, 2023, 08:36:18 AM »
Hello
 :-[

*

MB Themes

Re: Error displaying on the page
« Reply #2 on: February 17, 2023, 10:15:51 AM »
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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Error displaying on the page
« Reply #3 on: February 17, 2023, 11:46:12 AM »
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
 :o
« Last Edit: February 17, 2023, 01:22:27 PM by rooman »

Marked as best answer by frosticek on February 17, 2023, 08:29:34 PM
*

dsf

  • *****
  • 261 posts
Re: Error displaying on the page
« Reply #4 on: February 17, 2023, 02:44:55 PM »
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
 :o

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) ;

*

MB Themes

Re: Error displaying on the page
« Reply #5 on: February 17, 2023, 08:29:47 PM »
Thank you ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: Error displaying on the page
« Reply #6 on: February 18, 2023, 06:24:52 AM »
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
 :o

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) ;

Well done
thank you all ;D