Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Sahou Kanaan Almelhem](https://uploads.teamtreehouse.com/production/profile-photos/7029622/micro_me.jpg)
Sahou Kanaan Almelhem
Courses Plus Student 15,547 Pointssuppress errors problem
i have suppressed the code at line 25, but i still get Fatal error message that says:
<?php
// Report simple running errors
error_reporting(E_ALL);
// Make sure they're on screen
ini_set('display_errors', 1);
// HTML formatted errors
ini_set("html_errors", 1);
// Fatal
//@require "non_existent_file";
// Warning
@include "non_existent_file";
// Warning
//$my_file = @file('non_existent_file') or die("Failed opening file");
function error_function($error) {
echo $bad;
// Notice
return $error;
}
// Warning
echo @error_function();
echo "End of File.";
Fatal error: Uncaught ArgumentCountError: Too few arguments to function error_function(), 0 passed in C:\xampp\htdocs\php\project\errors3.php on line 25 and exactly 1 expected in C:\xampp\htdocs\php\project\errors3.php:18 Stack trace: #0 C:\xampp\htdocs\php\project\errors3.php(25): error_function() #1 {main} thrown in C:\xampp\htdocs\php\project\errors3.php on line 18