Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Website crashing, only fixed by clearing session files
Post: RE: Website crashing, only fixed by clearing sessi...

That sounds like a good path forward. Thanks for your help!
1,654 Views
5 Replies
02-27-2023, 09:55 PM
jameslittle
    Thread: Website crashing, only fixed by clearing session files
Post: RE: Website crashing, only fixed by clearing sessi...

I definitely don't need all those old session files, but they have been piling up for months. I was able to clear out a bunch of old ones by running this command: find /mnt/volume/www/MYSITE/writ...
1,654 Views
5 Replies
02-27-2023, 09:26 PM
jameslittle
    Thread: Website crashing, only fixed by clearing session files
Post: Website crashing, only fixed by clearing session f...

I've had 2 times in recent days where my site has crashed (500 error from CodeIgniter, Apache is working otherwise) but there's nothing logged in the PHP or CI logs. The only solution I can find is to...
1,654 Views
5 Replies
02-27-2023, 03:43 PM
jameslittle
    Thread: Disable Debug Bar for certain controllers?
Post: Disable Debug Bar for certain controllers?

Is there a way to disable the debug bar for certain controllers, or ideally for individual routes or functions within a controller? It's causing issues when I'm trying to return JSON responses throug...
914 Views
1 Replies
09-26-2022, 02:29 PM
jameslittle
    Thread: DB failover settings in .env file?
Post: RE: DB failover settings in .env file?

Thanks so much for looking at that Michalsn! And good info about the .env needing to override existing settings.
4,123 Views
4 Replies
06-09-2020, 09:13 AM
jameslittle
    Thread: DB failover settings in .env file?
Post: RE: DB failover settings in .env file?

Did some testing today and sadly it doesn't seem to work. The browser spins for a few seconds and then says "Connection timed out" instead of looking for the failover connection.  Here's what I've ...
4,123 Views
4 Replies
06-04-2020, 06:46 PM
jameslittle
    Thread: DB failover settings in .env file?
Post: DB failover settings in .env file?

The docs talk about a database 'failover' parameter, which is defined as an array within the main DB connection settings. Is there a way to define failovers in an .env file? If so, what would that ...
4,123 Views
4 Replies
06-04-2020, 06:59 AM
jameslittle
    Thread: Using database failovers
Post: Using database failovers

I'm trying to define a database failover in my .env file, but I'm not sure I've got the syntax for env files. I'm using it like: database.default.failover.hostname = localhost database.default.fai...
1,376 Views
1 Replies
03-05-2020, 10:21 PM
jameslittle
    Thread: Wildcard subdomains
Post: RE: Wildcard subdomains

I've looked at doing something similar to this, and you should be able to do that with a wildcard DNS entry. Then it's just a matter of getting your server to respond to any subdomain. If you need ...
4,179 Views
5 Replies
02-25-2020, 10:49 AM
jameslittle
    Thread: Suggested hosting
Post: RE: Suggested hosting

I'm another vote for DigitalOcean. Reliable service and really easy to work with if you're comfortable setting up a VPS. But even if you're not, they've got great tutorials on setting up a LAMP server...
10,672 Views
9 Replies
02-25-2020, 10:35 AM
jameslittle
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

atsanna Wrote: (02-24-2020, 02:30 PM) -- jameslittle Wrote: (02-24-2020, 11:58 AM) -- @dave friend and others...I'm thinking that this is at least partly a PHP issue. I was on PHP Version 7.2.24-...
17,197 Views
19 Replies
02-24-2020, 04:02 PM
jameslittle
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

@dave friend and others...I'm thinking that this is at least partly a PHP issue. I was on PHP Version 7.2.24-0ubuntu0.18.04.3 and both CI 4.0.0 and 4.0.1 threw a "Trying to get property 'maxDepth' ...
17,197 Views
19 Replies
02-24-2020, 11:58 AM
jameslittle
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

I'm still getting a Kint error even on 4.0.1, so I've just set my composer back to RC 4 for the moment. This got me back up and running: Code: -- "codeigniter4/framework": "4.0.0-rc.4" -- The...
17,197 Views
19 Replies
02-24-2020, 10:59 AM
jameslittle
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

I'm getting this same error after updating to 4.0.0., with the error on line 232 Code: --  /** 228          * Config\Kint 229          */ 230         $config = config('Config\Kint'); 231 232...
17,197 Views
19 Replies
02-24-2020, 08:09 AM
jameslittle
    Thread: CodeIgniter 4.0 is here!
Post: RE: CodeIgniter 4.0 is here!

This is great news! Thanks everyone for all your hard work, and especially to Kilishan for shepherding things over the finish line.
216,073 Views
132 Replies
02-24-2020, 07:55 AM
jameslittle
    Thread: Localization duplicate page problem when locale set in routes
Post: RE: Localization duplicate page problem when local...

I'd agree with you that this is functionality that may make sense in core. More often than not, people are probably going to have to dance around the issues you faced. Maybe there's some compelling...
8,900 Views
9 Replies
01-28-2020, 03:37 PM
jameslittle
    Thread: Localization duplicate page problem when locale set in routes
Post: RE: Localization duplicate page problem when local...

I may be over-complicating this, but you could do what you're talking about with the Regular Expression feature in routes. https://codeigniter4.github.io/userguide/incoming/routing.html#regular-exp...
8,900 Views
9 Replies
01-24-2020, 02:10 PM
jameslittle
    Thread: Localization duplicate page problem when locale set in routes
Post: RE: Localization duplicate page problem when local...

So that is the way the documentation says it should behave. If CI can't match a locale, it's going to honor the route and serve your default locale. But definitely agree that this arrangement could...
8,900 Views
9 Replies
01-22-2020, 08:04 PM
jameslittle
    Thread: CI3 or CI4
Post: RE: CI3 or CI4

I've got one live site and another upcoming project on CI4 4.0.0 RC3. Knowing that Codeigniter 4 is moving from RC to general release in the next 5-6 weeks has given me confidence to move all my curre...
9,446 Views
6 Replies
01-22-2020, 12:48 PM
jameslittle
    Thread: [solved] CI4 request missing POST and FILES data
Post: RE: CI4 request missing POST and FILES data

Seems dumb to answer my own question, but I did finally figure this out. Apparently the wildcard routing starts a new HTTP request, so the POST and FILES info was getting lost. When I changed my ro...
3,501 Views
2 Replies
01-21-2020, 09:52 PM
jameslittle

Theme © iAndrew 2016 - Forum software by © MyBB