Welcome Guest, Not a member yet? Register   Sign In
CI4 Kint error
#1

Hi,
I've just setup a fresh CI4 but I get the following error code:

realpath(): open_basedir restriction in effect. File(/var/www/html) is not within the allowed path(s):
SYSTEMPATH/ThirdParty/Kint/init.php at line 50

can anyone give me a hand to understand what it doesn't like?

Thanks,
James
Reply
#2

(This post was last modified: 11-14-2020, 07:56 AM by captain-sensible.)

couple of things it says File(/var/www/html) but html is not a file its a directory.

What version are you using 4.0.4 / i note in docs kint states to use kint :
$useKint = true;

i can't see where to use that in the only index.php i have in public.

Are you on Windows or Linux? xammp ,wamp or other.

My immediate answer is that if you just trying to get started and can't even see landing page; i'm tempted to say use composer --no-dev to remove kint.

I'm not using it and so far have been able to sort all problems without using it. personally i still use Var_dump($somevariable) to see what i get.

Tweaking logger.php level etc are enough debug tools for me


In fact i would go further if your just starting and say put your web dir of CI$ on your Desktop and use
Code:
php spark serve

that will start in built dev server
Reply
#3

This has nothing to do with CodeIgniter. You must disable the open_basedir restriction in your PHP settings. You can do this either in the php.ini or if you are on a hosting platform there should be setting for that. Just set open_basedir to none.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB