Questions tagged [codeigniter-3]

For questions specific to the 3rd release of CodeIgniter, an Application Development Framework (a toolkit) is designed for people who build websites using PHP. If your problem isn't specific to this version, use just [codeigniter].

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Currently getting errors with CodeIgniter3 and Sessions when trying to create a login

So I am currently learning how to use CodeIgniter3 and having trouble understanding where I am going wrong when starting my session. Login.php <?php defined('BASEPATH') OR exit('No direct script ...
Shay's user avatar
  • 13
0 votes
0 answers
11 views

Data not filled automatically in 2nd and 3rd column using select2 while inserting/choosing data in 1st column

I've try to making autofill program using select2 when inserting the first column the second and third column also supposed to filled according to the database but it isn't work. I am using ...
IMAM IHSANI's user avatar
0 votes
0 answers
11 views

Code Igniter 3 - SSL operation failed with code 1. OpenSSL Error messages: error:0A00010B:SSL routines::wrong version number

I've updated a server from PHP 5.6 and Code Igniter 2.5 to PHP 8.1 and Code Igniter 3 Everything seems to work except for the Email sending module. The error says: A PHP Error was encountered Severity:...
Aritz Barrondo's user avatar
1 vote
1 answer
74 views
+100

CodeIgniter 3 - flashdata() always returns null after a page reload

Migrating from CodeIgniter2 to CI3. PHP 8.2 I've confirmed that there are not multiple requests, by looking at network traffic. There are only 4 other files loaded from the same server, and those are ...
Val Kornea's user avatar
  • 4,437
0 votes
0 answers
24 views

How to Remove Square Brackets in JSON Encode in CodeIgniter 3?

How i can remove square brackets in the Image field when using json_encode Relevant JSON Encode part JSON Response : { "Success": 1, "Data": [ { "Userid": &...
Dharmik Pipaliya's user avatar
0 votes
2 answers
103 views
+50

CodeIgniter attach email function issue

It would be appreciated if you help me with following code as I follow correct step but still not receiving email with attachment. Will be appreciated if any of you find the correct issue. Here is ...
Muhammad Hamza Nisar's user avatar
0 votes
3 answers
72 views

Prevent direct access to any PHP files on codeigniter

I have built a site with codeigniter 3. I want to prevent run all php files directly. imagine that I have a file named test.php in my root. When the user goes to a site.com/test.php , it is not ...
sam nikzad's user avatar
  • 1,287
0 votes
0 answers
78 views

Codeigniter website is hacked by an unknown method [closed]

I have developed a website with codeigniter 3 and I have also updated it to the latest version of codeigniter. My website has been hacked in the same way for several days. The hacker puts two files in ...
sam nikzad's user avatar
  • 1,287
0 votes
1 answer
33 views

Implement jwt token in the url

I need your help if possible, I already have the library installed, I added the code but I can't generate the token and concatenate it with my URL, Thank you for all your help, I'm sorry for the ...
Wilton Santos's user avatar
0 votes
1 answer
33 views

Codeigniter hook is not executed

I created a hook for log all http requests in codeigniter 3 but no log is recorded after send a http request like POST or GET. I enabled hook config in config/config.php : $config['enable_hooks'] = ...
sam nikzad's user avatar
  • 1,287
0 votes
1 answer
21 views

Codeigniter 3 order_by dopings

I have 4 types of doping. I need some sorting on the categories page. Those with doping types 1 and 4 will be listed as DESC at the top, those with type 1 at the bottom, those with type 4 at the ...
Codeigniter Developer's user avatar
-2 votes
0 answers
60 views

Data inserted in database but value is NULL (I am using name spacing on naming the table and its fields)

Can somebody help me please? In my office they're using Ms. Access for work and i just try to developing a new webapp using php ci 3. there are some problem. So i am just inserting data using ci 3. ...
IMAM IHSANI's user avatar
-1 votes
0 answers
14 views

codeingiter 3 infinite scrolling issue

I'm using codeigniter 3 for my project, to display products i'm using infinite scrolling functionality. when i scroll little bit also, then also scripts run multiple time to fetch data from ajax, Im ...
Rahul Gupta's user avatar
0 votes
0 answers
19 views

The uploaded file didn't go to the upload folders for CodeIgniter 3

I've successfully implemented the models for handling file uploads in my project. However, even though the file upload process is functional, I've encountered an issue where the uploaded file isn't ...
farizbagaaas's user avatar
0 votes
0 answers
16 views

Empty Dashboard Issue with Harviacode CRUD Generator in CodeIgniter 3

I am encountering an issue while attempting to open the dashboard for the Harviacode CRUD Generator in CodeIgniter 3. When I try to access the CRUD generator dashboard, it only displays a blank page ...
Kevin Anantha's user avatar
0 votes
0 answers
18 views

Severity: Warning --> hash_equals() commerce coinbase integration

ERROR - 2023-11-14 18:55:35 --> Severity: Warning --> hash_equals(): Expected known_string to be a string, null given /home/xhost/website.com/application/controllers/Callback.php 610 $secret = $...
yurseli's user avatar
0 votes
0 answers
29 views

multiply Calculating, using CodeIgniter3

I have 3 echo values ​​that I need to multiply directly on a view page: $x1(); * $x2(); * $x3(); and then I want to display the result with echo. How do I do that? I'am not fit with codeigniter. so i ...
Tim's user avatar
  • 1
0 votes
0 answers
43 views

PHP 8.2: Unable to read what child 15029 said into stderr: Bad file descriptor (9)

We recently upgraded our application, which is built using CodeIgniter 3, from PHP 8.0 to 8.2. However, we've been encountering persistent errors in our logs that didn't occur with PHP 8.0. The error ...
N.J's user avatar
  • 227
0 votes
0 answers
72 views

You must use the "set" method to update an entry during insert

I use codeigniter 3, I want to insert a post data to database, but the error is You must use the "set()" method to update an entry. I can register user using "$this->db->insert($...
Tim's user avatar
  • 1
1 vote
2 answers
63 views

How to replace several similar functions in a model with just one?

at the moment I'm using these functions for my queries: public function Surat_300() { $query = $this->db->query(" SELECT * FROM `ts_300` WHERE `status_surat` = '1' "); return $...
laode fauzan's user avatar
3 votes
0 answers
216 views

Codeigniter 3 failed to write cache

I tried to write caches using codeigniter 3 helper in my application : $this->cache->save($cacheKey, $data, 150); I already made sure the $data is not empty, But when i open the cache folder, ...
owf's user avatar
  • 245
0 votes
1 answer
106 views

Chinese text not show using dompdf

Hello i want to convert html to pdf using dompdf, my HTML has Chinese text. In HTML view the Chinese text show very well, but when I convert to pdf the Chinese text only show square. This is my code $...
namarahasia's user avatar
0 votes
1 answer
30 views

Generate Vcard using Codeigniter 3

I am trying to use jeroendesloovere VCARD in Codeigniter 3 controller as below: public function get_contact($unique_id) { namespace JeroenDesloovere\VCard\VCard; require_once '...
dinesh's user avatar
  • 73
1 vote
0 answers
32 views

I want to create a dynamic form, but when I enter the jobRespons and projectAccomplishm data it doesn't match the work experience num, here is my code

Form Result input HTML: <div class="bg-primary flex p-3"> <h3 class="font-medium text-white">WORK EXPERIENCE</h3> </div> ...
Irsyad Nafi's user avatar
0 votes
0 answers
28 views

Purpose of converting a data into an integer first and then to a string

I think the below code: (string) intval($data[$this->config->item('rest_status_field_name')]) Converts the data into an integer first and then to a string. But why ? ` The result is always ...
dekalog's user avatar
2 votes
1 answer
24 views

Browse an excel by columns PHPEXCEL

I need to read an excel file and upload the information to my DB, the structure of the information is the next one. The idea is to take A1, then B2 to B8, N amoung of times, i make the test with a ...
Nicolas Rudisky's user avatar
0 votes
0 answers
54 views

How to redirect and login to another specific url from codeigniter 4 to codeigniter 3?

I am working on admin panel for diff. states in codeigniter 4.Admin login will be single for all states. From login page admin will enter username, password and choose state for which he wants to ...
dev_programmer's user avatar
0 votes
0 answers
41 views

got error in server when send email ; fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Permission denied)

here full error message when i try register data with send email validation, I tried the email sending feature locally, and it works, but when I deployed it to the server, I encountered an error. full ...
judith herlambang's user avatar
0 votes
1 answer
77 views

Wrong on summation of two columns

I have created Table production_report pro_id pro_stage_id pro_model_id pro_qty 1 1 44 420 2 1 44 200 3 1 44 430 Table production_defects_report pdr_id prd_modet_id pdr_stage_id pdr_defect_id ...
Syam's user avatar
  • 171
0 votes
0 answers
55 views

issue while saving multi input images to database using codeigniter php

i have a form, where there are few input fields including image input field, the image input fields allow multi upload option. now when a user clicks on add more button few of the fields including ...
ZNO's user avatar
  • 181
0 votes
0 answers
23 views

Api Client Login Codeigniter3

I experienced problems when connecting my login to an API service, where in my system there are divisions into user categories, namely Admin and User, the problem that occurred was when entering ...
Newbie 's user avatar
1 vote
0 answers
112 views

how to configure content security policy header in codeigniter 3

Please anyone provide solution how do I set the content security policy header in code igniter 3? I tried a lot but nothing happen. thanks I am doing like this $this->output->set_header('Content-...
Shubham Nayak's user avatar
1 vote
1 answer
55 views

$this->db->update(); function in Codigniter is not working

I used the $this->db->update(); function to update a field in a table using Codeigniter. I have the following model function to do this : function addBills($fdata) { if (!empty($fdata)) {...
mcode's user avatar
  • 101
0 votes
1 answer
59 views

CodeIgniter adding parenthesis to FROM clause, causing mySQL error

We recently upgraded our servers to mySQL 8.0 and started getting an error with a query that had previously been working. This is the php code causing the error: $this->db->select('...
xanabobana's user avatar
0 votes
0 answers
12 views

Why did the codeigniter 3 site stop working when moved to a new hosting company?

I'm moving an old Codeigniter 3 site to a new hosting company and I've run into a problem. I believe the path info and the database are configured correctly. But, when I visit the url, a local dialog ...
Bill200's user avatar
  • 63
-1 votes
1 answer
43 views

How to remove ' ' on string php inside db query

i'm new on PHP. I was trying to query to the database like this : ... ... $query.=" AND isnull(try_convert(datetime,a.transactiondate,103),a.createddate) between '? 00:00:00' AND '? 23:59:59'&...
agam theos's user avatar
0 votes
1 answer
44 views

show tables from different sql tables that unrelated

i want to show 2 tables that contain diffent information in a single codeigniter view page heres the code on model.php (they are in the same class > public function showPlants(){ > return $this-&...
loveearthmix's user avatar
0 votes
1 answer
19 views

How multiple input works in Codeigniter 3, in the database file upload only one, not many files?

plaese help me dear, I want to try enabling multiple input on other titles and other upload files. Is there something wrong with the controller that I made, so it loops for other titles and multiple ...
ucanggg2021's user avatar
0 votes
0 answers
18 views

Codeigniter 3 memcached issue

i'm getting this error in my drivers/Cache_memcached.php file A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: drivers/Cache_memcached.php Line ...
Nitesh Vishwakarma's user avatar
0 votes
1 answer
46 views

Codeigniter 3 Stripe Webhook Signature Failed

I'm trying to create a subscription based script in codeigniter 3. The checkout session is beign created successfully with the function below : private function create_checkout_session($type = "...
ray.php's user avatar
1 vote
0 answers
85 views

Codeigniter 3 - PHP 8 - Mail Issue

Since the update from PHP 7.4 to 8.1 I get strange messages by sending emails. $config = Array( 'protocol' => 'asmtp', 'smtp_host' => 'asmtp.mail.*****.com', ...
yab86's user avatar
  • 395
0 votes
0 answers
20 views

Codeigniter 3 unserialize(): Error (cache_file)

Every now and then I see the following error. (on any page) I am using the cache_file system. Error Ex.: A PHP Error was encountered Severity: Notice Message: unserialize(): Error at offset 2629626 ...
it acc's user avatar
  • 1
1 vote
0 answers
19 views

JCrop Cut Half Resolution of Image

here I am using JCrop as a tool to crop images which will later be used for profile photos. Previously I tried cropping, for example I wanted to crop an image with a size of 512 x 512. The program ran ...
Andrian_Must's user avatar
0 votes
0 answers
40 views

Codeigniter view load issue

When Im using echo modules::run('layout'); it takes more than a minute to load the view, but when using $this->load->view('layout'); it's working fine. What is the reason behind this?
waqar's user avatar
  • 33
0 votes
1 answer
30 views

Order Documents By Year in CI

I am working in CodeIgniter. I am showing pdf files on a page according to year. For example I have 3 documents. First document published year = 1983 Second document published year = 2020 Third ...
Hamza Zafeer's user avatar
  • 2,370
1 vote
0 answers
81 views

CodeIgniter + Session usage with Redis is slow

I'm migrating my application with CodeIgniter 3 to use Redis as a session manager, but as it makes many requests in AJAX I noticed that they tend to take longer, 11 requests that in all took 300ms now ...
Tom's user avatar
  • 707
0 votes
0 answers
31 views

dropzone form not storing the images to the database and directory

I have a form in codeigniter 3 application. The dropzone is implemented on the form, the problem is when I submit the form the dropzone picture stored but it ignore my other simple image field. Please ...
Mujtaba Hussain's user avatar
0 votes
0 answers
33 views

HTML email is not working, Plain text Email working in CI

I am sending an Email in CodeIgniter Email library with GOOGLE SMPT from my subdomain with following configuration. $this->load->library('email'); $config['protocol'] = 'SMTP'; $config['...
Hamza Zafeer's user avatar
  • 2,370
0 votes
1 answer
28 views

$route['written-qb/(:any)/(:any)/(:any)'] is not working

When I use uri segment 2, 3 it works but when add uri segment 4 it doesn't work. URL should be like this... http://localhost/maruf/written-qb/bcs/44th-bcs-english/how-has-the-phrase-digital-detox-been-...
Maruf Sheikh's user avatar
0 votes
0 answers
13 views

Encrypt Parameter

I have a codeigniter program where I want to encrypt parameter data sent via ajax. The program code is as follows: $("#order").on("click", function () { var ord = $('#...
zhopp's user avatar
  • 11

1
2 3 4 5
110