# Header may not contain more than a single header, new line detected

Hello good evening, please can you give me some advice to fix this bug, I am trying to renew my license but I am facing this error when I am trying to open the link to purchase the License.

Thank you

Header may not contain more than a single header, new line detected

(1/1) ErrorException

Header may not contain more than a single header, new line detected
in Response.php line 346
at HandleExceptions->handleError(2, ‘Header may not contain more than a single header, new line detected’, ‘/home/basocons/public_html/ninja4/vendor/symfony/http-foundation/Response.php’, 346, array(‘values’ => array('Invoice Ninja | Free Source-Available Online Invoicing 301 Moved Permanently

301 Moved Permanently


cloudflare '), ‘name’ => ‘Location’, ‘replace’ => false, ‘value’ => 'Invoice Ninja | Free Source-Available Online Invoicing 301 Moved Permanently

301 Moved Permanently


cloudflare '))
at header('Location: Invoice Ninja | Free Source-Available Online Invoicing 301 Moved Permanently

301 Moved Permanently


cloudflare ', false, 302)in Response.php line 346
at Response->sendHeaders()in Response.php line 380
at Response->send()in index.php line 56

Even I got this error

[2024-05-01T21:34:58.213029+00:00] production.ERROR: [stacktrace] 2024-05-01 09:34:58 Allowed memory size of 134217728 bytes exhausted (tried to allocate 3059712 bytes): #0 {main} {“context”:“PHP”,“user_id”:1,“account_id”:“1”,“user_name”:“Cindy Soto”,“method”:“GET”,“user_agent”:“Mozilla/5.0 (iPad; CPU OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/124.0.6367.88 Mobile/15E148 Safari/604.1”,“locale”:“en”,“ip”:“150.220.226.202”,“count”:2,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“account/get_search_data”} []

Hi,

You can try using this link:

https://app.invoiceninja.com/buy_now/?account_key=AsFmBAeLXF0IKf7tmi0eiyZfmWW9hxMT&product_id=3

From the error you may need to increase the PHP memory limit.

1 Like