5,409 questions
1
vote
1
answer
46
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 ...
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
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";
...
-2
votes
2
answers
106
views
typeahead js is fetching invalid json data on live server
i used typeahead in my codeigniter 3 project and it worked well on localhost but when i ran it on live server it failed. i am unable to resolve it so help is required.
My view input field is.
<div ...
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
90
views
mpdf manual integration issue
I manually downloaded mpdf 8 files to the application\third-party
..Also Psr\log downloaded in application\psr\log .
I modified the path in Mpdf.php and i got this.
An uncaught Exception was ...
0
votes
0
answers
22
views
Need help lazy loading pagination by using twitter typehead library
Scrolling down event the server side is sent data with page by page, received successfully and the data item is also combined by the previous page and next page data item, but Twitter typehead only ...
0
votes
1
answer
28
views
"File Upload Failed: The Upload Path Does Not Appear to Be Valid in CodeIgniter 3"
I'm working on a file upload feature in CodeIgniter 3, but I'm encountering the following error:
File upload failed: The upload path does not appear to be valid.
Here are the details of the issue:
The ...
0
votes
1
answer
71
views
How to improve the speed of Hotelbeds hotel search result page by optimizing static content data?
I'm facing a performance issue in the Hotelbeds search page due to static content data. While the search responses are fast, collecting static data from different tables like hotel images, facilities, ...
1
vote
1
answer
216
views
Google OAuth Login in CodeIgniter 3 Redirects on localhost work on my machine but not my teammate
I'm implementing Google login in my CodeIgniter 3 web project. The functionality works perfectly on my local machine. However, when my teammate runs the exact same code on their machine, they ...
1
vote
2
answers
148
views
Why does my codeigniter 3 setup keep showing 404 error?
Using codeigniter 3 I have modified the following.
config
$config['base_url'] = 'http://demo.xyz.com/xyz/';
$config['log_threshold'] = 4 ;
$config['index_page'] = '';
$config['uri_protocol'] = '...
1
vote
0
answers
35
views
create dynamic intro.js using php codeigniter
if (!sessionStorage.getItem('introSkipped')) {
introJs()
.setOptions({
steps: [
{
element: document.querySelector('#test'...
0
votes
0
answers
53
views
fail in json response in codeigniter 3 controller method
in my codeigniter view page i have a form submission process;
which in controller method i use following for this process:
$FORM_KURALLARI = PROFIL_OLUSTURMA_FORM_KURALLARI();
$this->...
0
votes
1
answer
56
views
Insert product using shopify
I'm trying to add a curl product with rest api in shopify using node js with graphql.There is a problem related to the product description part.
In this format I send the description, it also contains ...
0
votes
1
answer
35
views
How do I set a specific CSS stylesheet to load If a specific database id is set? [closed]
I am working on a project in Codeigniter 3.1.9 on PHP 8.2.12.
My question is I have a lot of dynamic data that gets brought into a static view to create multiple pages. The issue I have is that ...
0
votes
0
answers
48
views
how to pass data from nested ajax to parent ajax
i am working in codeigniter 3 i have a table in my database wit name tests and another table results. i retrieve data from tests table by ajax and then get results from result table by nested ajax to ...
0
votes
0
answers
28
views
replace TCPDF logo with costum
in codeigniter 3 i have a controller method to create pdf from html content using TCPDF as follow;
public function generatePDF_correct_numbering1() {
// Initialize TCPDF
$pdf = new TCPDF('...
-3
votes
1
answer
100
views
How to block ip with ipv4 if the client's has ipv6 in PHP [duplicate]
I'm building a website with PHP and I want to configure it to only check the client's IPv4, but I'm having a problem that if the client has IPv6, it gets IPv6.
I get the IP with $_SERVER['...
0
votes
2
answers
132
views
Placing Search Results in Pieces into Separate Divs? Is this Possible?
I am not sure if there is an answer to my question or if it even possible but here goes:
I am working on an old Codeigniter 3.1.9 site in PHP 8.2.12. My question is is it possible to have search ...
-2
votes
1
answer
79
views
can't load custom library on Codeigniter 3 on production server [closed]
I've look to all existing question about this issue but still couldn't find the answer. I'm working on CentOS 7 Server.
Here is my custom library that I put in application/libraries
Simas_Bridge.php
...
0
votes
0
answers
95
views
Codeigniter 3 The upload destination folder does not appear to be writable
I have a Codeigniter 3 project. There was no problem when I was running the site locally, but when I uploaded it to the ngxi server, I got this error:
"The upload destination folder does not ...
1
vote
1
answer
96
views
Codeigniter failing to load CI_Exceptions
I have an codeigniter 3 app deployed to an ubuntu server.
When one of my models (assumably) hits an error, I am getting this message:
Fatal error: Uncaught Error: Class "CI_Exceptions" not ...
1
vote
0
answers
62
views
Codeigniter - I'm having an issue with the dropdown it’s not populating the dropdown as expected, and I’m not sure what the exact problem is
When I tried to print the data, it is being printed correctly. However, I'm having trouble with the view file it’s not populating the dropdown as expected. If anyone knows what might be wrong, please ...
-1
votes
1
answer
189
views
how to create pdf by dompdf with background image?
i use simply following to print some data in pdf by dompdf in my codeigniter 3 project. here is my controller method:
public function index() {
// Load Dompdf library
$dompdf = new Dompdf\...
0
votes
1
answer
70
views
multiple image upload issue while editing images in codeigniter php
i have an image upload form, while adding the upload is working fine. Now my edit form looks like below:
<input type="hidden" name="pimage2old" value="<?...
-5
votes
1
answer
89
views
how to retrieve a file using php
I want to retrieve a file/image from specific path in php, I was tried different ways like file_get_contents and opendir and readdir like etc , but unable to find any solutions, Can you please help on ...
0
votes
1
answer
20
views
Codeigniter 3: Inserting Dynamic Input type = "file" Course>Section>Media Field
<script>
let mediaHtml = `
<div class="mediaItem">
<input type="text" name="sections[${sectionDiv.data('section-id')}][media][${mediaCounter}][...
0
votes
1
answer
57
views
Append cloned row to latest child where the button is clicked
I have a table with a button that when clicked, I save it in the DB via AJAX. If successful, it should clone the current row where the button is in, and then append it to the latest child. Saving it ...
1
vote
2
answers
1k
views
How to efficiently send Firebase push notifications to 200,000 users simultaneously using PHP? [closed]
With a user base of 200,000 and a live session underway, the need to send push notifications to all users simultaneously arises to inform them of the live session in PHP. However, Firebase push ...
0
votes
0
answers
23
views
How to use insert_batch CI 3, but some param not need include on array?
I've form to insert data use insert_batch CI 3, my plan is use insert_batch to insert more data in one time and javascript to create dynamically the form. Below the code I've to try it.
Controller
...
0
votes
0
answers
61
views
Message: Declaration of Phalcon\Translate\Adapter\AbstractAdapter::offsetUnset() must be compatible with ArrayAccess::offsetUnset($offset)
I created a website some years ago using codeigniter 3. I uploaded it to cPanel and my hosting provider upgraded PHP to 8.1, then I started seeing this error on the website
A PHP Error was encountered
...
0
votes
1
answer
68
views
Json data not reaching to controller
<script>
function makePayment() {
const txRef = `shayonix-${new Date().getTime()}-${Math.random().toString(36).substring(2, 15)}`;
let price = document.getElementById("...
0
votes
0
answers
35
views
Json data is not reaching to the controller [duplicate]
i am trying to send this json data to my controller but its not going can you please check it out for me? thanks in advance
// this is my script in form file
function verifyTransactionOnBackend(...
0
votes
0
answers
70
views
update sql database based on edited content of ckeditor in codeigniter3
Im new to codeigniter3 and blade. and i have some trubble to update my sql database when the ckeditor content updated.
here i have a view page which send report_id as hidden variable to controller.
...
0
votes
1
answer
46
views
multiple image upload issue in codeigniter php
i am trying to upload multiple images using codeigniter, i have around 15 image fields with the name pimage to pimage15, all are optional, my controller code is like below:
public function ...
0
votes
0
answers
99
views
Array and string offset access syntax with curly braces is no longer supported in Encoding.php on line 171 [duplicate]
<p>Array and string offset access syntax with curly braces is no longer supported in
Encoding.php on line 171</p>
[![Array and string offset access syntax with curly braces is no ...
0
votes
0
answers
23
views
Custom Codeigniter Rule to capture a field that begins with 'X'
I need to create a rule which checks that a form field has been submitted which is either of the following:
'year0', 'year1', 'year2', 'year3', 'year4', 'year5'
Below is an example of post data. In ...
0
votes
0
answers
60
views
Showing blank page instead of saving when records are more
I have created a Stocktake page which is saving perfectly fine when records are less but when we have more items, when we save, the page doesn't saves and shows a blank page. I couldn't figure out how ...
0
votes
1
answer
245
views
CSRF Token Regeneration Issue in CodeIgniter AJAX Form Submissions
I'm working on a CodeIgniter application where I'm using CSRF protection with AJAX form submissions. I have $config['csrf_regenerate'] = TRUE; enabled in my configuration, but I'm encountering a 403 ...
1
vote
0
answers
34
views
Web page become slower when using order_by in codeignator
I have table consist of around 400K rows and i need to return the data 100 rows for each page. already i used a pagination library in the controller but i faced an issue the model become slower after ...
0
votes
0
answers
49
views
Join tables from different servers in codeigniter php
I have two different servers like UAT and Preprod. In UAT I have one table is users and Preprod I have 1 table is admins. I have written code in codeigniter modal below. I want to access UAT server ...
0
votes
0
answers
26
views
how to select all campaigns except ( already liked ) [duplicate]
how to select all campaigns except ( already liked ) using codeigniter v3
Tables :
campaigns (id, user_id, post_id, post_url, quantity, status)
liked_posts (id, user_id, post_id, status)
the ...
0
votes
0
answers
46
views
PHP CodeIGniter 3
Could you please tell me what is the purpose of GetAll(){}; method.
And, why when I change the name of method gives me an Error? Is it a type of reserved method, or how?
I know that the method is ...
0
votes
1
answer
36
views
Duplicated foreach in CI3
so I'm trying to use foreach to shows data but it duplicates the things inside the foreach. Here's the code
<!-- Begin Page Content -->
<div class="container-fluid">
<?= $...
0
votes
1
answer
37
views
Unable to find callback validation rule codeigniter3
I am trying to validating recaptcha in codeigniter 3 callback validation. Debug output is -
Unable to find callback validation rule: validate_captcha
Seacrching on the internet ended up with this ...
0
votes
1
answer
68
views
How to use CodeIgniter with FROM ( .... ) AS
My query is
$this->db->query("
SELECT table_A.*
FROM (
SELECT MIN(table_A.table_A_id) AS table_A_id
FROM (
SELECT table_A.table_b_id
FROM ...
1
vote
1
answer
73
views
do_upload() function removes the '&' character from file name in Codeigniter 3
I'm using do_upload() function in CI3, to rename & upload a file. The file name contains '&' character. When i upload a file and save it, the '&' character from file name is getting remove....
0
votes
2
answers
113
views
BUG Data not inserted to database in codeigniter 3 without error
help me... I want to create a laundry program and i use codeigniter 3. when I programmed on the user side, I experienced the problem of data not inserted to database. even though the database name, ...
0
votes
0
answers
68
views
Cannot access offset of type string on string in CodeIgniter
I have this issue whereby I'm trying to confirm the transaction of users via a webhook, I don't know how to resolve this issue, below is my code
$data = @file_get_contents("php://input");
$...
-1
votes
1
answer
256
views
Unable to connect to MongoDB: Failed to parse MongoDB URI:
its connect to mongodb localhost but not connect to mongodb atlas using URI
Unable to connect to MongoDB: Failed to parse MongoDB URI: 'mongodb://mongodb+srv://cluster0.mdoxuh6.mongodb.net/:27017/...