Welcome Guest, Not a member yet? Register   Sign In
Wrong redirection to Config/Path in index.php
#1

PHP Code:
// Path to the front controller (this file)
define('FCPATH'__DIR__ DIRECTORY_SEPARATOR);
// Location of the Paths config file.
// This is the line that might need to be changed, depending on your folder structure.
$pathsPath FCPATH '../app/Config/Paths.php';
// ^^^ Change this if you move your application folder 
 This is the original code snippet from index.php


Quote:Warning: PHP Startup: failed to open stream: No such file or directory in /index.php on line 31

Warning: PHP Startup: failed to open stream: No such file or directory in /index.php on line 31

Fatal error: PHP Startup: Failed opening required '//../app/Config/Paths.php' (include_path='.:/:/usr/local/php73/lib/pear') in /index.php on line 31


And this is the error displayed


FCPATH = "//"
__DIR__="/"
 DIRECTORY_SEPARATOR= "/"

it gives the wrong address to the file...
Where can I change the constants: __DIR__ and  DIRECTORY_SEPARATOR

Or what is the other solution ??

THX
Reply


Messages In This Thread
Wrong redirection to Config/Path in index.php - by orbitXcover - 08-11-2020, 10:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB