Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CLI Error
Post: RE: CLI Error

It was a fresh untouched App Starter. Turns out this was some kind of server config issue. I deleted the domain and recreated in cPanel and everything worked fine.
1,708 Views
5 Replies
05-22-2024, 03:35 AM
ltarrant
    Thread: CLI Error
Post: RE: CLI Error

Hi, Thanks for the quick response. I got the server admin to remove the PSR extension which has solved that error. However, I am now getting a 500 Internal Server Error message. Code: -- Internal ...
1,708 Views
5 Replies
05-20-2024, 07:17 AM
ltarrant
    Thread: CLI Error
Post: CLI Error

Hi, I just installed a fresh copy of CI4 using the Composer App Starter package. I then attempted to install CI Shield via composer which works fine up to running the command Code: -- php s...
1,708 Views
5 Replies
05-17-2024, 09:24 AM
ltarrant
    Thread: CodeIgniter Tasks - Register Task from Module
Post: RE: CodeIgniter Tasks - Register Task from Module

So simple! Moved App/Config/Tasks.php to my Module Config folder and it works. I did try sticking a copy in the Module Config directory before but had not removed the copy in the App Config folder. ...
1,114 Views
4 Replies
05-16-2024, 12:23 PM
ltarrant
    Thread: CodeIgniter Tasks - Register Task from Module
Post: RE: CodeIgniter Tasks - Register Task from Module

I am attempting to move everything inside the module before I make it into a composer package to make it easier to roll out updates across multiple sites.
1,114 Views
4 Replies
05-15-2024, 10:14 PM
ltarrant
    Thread: CodeIgniter Tasks - Register Task from Module
Post: CodeIgniter Tasks - Register Task from Module

Hi, Is it possible to add a scheduled task from a Module.  I looked at the Modules Config Registrar class but this seems to only allow returning arrays of values. Any guidance would be appreciated. Th...
1,114 Views
4 Replies
05-15-2024, 02:57 AM
ltarrant
    Thread: CTE with Query Builder
Post: RE: CTE with Query Builder

Thanks for the comments. I think extending the BaseModel is more within my grasp. Simply using the QB getCompiledSelect and prefixing my WITH clauses should work.
1,541 Views
3 Replies
01-08-2024, 01:54 PM
ltarrant
    Thread: CTE with Query Builder
Post: CTE with Query Builder

Hi, I have some quite complex queries to which I would like to introduce some Common Table Expressions to improve performance and simplify. The existing queries are already written using the query b...
1,541 Views
3 Replies
01-08-2024, 03:53 AM
ltarrant
    Thread: Config caching
Post: RE: Config caching

We don't but I was just testing this on the development server to see what performance increase it offers and if it worth looking at introducing to the production server. kenjis Wrote: (12-28-2023, ...
7,041 Views
8 Replies
01-08-2024, 03:27 AM
ltarrant
    Thread: Config caching
Post: RE: Config caching

I'm getting the error: Fatal error: Uncaught Error: Class "Kint\Renderer\AbstractRenderer" not found in /home/***********/vendor/codeigniter4/framework/system/Config/BaseConfig.php on line 64 Erro...
7,041 Views
8 Replies
12-28-2023, 04:30 AM
ltarrant
    Thread: Config caching
Post: RE: Config caching

Frederik Wrote: (12-18-2023, 09:59 AM) -- ltarrant Wrote: (12-18-2023, 08:58 AM) -- Hi, I am in process of trying to optimise performance of a CI4 project. I have been watching a few PRs on Github...
7,041 Views
8 Replies
12-27-2023, 04:40 AM
ltarrant
    Thread: Config caching
Post: Config caching

Hi, I am in process of trying to optimise performance of a CI4 project. I have been watching a few PRs on Github over the last few months and followed the Config Caching with interest. (https://git...
7,041 Views
8 Replies
12-18-2023, 08:58 AM
ltarrant
    Thread: Trailing Forward Slash Added to some routes
Post: RE: Trailing Forward Slash Added to some routes

I figured this out in the end. Those routes happen to have actual directories in the public folder which store images used. It turns out the default behaviour of Apache is to automatically add t...
1,217 Views
2 Replies
11-29-2023, 12:46 AM
ltarrant
    Thread: Custom Exception Handler Response Status Code
Post: RE: Custom Exception Handler Response Status Code

I may have spoken to soon.  I get the correct 404 response when throw: Code: -- throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound(); -- However, if I throw any other Except...
1,948 Views
3 Replies
11-28-2023, 07:40 PM
ltarrant
    Thread: Custom Exception Handler Response Status Code
Post: RE: Custom Exception Handler Response Status Code

Hi Kenjis, I did but it doesn't seem to show how to handle providing the response code. I ended up looking at the system CodeIgniter\Debug\ExceptionHandler and lift some of the code from that. ...
1,948 Views
3 Replies
11-28-2023, 06:05 PM
ltarrant
    Thread: Custom Exception Handler Response Status Code
Post: Custom Exception Handler Response Status Code

Hi, I'm trying to implement a Custom Exception Handler to allow me to use a custom twig based template error page. This is really just for production side so all the front UI can stick with the same...
1,948 Views
3 Replies
11-28-2023, 10:06 AM
ltarrant
    Thread: Trailing Forward Slash Added to some routes
Post: Trailing Forward Slash Added to some routes

I am experiencing an issue where CI4 framework seems to be adding a trailing forward slash to some routes. However, my htaccess file is setup to redirect and remove trailing slashes. Its then getting ...
1,217 Views
2 Replies
11-25-2023, 12:48 AM
ltarrant
    Thread: Parser - Conditions in Loop
Post: RE: Parser - Conditions in Loop

To resolve my issues I ended up using Kenjis CI4 Twig Library and using Twig as a Template engine rather than the built in Parser. https://github.com/kenjis/codeigniter-ss-twig
1,252 Views
3 Replies
09-29-2023, 11:00 PM
ltarrant
    Thread: Session Flashdata Persisting Like Normal Session Data
Post: RE: Session Flashdata Persisting Like Normal Sessi...

Got there in the end. I tried to switch back to using the File Handler rather than Database Handler session driver to see if that helped. However, I then started getting an error message from CI f...
1,845 Views
4 Replies
09-29-2023, 10:56 PM
ltarrant
    Thread: Session Flashdata Persisting Like Normal Session Data
Post: Session Flashdata Persisting Like Normal Session D...

Hi, I currently have an issue with Flashdata persisting and behaving like normal session data. This occurs with direct use of Flash data like: Code: -- $session->setFlashdata('item', 'value'); -- ...
1,845 Views
4 Replies
09-28-2023, 05:41 AM
ltarrant

Theme © iAndrew 2016 - Forum software by © MyBB