Warning: Cannot modify header information -
headers already sent by (output started at /php/homepage.php:124)
in /php/homepage.php on line 145
This is a most common type of error's that once may get in PHP pages with header functions, lets see reasons that could cause this issues and how to fix it,
- Output Statements:
You might be having echo, printf output statements before the header that would cause this issue.
- Unwanted Blank Spaces :
There should be no blank lines or whitepaces spaces before or after the <php and ?> tags.
- File Format :
Make sure that the file format is UTF-8.
- Include files :
You might be having a include() to include a php page that may contain header redirects.
More Posts related to PHP,
- PHP Code for sending Emails
- PHP drag and drop file upload tutorial using dropzone.js
- Delete file using PHP code : unlink()
- Save current timestamp in MySQL using PHP mysqi binding
- Failed to load resource: net::ERR_CACHE_MISS PHP
- PHP Warning: Cannot modify header information - headers already sent
- PHP header location function not called
- How to destroy PHP session()
- Upload docx file using PHP script
- Call PHP function on Button click using jquery ajax
- Upload Pdf file using PHP Script
- 403 forbidden error for Image
- PHP Base64 encoding decoding a variable
- PHP 301 Redirect Permanently
- Copy file from one directory to other in Php
- PHP Script to Upload Images to Server
- Installing vue.js in Laravel 8
- PHP Fatal error : Call to a member function bind_param() on a non-object
- PHP.ini: How to Remove URL Forward Slash Before Single or Double Quotes
- macOS - cannot calculate MAC address: Using fd 9 hv_vm_create HV_ERROR [PHP XAMPP]
More Posts:
- Best free Decompiler for Java - Java
- Fix - Microsoft Windows Error Code: 0xA00F4244 NoCamerasAreAttached - Microsoft
- Remove Applications from Startup Mac OS X - Mac-OS-X
- [Fix] Instant java.time.temporal.UnsupportedTemporalTypeException: Unsupported unit: Years - Java
- The service instance - SharePoint
- [fix] Chrome: no listeners for an event URLS_SAFE_CHECK__STATUS_UPDATED - Chrome
- What does -Xms and -Xmx stands for in Java? - Java
- MySQL 1005 Error : SQLSTATE: HY000 (ER_CANT_CREATE_TABLE) Message: Can't create table '%s' (errno: 150) - MySQL