CodeIgniter Forums
Update codeigniter - 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: Update codeigniter (/showthread.php?tid=80985)

Pages: 1 2


RE: Update codeigniter - BilltheCat - 01-11-2022

Check your app/Config/Paths.php file to see where your System folder should be:
PHP Code:
class Paths
{
 
/**
 * ---------------------------------------------------------------
 * SYSTEM FOLDER NAME
 * ---------------------------------------------------------------
 *
 * This must contain the name of your "system" folder. Include
 * the path if the folder is not in the same directory as this file.
 *
 * @var string
 */
 
public $systemDirectory __DIR__ '/../../vendor/codeigniter4/framework/system'



RE: Update codeigniter - pippuccio76 - 01-11-2022

(01-11-2022, 01:29 PM)BilltheCat Wrote: Check your app/Config/Paths.php file to see where your System folder should be:
PHP Code:
class Paths
{
 
/**
 * ---------------------------------------------------------------
 * SYSTEM FOLDER NAME
 * ---------------------------------------------------------------
 *
 * This must contain the name of your "system" folder. Include
 * the path if the folder is not in the same directory as this file.
 *
 * @var string
 */
 
public $systemDirectory __DIR__ '/../../vendor/codeigniter4/framework/system'




public $systemDirectory = __DIR__ . '/../../system'; //localhost

public $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/framework/system'; //server

I havent' change it , is a fesh installation with composer

SOLVED ... Upload system folder in vendor and change :

public $systemDirectory = __DIR__ . '/../../vendor/system';


RE: Update codeigniter - BilltheCat - 01-11-2022

Just delete the system folder in your root path.


RE: Update codeigniter - pippuccio76 - 01-11-2022

(01-11-2022, 05:15 PM)BilltheCat Wrote: Just delete the system folder in your root path.

But where is the correct way to update ?


RE: Update codeigniter - BilltheCat - 01-11-2022

Code:
PowerShell 7.2.1
Copyright (c) Microsoft Corporation.
PS D:\xampp\mysite> composer update


Now upload everything to your server, except for that system folder.  And double check that there is a system folder in the vendor location I gave earlier just in case it was accidentally moved.