Welcome Guest, Not a member yet? Register   Sign In
loading ci4 app on server
#2

(This post was last modified: 03-26-2025, 12:31 PM by captain-sensible.)

provide as much info as you can ; you've not actually provided even an actual evidence of an error . Whats the url to your domain ?
what os were you developing on.

What steps did you take  to get online ? you can leave debug level 9 and leave this line in .env to help get info
Code:
CI_ENVIRONMENT = development

All sorts of issues on CI4 and other frameworks can result in files not being 644 and dirs 755 chmod permissions

did you look at logs ?

its useful to stick try catch blocks in controllers eg 

Code:
try

{
//code block 
}

catch ( \Exception  $e)
{

$data = [
'title'  => 'info',
 
  'info'=>'something went wrong with new blog' ,
  'infoException'=>'the problem is :'.$e->getMessage(),
  'date'=>$this->myDate,
];

echo view('info2', $data);
die();

}

So while in dev i have  try catch like above; when something is a miss i try to get error and for my convenience get it output nicely to a info view . yeah we want security ; but that comes after its up and working
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


Messages In This Thread
loading ci4 app on server - by xmax1991 - 03-26-2025, 03:30 AM
RE: loading ci4 app on server - by captain-sensible - 03-26-2025, 12:27 PM
RE: loading ci4 app on server - by xmax1991 - 03-27-2025, 01:28 AM
RE: loading ci4 app on server - by xmax1991 - 03-27-2025, 05:31 AM
RE: loading ci4 app on server - by xmax1991 - 03-27-2025, 07:08 AM
RE: loading ci4 app on server - by xmax1991 - 03-27-2025, 08:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB