![]() |
Critical error in system/Common.php - realpath - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Critical error in system/Common.php - realpath (/showthread.php?tid=86910) |
Critical error in system/Common.php - realpath - groovebird - 02-26-2023 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 What could be the reason for that? RE: Critical error in system/Common.php - realpath - Gary - 02-26-2023 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 (?). RE: Critical error in system/Common.php - realpath - groovebird - 02-26-2023 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 RE: Critical error in system/Common.php - realpath - Gary - 02-26-2023 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/..."? RE: Critical error in system/Common.php - realpath - groovebird - 02-26-2023 (02-26-2023, 11:09 AM)Gary Wrote: Yes... it looks like it can't understand some of your path. This is only the original path of my webhosting and i don't want to make it public. I masked this part with the *** RE: Critical error in system/Common.php - realpath - kenjis - 02-26-2023 Try this: https://github.com/codeigniter4/CodeIgniter4/pull/7306 |