Welcome Guest, Not a member yet? Register   Sign In
Critical error in system/Common.php - realpath
#1

(This post was last modified: 02-26-2023, 05:18 AM by groovebird.)

Hi,

after loading the homepage i got an 500 error with the following error message in the logfile.
Code:
CRITICAL - 2023-02-24 14:26:45 --> Uncaught ValueError: realpath(): Argument #1 ($path) must not contain any null bytes in /***/codeigniter4/framework/system/Common.php:90
Stack trace:
#0 /***/codeigniter4/framework/system/Common.php(90): realpath('a:3:{s:4:"time"...')
...

What could be the reason for that?
Reply
#2

Possibly a null byte in your path?

It looks like you may be running CI from in a directory that has a path that has some characters in it that are not vaxxed (?).
Reply
#3

What i don't understand, the parameter should be a string with a path name, but in the error log a serialized string is shown
Reply
#4

Yes... it looks like it can't understand some of your path.

What is the "base" directory you have CI running out of?

... the *** part of "/***/codeigniter4/..."?
Reply
#5

(02-26-2023, 11:09 AM)Gary Wrote: Yes... it looks like it can't understand some of your path.

What is the "base" directory you have CI running out of?

... the *** part of "/***/codeigniter4/..."?

This is only the original path of my webhosting and i don't want to make it public. I masked this part with the ***
Reply
#6

Try this: https://github.com/codeigniter4/CodeIgniter4/pull/7306
Reply




Theme © iAndrew 2016 - Forum software by © MyBB