Welcome Guest, Not a member yet? Register   Sign In
CI-3 HMVC PHP Error
#1

I am trying to get CI-3 to work on localhost with PHP 8.3 and I am getting an error in the MX Controller:

A PHP Error was encountered
Severity: 8192

Message: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated

Filename: MX/Controller.php

Line Number: 45

Backtrace:

File: C:\wamp64\www\chichester-evening-as\application\third_party\MX\Controller.php
Line: 45
Function: str_replace


Line 45 is: $class = str_replace(CI::$APP->config->item('controller_suffix'), '', get_class($this));

Any ideas on a fix?
Reply
#2

CI3 not supporred php8.3.
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#3

(09-19-2024, 08:43 PM)ozornick Wrote: CI3 not supporred php8.3.

Not natively perhaps but I'm sure there is a fix.
Reply
#4

(This post was last modified: 09-20-2024, 01:41 AM by kenjis.)

Ci3 does not work with PHP  8.2 or later.
It is no longer maintained.
Reply
#5

(09-20-2024, 01:34 AM)msheath Wrote:
(09-19-2024, 08:43 PM)ozornick Wrote: CI3 not supporred php8.3.

Not natively perhaps but I'm sure there is a fix.

The fix is Codeigniter 4.
Reply
#6

(09-20-2024, 03:50 AM)Bosborne Wrote:
(09-20-2024, 01:34 AM)msheath Wrote:
(09-19-2024, 08:43 PM)ozornick Wrote: CI3 not supporred php8.3.

Not natively perhaps but I'm sure there is a fix.

The fix is Codeigniter 4.

Well actually you are just plain wrong. I have CI 3.1.11 running perfectly on localhost with php 8.3 in one app. But I did this some time ago and I can't remember exactly what I did. There is definitely a fix but you are unaware of it and I will have to look elsewhere to jog my memory.
Reply
#7

CI3 not supporred php8
Reply




Theme © iAndrew 2016 - Forum software by © MyBB