Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 4.6.0 Deploy Issue
#1

I deployed CodeIgniter 4.6.0, but I'm encountering a syntax error in the Config/App.php file related to the public string $baseURL declaration. When I remove the string type declaration, the error shifts to the next line. Additionally, other configuration files, such as Routes.php, are also showing similar string or array syntax errors. Can someone help me properly install and configure CodeIgniter 4.6.0?
Reply
#2

(This post was last modified: 02-13-2025, 11:25 AM by captain-sensible. Edit Reason: usual suspects )

if you copy the syntax error we may be able to help

This is an example of a working CI4  on localhost:

Code:
public string $baseURL = 'http://127.0.0.7/';

this is an example of a working web :

Code:
public string $baseURL = 'https://andrinadesignstudio.com/';
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply
#3

public string $baseURL = 'http://autotechremapping.co.uk/';

when i remove the "string" it goes away but i notice almost all config files has this syntax error either with "array or string"
Reply
#4

Check ./spark config:check Config\\App ?
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB