Regarding Error handling

Post

Posted
Rating:
#10265 (In Topic #3538)
Avatar
Standard member
dkpartycomrade is in the usergroup ‘Fan in action’
Is there a recommended way to handle errors without printing them directly to the screen. For an error in file mysqli, it's throwing: 

echo $error . "\n";

Would I be able to amend this code to comment out the "echo", or log the echo instead of displaying it? Are there any known compatability issues with this. I saw in the code it directed to upload custom files (code) to the specified directory.
Online now: No Back to the top

Post

Posted
Rating:
#10270
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
Hello.

Where do you see this (what file and line number, and what version of Composr)? It might be a debug line that never got removed.

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,827 members
  • Our newest member is LowfareMart
Birthdays:
Back to Top