• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

#2
Can you pleae check this thread : CodeIgniter Forum

Especially this line :

PHP Code:
$pathsPath FCPATH './app/Config/Paths.php'
Reply

#3
(08-12-2020, 01:47 AM)demyr Wrote: Can you pleae check this thread : CodeIgniter Forum

Especially this line :

PHP Code:
$pathsPath FCPATH './app/Config/Paths.php'
No one way from topic can solve my problem ;(
Reply

#4
Can you share your folder structure? It seems that you have placed the application at the very root of your filesystem.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.