Welcome Guest, Not a member yet? Register   Sign In
New XAMPP release 7.4.13, 8.0.0-0
#1

(This post was last modified: 12-03-2020, 04:41 PM by InsiteFX.)

Just an update I tried the XAMPP 8.0.0 and it keeps throwing a missing extension error from CodeIgniter but it doe's not tell you which extension is missing.

The XAMPP 7.4.13 Is running fine here.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#2

What version of CodeIgniter did you test with?
Reply
#3

XAMPP 8.0.0 It is telling me an Error on the userAgent and that the intl extension is missing when I know it is there.

I just went back to version 7.4.13

Even tried the Windows download version of php 8.0.0
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

(This post was last modified: 12-06-2020, 02:27 AM by InsiteFX.)

Many thanks to @ivantcholakov for his fixes.

Use:
XAMPP 8.0.0
Codeigniter 4 Developer from GitHub

Make these changes to the system files (which you should never do!), but will get it running.

PHP Code:
// Change
system/HTTP/IncomingRequest.php on

line 131
public function __construct($configURI $uri null$body 'php://input'UserAgent $userAgent null

PHP Code:
// Change
system/Router/RouteCollection.php

Line 991
public function match(array $verbs = [], string $from null$to null, array $options null): RouteCollectionInterface 

And this is the one that had me stumped for awhile on Windows 10 Pro x64.

I had the extension=intl un-remarked in the extension section of php.ini but CodeIgniter kept telling me it was not installed.
So here is the fix, you also have to add the extension=intl to the php.ini module section.

See Code below this is as far as I know only for Windows.

Code:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename
;
; For example:
;
;   extension=mysqli
;
; When the extension library to load is not located in the default extension
; directory, You may specify an absolute path to the library file:
;
;   extension=/path/to/extension/mysqli.so
;
; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and
; 'extension='php_<ext>.dll') is supported for legacy reasons and may be
; deprecated in a future PHP major version. So, when it is possible, please
; move to the new ('extension=<ext>) syntax.
;
; Notes for Windows environments :
;
; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+)
;   extension folders as well as the separate PECL DLL download (PHP 5+).
;   Be sure to appropriately set the extension_dir directive.
;
extension=bz2
extension=curl
;extension=ffi
;extension=ftp
extension=fileinfo
;extension=gd
extension=gettext
;extension=gmp
extension=intl    ; <-- intl extension also needs to be added in the below modules section.
;extension=imap
;extension=ldap
extension=mbstring
extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
;extension=odbc
extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=shmop

; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=snmp

;extension=soap
;extension=sockets
;extension=sodium
;extension=sqlite3
;extension=tidy
;extension=xsl

;zend_extension=opcache

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
asp_tags=Off
display_startup_errors=On
track_errors=Off
y2k_compliance=On
allow_call_time_pass_reference=Off
safe_mode=Off
safe_mode_gid=Off
safe_mode_allowed_env_vars=PHP_
safe_mode_protected_env_vars=LD_LIBRARY_PATH
error_log="C:\xampp\php\logs\php_error_log"
register_globals=Off
register_long_arrays=Off
magic_quotes_gpc=Off
magic_quotes_runtime=Off
magic_quotes_sybase=Off
extension=php_openssl.dll
extension=php_ftp.dll
extension=intl    ; <-- You also have to add the intl extension here

It is now running on Windows 10 Pro x64
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

To all users for now I would just stick to php 7.4.13 and not use php 8.0.0 it has
to many errors and warnings. CodeIgniter 4 is not made to run on php 8.0.0.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB