Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: trying to change DBDebug
Post: RE: trying to change DBDebug

Thank you!  In our CI3 code it says //We need to turn off CI's database debugging in order to capture and handle db errors. Do you know if this is still true in CI4?  We were catching errors like ...
1,930 Views
3 Replies
02-06-2025, 11:16 AM
xanabobana
    Thread: Checking if request is CLI in CI4
Post: Checking if request is CLI in CI4

Hello! I'm doing a large migration from CI3 to CI4.  I have a function where I'm trying to figure out if the request is from a CLI call or not In CI3 the code used was:  PHP Code: -- $this->input-...
1,385 Views
2 Replies
02-06-2025, 10:19 AM
xanabobana
    Thread: trying to change DBDebug
Post: trying to change DBDebug

Hello, I'm doing a large migration from CI3 to CI4.  I have a bunch of CI3 code that uses PHP Code: -- //First turn off debugging so we can track errors $this->db->db_debug = FALSE; //do some tr...
1,930 Views
3 Replies
02-05-2025, 01:24 PM
xanabobana
    Thread: debug_on() and debug_off() CI4 equivalent?
Post: RE: debug_on() and debug_off() CI4 equivalent?

InsiteFX Wrote: (01-17-2025, 10:20 PM) -- Or they are using the Database Configuration db_debug option. -- Thank you!  I was able to find the CI3 documentation for db_debug here:  https://codeignit...
1,834 Views
3 Replies
01-22-2025, 05:55 AM
xanabobana
    Thread: debug_on() and debug_off() CI4 equivalent?
Post: debug_on() and debug_off() CI4 equivalent?

Hello, I'm doing a large CI3 to CI4 migration and came across the following code.  I don't see debug_on() or debug_off() in the CI3 documentation.  Can anyone tell me what that was doing, and if ther...
1,834 Views
3 Replies
01-17-2025, 10:04 AM
xanabobana
    Thread: Benchmark mark - converting from CI3 to CI4
Post: Benchmark mark - converting from CI3 to CI4

Hello, I'm converting a large project from CI3 to CI4.  I have the following lines that needs to be converted:  Code: -- $this->benchmark->mark('getProjectMethods_start'); //code in between $this...
1,888 Views
2 Replies
10-01-2024, 12:07 PM
xanabobana
    Thread: CSRF token for AJAX call in attached javascript file
Post: RE: CSRF token for AJAX call in attached javascrip...

Thank you! I finally got a chance to try this and it worked.
1,822 Views
2 Replies
09-20-2024, 09:17 AM
xanabobana
    Thread: CSRF token for AJAX call in attached javascript file
Post: CSRF token for AJAX call in attached javascript fi...

I'm working in Codeigniter 4 with CSRF protection enabled. I have an AJAX call in an attached js file, and I can't figure out how to generate the CSRF token. Previously, I have done it in php files wi...
1,822 Views
2 Replies
09-12-2024, 10:23 AM
xanabobana
    Thread: Reading a session variable in CI3 that was set by CI4
Post: RE: Reading a session variable in CI3 that was set...

Ah, thank you.  I changed my CI3 application/config/config.php to use  public string $savePath = 'ci_sessions_CI4'; and it worked!
4,495 Views
11 Replies
04-18-2024, 05:05 AM
xanabobana
    Thread: Reading a session variable in CI3 that was set by CI4
Post: RE: Reading a session variable in CI3 that was set...

Yes, I'm aware of that. I thought I had made all necessary changes. If I Code: -- log_message('debug',log_message('debug', 'session ci4: ' .$_SESSION['destination'])); -- In CI4 the session ...
4,495 Views
11 Replies
04-18-2024, 04:13 AM
xanabobana
    Thread: Reading a session variable in CI3 that was set by CI4
Post: Reading a session variable in CI3 that was set by ...

Hello-  I am working on a large migration from CI3 to CI4.  I have attempted to set the session $savePath and $cookieName to be the same in CI3 and CI4, so that I can read in CI3 a session variable th...
4,495 Views
11 Replies
04-17-2024, 11:53 AM
xanabobana
    Thread: Codeigniter 4 debug bar header link "disappeared" - color won't change
Post: RE: Codeigniter 4 debug bar header link "disappear...

I figured it out by methodically commenting 4000 lines of our CSS to narrow it down.  Looks like it was the code for the h1 moving the links.  I'm not sure the best way to go about fixing this, as I d...
1,257 Views
3 Replies
04-12-2024, 06:12 AM
xanabobana
    Thread: Codeigniter 4 debug bar header link "disappeared" - color won't change
Post: Codeigniter 4 debug bar header link "disappeared" ...

I am working on migrating my website from CI3 to CI4. The CI4 debug bar seems like it's having a conflict with CSS somewhere but I can't figure it out.  Here is the example CI4 page: https://dev.vmc....
1,257 Views
3 Replies
04-11-2024, 09:34 AM
xanabobana
    Thread: CI4 Newbie, no log files being created in writeable/logs dir?
Post: RE: CI4 Newbie, no log files being created in writ...

No logs were being written to the writable/logs folder. I found that I needed a customPaths.php file to specify the location of the writable folder
1,722 Views
2 Replies
03-18-2024, 11:45 AM
xanabobana
    Thread: CI4 Newbie, no log files being created in writeable/logs dir?
Post: CI4 Newbie, no log files being created in writeabl...

Hello, I'm having trouble with my new install of CI4.  No logs are being created in the writeable/logs directory.  I have logging level set to 4 in the Logger.php and double checked that the director...
1,722 Views
2 Replies
03-14-2024, 08:39 AM
xanabobana
    Thread: Routes for large CI3 to CI4 upgrade
Post: RE: Routes for large CI3 to CI4 upgrade

Thank you!   My colleague came up with a solution that helps with routing pages between CI3 and CI4 while we migrate pages.  It doesn't solve the session issue either, but we don't have a need for ...
2,807 Views
4 Replies
03-13-2024, 11:56 AM
xanabobana
    Thread: Routes for large CI3 to CI4 upgrade
Post: RE: Routes for large CI3 to CI4 upgrade

This isn't what I was asking. We actually have CI3 and CI4 running together with CI4 in a subdirectory. What I'm looking to do is have it so when I convert a page to CI4, we route to the CI4 subdi...
2,807 Views
4 Replies
03-08-2024, 04:36 AM
xanabobana
    Thread: Routes for large CI3 to CI4 upgrade
Post: Routes for large CI3 to CI4 upgrade

Hello,  The nonprofit organization I work for uses Codeigniter for a very large codebase (around 100 controllers and 750 views).  We are planning to upgrade from CI3 to CI4 this year.  Since our code...
2,807 Views
4 Replies
03-07-2024, 08:10 AM
xanabobana
    Thread: Interface "CI_Session_driver_interface" not found
Post: RE: Interface "CI_Session_driver_interface" not fo...

I re-uploaded the entire /system/libraries/ folder and that solved both issues!
2,708 Views
2 Replies
01-18-2024, 08:36 AM
xanabobana
    Thread: Interface "CI_Session_driver_interface" not found
Post: Interface "CI_Session_driver_interface" not found

Hi, After upgrading to php 8.1, we had the following message:  Message: Return type of CI_Session_database_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::o...
2,708 Views
2 Replies
01-17-2024, 12:59 PM
xanabobana

Theme © iAndrew 2016 - Forum software by © MyBB