70,062 questions
2
votes
1
answer
56
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
75
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. ...
1
vote
2
answers
105
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....
0
votes
1
answer
92
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 ...
0
votes
0
answers
51
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
vote
1
answer
93
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
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 ...
0
votes
1
answer
57
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
76
views
Nginx Showing 404 in Header Despite Page Rendering Fine (CentOS, aaPanel, CodeIgniter 4)
I'm experiencing a strange issue where the page at
https://customsportswears.com/ibc52/custom-afl-uniforms-high-quality-australian-football-league-gear.html
loads fine in the browser, but when checked ...
0
votes
0
answers
36
views
Error exception on codeigniter 4 about open failed to open stream
error description
This error occurred when I uploaded an image file with the rules I wrote in the model. The image is still uploaded into a path that I have specified even though this error appears. ...
1
vote
1
answer
98
views
How to get the filtered record count for a query?
I am using codeigniter 4 model for a an application which I work.
I would like to get the filtered record count for a query as shown.
My code is a shown below:
$model = new LocationModel();
$builder = ...
4
votes
1
answer
111
views
CI4 + PHP 8.1: Finally block not executed when mysqli_sql_exception occurs (but works with register_shutdown_function)
I'm working on a CodeIgniter 4 project (CI: 4.4.3 production mode | PHP: 8.1.32), and I'm running into a strange issue where my finally block never executes if a database error happens during ...
0
votes
0
answers
76
views
CodeIgniter 3 (HMVC) - 404 on route even though controller exists - MX_Controller issue?
Hi I'm facing an issue during a technical challenge for a PHP internship using PHP 8.1 and CodeIgniter 3 (with HMVC structure using MX_Controller).
The company sent me the repository already set up — ...
1
vote
2
answers
76
views
Toast Notification Appears on Every Page After Login Failure in CodeIgniter
I'm facing an issue with toast notifications in my CodeIgniter app. After a failed login attempt, the error message is displayed correctly using Toastr. However, this message keeps appearing on every ...
0
votes
1
answer
71
views
Microsoft Graph subscription API error regarding Notification endpoint
So I have been trying to create a Azure graph subscription API , the publicly accessible endpoint is
https://omstest.shiplogiq.dev/webhook/graph_listener
POST API URL:
https://graph.microsoft.com/v1....
0
votes
3
answers
72
views
Codeigniter 4 validation of keys within an associative array
I would like to validate the following json in CI4:
{
"field1": "some value",
"array1": {
"2876": "4358",
"9904": &...
-1
votes
1
answer
106
views
503 error after 3 minutes of execution time [closed]
I have an function that tries to synchronize data of the API to the system and the system data needs to be synchronized with the API.
As you can imagine this can take a little while, definitely when ...
1
vote
2
answers
122
views
Loading Route.php and Routing.php settings in different Modules in CodeIgniter4
I have different custom Module paths/ Namespaces in my CodeIgniter4 project, and I just recently upgraded to version 4.4.0. in this upgrade the route settings will move from Config/Routes.php to ...
0
votes
1
answer
81
views
CI4 Not Staying Logged In
I have an issue that I've been troubleshooting for days that just doesn't make any sense to me. I'm hoping someone has any idea to help!
I'm working on a page where you need to be logged in. The ...
0
votes
0
answers
42
views
Ajax call with CSRF protection 403 forbidden CI4
I am working on translating a page from Codeigniter 3 to Codeigniter 4, and have session based CSRF protection enabled in CI4. For some reason, even though I can see the CSRF name and CSRF hash in ...
1
vote
2
answers
73
views
Possible to group class functions and access them by group in PHP/Codeigniter?
I have a library in my CodeIgniter4 project, now I want to make my lib with lots of functions more clear.
For that I want to know if its possible to group the functions inside the class-definition by ...
0
votes
1
answer
399
views
Cannot install mysqli or pdo_mysql extensions in PHP 7.4.33 Docker container
I’m trying to set up a Docker-based environment for my PHP 7.4.33 application, but I’m unable to install the mysqli and pdo_mysql extensions. Despite following several tutorials and rebuilding the ...
1
vote
1
answer
75
views
How to open a new page with button Link?
So, I am working on simple website for my office using codeigniter 4 and it's really different with the one I tried during my university days.
My problem is a button which link to our form page. But ...
0
votes
3
answers
75
views
Restrict Unauthorized Access to Profile Images in CodeIgniter 4
I'm currently facing an issue with profile image access in my CodeIgniter 4 (ci4) application. After a user logs in, they can access the "Match Profile" and "View Profile" pages, ...
0
votes
0
answers
47
views
502 Bad Gateway Error when Configuring base_url in CodeIgniter with Nginx and Docker
Title: 502 Bad Gateway Error when Configuring base_url in CodeIgniter with Nginx and Docker
Description:
I have a legacy CodeIgniter application running in a Dockerized environment with PHP-FPM, ...