# Issues with New Installation

**URL:** https://community.spicecrm.io/t/issues-with-new-installation/259
**Category:** Installation
**Created:** [February 27, 2018, 3:14pm UTC](https://community.spicecrm.io/t/issues-with-new-installation/259 "2018-02-27T15:14:59Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![orchid](https://avatars.discourse-cdn.com/v4/letter/o/a4c791/32.png) [@orchid](https://community.spicecrm.io/u/orchid)
#### Post date: [March 8, 2018, 3:18pm UTC](https://community.spicecrm.io/t/issues-with-new-installation/259/8 "2018-03-08T15:18:42Z")

</div>

Val,

I just wanted to let you know that I resolved the issue by adding the follow code to /KREST/index.php

```
if (!function_exists('getallheaders')) 
{ 
    function getallheaders() 
    { 
           $headers = []; 
       foreach ($_SERVER as $name => $value) 
       { 
           if (substr($name, 0, 5) == 'HTTP_') 
           { 
               $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; 
           } 
       } 
       return $headers; 
    } 
}
```

---

_[View the full topic](https://community.spicecrm.io/t/issues-with-new-installation/259)._
