Old directory still remains

0

I took a project done in CakePHP from an old server and threw in a new one, but the old server path seems to remain in the script. I played all the files in the new one and when I enter the URL, it returns me:

Warning: include(/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include(/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include() [function.include]: Failed opening '/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='/home/daint250/public_html/sitedainterage.com.br/upimob/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include(/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include(/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include() [function.include]: Failed opening '/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='/home/daint250/public_html/sitedainterage.com.br/upimob/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: set_error_handler() expects the argument (ErrorHandler::handleError) to be a valid callback in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/Configure.php on line 442

Warning: include(/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include(/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include() [function.include]: Failed opening '/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='/home/daint250/public_html/sitedainterage.com.br/upimob/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include(/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include(/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include() [function.include]: Failed opening '/home/upimobco/public_html/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='/home/daint250/public_html/sitedainterage.com.br/upimob/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: set_exception_handler() expects the argument (ErrorHandler::handleException) to be a valid callback in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/Configure.php on line 445

Warning: include(/home/upimobco/public_html/lib/Cake/Log/CakeLog.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include(/home/upimobco/public_html/lib/Cake/Log/CakeLog.php) [function.include]: failed to open stream: No such file or directory in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Warning: include() [function.include]: Failed opening '/home/upimobco/public_html/lib/Cake/Log/CakeLog.php' for inclusion (include_path='/home/daint250/public_html/sitedainterage.com.br/upimob/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/daint250/public_html/sitedainterage.com.br/upimob/lib/Cake/Core/App.php on line 546

Fatal error: Class 'CakeLog' not found in /home/daint250/public_html/sitedainterage.com.br/upimob/app/Config/bootstrap.php on line 113

This / home / upimobco / public_html directory is from the old server. Today the path is / public_html / upimob (it's in that folder inside the new server, all files).

I do not understand Cake, so I do not know where that directory is.

    
asked by anonymous 15.04.2016 / 16:59

1 answer

0

In Settings,

app/config/app.default.php

You will have something like

'App' => [
        'namespace' => 'App',
        'encoding' => env('APP_ENCODING', 'UTF-8'),
        'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'),
        'base' => false,
        'dir' => 'src',
        'webroot' => 'webroot',
        'wwwRoot' => WWW_ROOT,

....

Just check the wwwRoot index. Usually has the constant WWW_ROOT .

Then look for where the WWW_ROOT constant is set and define the new path.

Usually it is in index.php .

Something like define('WWW_ROOT', '/o/path/antigo/deve/estar/aqui/');

    
15.04.2016 / 17:12