Can't publish Laravel app because of ini_set()

693 Views Asked by At

I can't seem to get my Laravel application working because my shared hosting has ini_set() disabled. I have found some workarounds which rely on enabling ini_set().

Neither could I do that (I have tried) because my hosting provider doesn't allow it, nor do I want to as it isn't safe. I'm looking for a way to stop Laravel from using the function.

I've found that Laravel is trying to call ini_set('display_errors', Off). I tried removing the debug value from config, cached config and .env and Laravel is still calling the function. I don't need it to do that as my server's settings already have the display_errors as I want it (disabled).

To sum up, I'm looking for a way to stop Laravel from trying to use ini_set. Anyone have any advice?

0

There are 0 best solutions below