70,063 questions
2 votes
1 answer
70 views
CodeIgniter 3 odbc affected rows
Running PHP 8. I have just upgraded CodeIgniter from 3.0.4 to 3.1.13. Before the upgrade, the affected_rows() worked fine and gave me the correct quantity. Now it just gives me a TypeError. This is a ...
0 votes
1 answer
83 views
Datatables pagination not working - table never updates
I'm working on a project upgrading our website- jquery/datatables/codeigniter. In the previous version, I had no problem with this datatable. But now, for some reason the pagination isn't working. ...
0 votes
0 answers
133 views
Google Login Redirect Not Working in CodeIgniter 4: 'Page Does Not Exist' Error on Callback
I'm integrating Google OAuth login in my CodeIgniter project, but I'm encountering an issue with the redirect URI after successfully authenticating with Google. Here's a summary of the problem: My ...
1 vote
2 answers
114 views
Displaying about to expire items
I'm displaying Expired Items using this (codeigniter 3) $qs6="SELECT a.item_name,a.item_code,b.category_name,a.expire_date from db_items as a,db_category as b where b.id=a.category_id and a....
2 votes
0 answers
121 views
SOCKET_EAGAIN error on Nesk\Puphpeteer with Codeigniter project
Getting next clue/socket-raw vendored error (Socket\Raw\Exception) when trying to launch Puppeteer browser: Socket operation failed: Resource temporarily unavailable (SOCKET_EAGAIN) Socket\Raw\...
0 votes
1 answer
93 views
CodeIgniter email function does not work on Prohoster SMTP
My website was developed in PHP using the CodeIgniter framework. On the development server, everything worked perfectly, but after migrating the site to Prohoster, the email sending feature stopped ...
1 vote
1 answer
63 views
php CI 3 custom library => passing parameter to someclass
I am really new to Codeigniter, and just learning from scratch. I use CI3. in native PHP I have a function like this ( to calculate the number of days between two dates) : function dateDiff($date1, $...
0 votes
0 answers
52 views
Codeigniter 3... Undefined Property $Ngetest
Models: Ngetest.phpp <?php defined('BASEPATH') or exit('No direct script access allowed'); class Ngetest extends CI_Model { public function showEcho() { return "naisu"; ...
-1 votes
2 answers
117 views
AJAX file upload request will not end [closed]
I am trying to upload an image to the server but the request will not end. In DevTools, the request shows as pending while, in the backend, php is continuously writing to an ever growing file until I ...
1 vote
1 answer
99 views
CodeIgniter 4 session data has been lost inside a if condition after redirect
Flow: User fills a form with an email and gets a passcode. I generate and store this passcode (checksum_code) in the session using session()->set(...). Then I redirect() the user to a ...
0 votes
1 answer
75 views
PHP Json encode - Malformed UTF-8 PHP/CodeIgniter
I'm getting the following error: <b>Fatal error</b>: Uncaught CodeIgniter\Format\Exceptions\FormatException: Falha ao analisar a string json, erro: "Malformed UTF-8 characters, ...
0 votes
1 answer
73 views
How to check for uniqueness of multiple fields in a database?
I ran into a problem where I don't know how to check the uniqueness of some fields in the database, I don't have a field where only 1 element is unique, of course, except for the id, but I can't ...
2 votes
1 answer
78 views
How to transfer fields to a database where one field is foreign?
I can't add fields to the profile, user_id seems to work, the values are correct, but it doesn't add to the field, but if I change it manually in mysql, it changes the value without errors, what ...
0 votes
1 answer
58 views
Codeigniter 4 php spark publish command failed to publish files
After Upgrading to the latest Codeigniter 4 version, when I am trying to run the command php spark publish Then I am getting an error failed to publish to and more specifically for the reason: fails ...
0 votes
1 answer
173 views
Why is my CodeIgniter 4 custom validation rule not working in form validation?
I'm working on a CodeIgniter 4 project and trying to use a custom validation rule for my form. However, the rule doesn't seem to trigger, and I get no validation errors, even when the input should ...