Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Undefined constant CodeIgniter\Router\Router::HTTP_METHODS
Post: RE: Undefined constant CodeIgniter\Router\Router::...

Testing my code with CI_ENVIRONMENT = production, works fine. But on development, a critical error is thrown. Looks like something related to the debug toolbar. I've no idea to where to look, sugge...
680 Views
5 Replies
06-25-2024, 11:49 PM
jetspeed
    Thread: Undefined constant CodeIgniter\Router\Router::HTTP_METHODS
Post: RE: Undefined constant CodeIgniter\Router\Router::...

Thanks, so is this a bug in the CI framework then?
680 Views
5 Replies
06-25-2024, 09:56 PM
jetspeed
    Thread: Undefined constant CodeIgniter\Router\Router::HTTP_METHODS
Post: Undefined constant CodeIgniter\Router\Router::HTTP...

Hi guys, Can someone tell me what this error means? I can see the constant is defined in Router.php. Code: -- CRITICAL - 2024-06-25 16:30:02 --> Error: Undefined constant CodeIgniter\Router\Rou...
680 Views
5 Replies
06-25-2024, 01:41 AM
jetspeed
    Thread: Spark command not working in controller after upgrade to CI 4.5.2
Post: RE: Spark command not working in controller after ...

kenjis Wrote: (06-24-2024, 12:55 AM) -- @"jetspeed" I have confirmed the behavior, and sent a PR to fix it. Check https://github.com/codeigniter4/CodeIgniter4/pull/8995 -- Thank you so much!
2,301 Views
15 Replies
06-24-2024, 08:57 AM
jetspeed
    Thread: Spark command not working in controller after upgrade to CI 4.5.2
Post: RE: Spark command not working in controller after ...

So after more debugging, I lucked into finding the problem. It seems CodeIgniter\CLI\Commands->discoverCommands() was loading vendor\codeigniter4\framework\system\Commands\Server\rewrite.php Thi...
2,301 Views
15 Replies
06-22-2024, 11:50 PM
jetspeed
    Thread: Spark command not working in controller after upgrade to CI 4.5.2
Post: RE: Spark command not working in controller after ...

kenjis Wrote: (06-22-2024, 02:16 AM) -- This code is invalid. PHP Code: -- log_message('after', 'before service(commands)'); -- There is no log level `after`. https://codeigniter.com/user_guide/...
2,301 Views
15 Replies
06-22-2024, 08:34 PM
jetspeed
    Thread: Spark command not working in controller after upgrade to CI 4.5.2
Post: RE: Spark command not working in controller after ...

InsiteFX Wrote: (06-21-2024, 03:07 AM) -- If I do it like this it displays the help in the welcome_meassage. -- What webserver are you running? My point is that running any command (even an empty o...
2,301 Views
15 Replies
06-22-2024, 12:26 AM
jetspeed
    Thread: Spark command not working in controller after upgrade to CI 4.5.2
Post: RE: Spark command not working in controller after ...

The code was working prior to the CI upgrade. After the upgrade it no longer works. I have tested with xampp 8.1.6 and xampp 8.2.4 with same results.
2,301 Views
15 Replies
06-21-2024, 01:56 AM
jetspeed
    Thread: Spark command not working in controller after upgrade to CI 4.5.2
Post: RE: Spark command not working in controller after ...

Hmm, ok just tested with php spark serve and no issue. But when served via xammp, it doesn't work. I note when I serve with xammp, I'm running via https whereas with php spark it's http. Could there ...
2,301 Views
15 Replies
06-21-2024, 01:32 AM
jetspeed
    Thread: Spark command not working in controller after upgrade to CI 4.5.2
Post: RE: Spark command not working in controller after ...

kenjis Wrote: (06-21-2024, 12:53 AM) -- Your sample code never redirects a request. So the cause might be the changes in Filters. https://codeigniter.com/user_guide/installation/upgrade_450.html#ne...
2,301 Views
15 Replies
06-21-2024, 01:09 AM
jetspeed
    Thread: Spark command not working in controller after upgrade to CI 4.5.2
Post: Spark command not working in controller after upgr...

Hi guys, I've updated from CI 4.4.6 to 4.5.2. One of my previously working code was calling a spark command in the controller using command(). This no longer works and results in the redirection to...
2,301 Views
15 Replies
06-20-2024, 11:16 PM
jetspeed
    Thread: Creating a self updater
Post: RE: Creating a self updater

JustJohnQ Wrote: (02-05-2024, 11:49 AM) -- Care to share your code? -- It's a working prototype, untidy, and very specific to my use case - so not much use to others. If more people are interested, I...
2,042 Views
6 Replies
02-06-2024, 10:15 PM
jetspeed
    Thread: Importing .sql files
Post: RE: Importing .sql files

kenjis Wrote: (02-05-2024, 05:06 PM) -- It seems the package does not provide feature to import. But there is a sample code to import: https://github.com/ifsnop/mysqldump-php/wiki/Importing-dump-fr...
1,354 Views
4 Replies
02-05-2024, 08:39 PM
jetspeed
    Thread: Creating a self updater
Post: RE: Creating a self updater

For anyone reading this, I was able to get an auto update system working with ZipArchive. Well worth the effort.
2,042 Views
6 Replies
02-05-2024, 09:32 AM
jetspeed
    Thread: Importing .sql files
Post: RE: Importing .sql files

Thanks, it looks rather messy, so I found a library that can restore a sql file. If someone else reads this in the future, try https://github.com/ifsnop/mysqldump-php
1,354 Views
4 Replies
02-05-2024, 09:26 AM
jetspeed
    Thread: Importing .sql files
Post: Importing .sql files

Hi guys, I have a sql file exported from phpMyAdmin. Is there a way to import this file via the CI database classes? I tried reading the contents and then running it via simpleQuery() but it threw an...
1,354 Views
4 Replies
02-05-2024, 12:49 AM
jetspeed
    Thread: CLI::error throws exception when run from controller
Post: RE: CLI::error throws exception when run from cont...

Thanks, I get the following error with your suggested patch (with xammp): Code: -- CRITICAL - 2024-01-20 16:56:18 --> TypeError: sapi_windows_vt100_support(): Argument #1 ($stream) must be of ty...
1,245 Views
5 Replies
01-20-2024, 02:01 AM
jetspeed
    Thread: CLI::error throws exception when run from controller
Post: RE: CLI::error throws exception when run from cont...

Thanks, I don't want to modify system files and keep track of them for upgrade reasons. I think I will just use CLI::print if is_cli() returns false. Are there some known dangers to calling CLI com...
1,245 Views
5 Replies
01-20-2024, 12:27 AM
jetspeed
    Thread: CLI::error throws exception when run from controller
Post: CLI::error throws exception when run from controll...

So I have a spark command where I call CLI::error("something went wrong"). This works fine when run from the command line. When I run this same spark command inside a controller, it will throw the fo...
1,245 Views
5 Replies
01-18-2024, 12:26 AM
jetspeed
    Thread: CI Model Timestamp changes from 4.4.3 to 4.4.4 ?
Post: RE: CI Model Timestamp changes from 4.4.3 to 4.4.4...

kenjis Wrote: (01-11-2024, 03:51 AM) -- Sorry, it seems because of https://github.com/codeigniter4/CodeIgniter4/pull/8193 But your past code was a misuse. See https://github.com/codeigniter4/Cod...
1,632 Views
8 Replies
01-11-2024, 09:14 PM
jetspeed

Theme © iAndrew 2016 - Forum software by © MyBB