Welcome Guest, Not a member yet? Register   Sign In
Undefined Variable 500 Error
#1

(This post was last modified: 12-18-2023, 09:09 AM by mywebmanavgat.)

PHP Code:
<?php

namespace App\Controllers;

class 
Home extends BaseController
{
    public function index(): string
    
{
        echo $dd;
    }


The above code generates 500 internal server errors in a real environment.


In native php this code continues normally.
In Ci3 it also logs the undefined error to the logs folder but the script continues to run.

Is it possible to make this situation work like ci3 in ci4?
Reply


Messages In This Thread
Undefined Variable 500 Error - by mywebmanavgat - 12-18-2023, 09:06 AM
RE: Undefined Variable 500 Error - by InsiteFX - 12-18-2023, 11:10 AM
RE: Undefined Variable 500 Error - by kenjis - 12-18-2023, 07:04 PM
RE: Undefined Variable 500 Error - by kenjis - 12-18-2023, 07:05 PM
RE: Undefined Variable 500 Error - by kenjis - 12-18-2023, 07:10 PM
RE: Undefined Variable 500 Error - by kenjis - 12-19-2023, 03:20 AM
RE: Undefined Variable 500 Error - by kenjis - 12-19-2023, 03:09 AM
RE: Undefined Variable 500 Error - by kenjis - 12-19-2023, 06:05 AM
RE: Undefined Variable 500 Error - by kenjis - 12-19-2023, 10:55 PM
RE: Undefined Variable 500 Error - by kenjis - 12-20-2023, 12:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB