When i try to upload a picture in Imghost script i upload it and then i got error
**Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/****/public_html/config.php:1) in /home/*****/public_html/upload.php on line 20**
That is show in the line 20 require_once('config.php');
$dbconnect = new db(); $dbconnect->connect(); session_start(); if (UPLOAD_ONLY_REGISTERED == 1) { if (!isset($_SESSION['user_id'])) { header('Location: register.php'); exit(); } } ?>
Also i try to log in the admin panel and get this
**Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/*****/public_html/config.php:1) in /home/****/public_html/inc/functions.php on line 210**
**Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/config.php:1) in /home/****/public_html/inc/functions.php on line 255**
The whole file of the function.php http://justpaste.it/dt6w
How to fix these errors?