Welcome Guest, Not a member yet? Register   Sign In
php spark serve does not work in CI4.2.0
#1

(This post was last modified: 06-09-2022, 07:31 PM by umizoomi.)

When I upgrade to CI4.2.0 "php spark serve" stops working and just displays a blank message. The below set of commands are in Git Bash. I first run "php spark serve" in CI4.1.9 and it works fine, then I upgrade to CI4.2.0 and "php spark serve" does not work. For reference, I have PHP 8.1.6 installed on Windows 10.

Code:
me@LAPTOP-ICCPFR27 MINGW64 /c/sites/www (master)
$ php spark serve

CodeIgniter v4.1.9 Command Line Tool - Server Time: 2022-06-09 13:49:06 UTC+00:00

CodeIgniter development server started on http://localhost:8080
Press Control-C to stop.
[Thu Jun  9 09:49:07 2022] PHP 8.1.6 Development Server (http://localhost:8080) started
[Thu Jun  9 10:01:36 2022] [::1]:59801 Accepted

me@LAPTOP-ICCPFR27 MINGW64 /c/sites/www (master)
$ composer update
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading codeigniter4/framework (v4.1.9 => v4.2.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Upgrading codeigniter4/framework (v4.1.9 => v4.2.0): Extracting archive
37 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

me@LAPTOP-ICCPFR27 MINGW64 /c/sites/www (master)
$ php spark serve

me@LAPTOP-ICCPFR27 MINGW64 /c/sites/www (master)
Reply
#2

try updating spark and public/index.php
Reply
#3

Please read Upgrading guide carefully.

Upgrading from 4.1.9 to 4.2.0 — CodeIgniter 4.2.0 documentation
https://codeigniter4.github.io/userguide...e_420.html
Reply
#4

(06-10-2022, 12:18 AM)iRedds Wrote: try updating spark and public/index.php
Thanks! That worked
Reply




Theme © iAndrew 2016 - Forum software by © MyBB