CodeIgniter Forums
When run php spark command it gives error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: When run php spark command it gives error (/showthread.php?tid=87447)



When run php spark command it gives error - sanjay.tops - 04-20-2023

When I run php spark command it executed successfully but it returns error at end. This issue I observed into php spark migrate or db : seed, php spark clear:cache.
Here are that error:
Code:
c:> php spark migrate

CodeIgniter v4.3.3 Command Line Tool - Server Time: 2023-04-20 05:12:43 UTC-07:00
Running all new migrations...
Migrations complete.

[Error] Call to a member function getStatusCode() on null at ROOTPATH/spark:100

Please help me out here.
Thanks in advance



RE: When run php spark command it gives error - iRedds - 04-24-2023

You need to refresh the "spark" file in the root directory.