1,467,986 questions
1
vote
0
answers
4
views
What am I doing wrong when authenticating user with codeigniter 3?
I'm creating a login page with Codeigniter 3. I've already searched some forums and even tried to solve it with chatgpt, but I couldn't identify the error. The user simply doesn't log in and no error ...
0
votes
0
answers
12
views
eureu phpmail Failed to connect to server: Connection refused (111)
hello I know error that I cannot resolve this eueu
2024-12-14 17:48:11 SMTP ERROR: Failed to connect to server: Connection refused (111) 2024-12-14 17:48:11 SMTP Error: Could not connect to SMTP host. ...
0
votes
1
answer
19
views
WooCommerce HPOS: Get the Order Item Object from the Item ID
I am trying to get the order Item Object from the Item ID when High Performance Order Storage is enabled. Neither the order object nor the item object is known. The order ID is not known either. Only ...
-3
votes
0
answers
29
views
crypto.com check user balance
Not sure if im being a bit silly with this or if the API just doesnt work.
I am using crypto.com exchange API to trade crypto and it works fine for buying and selling. But when I use the endpoint to ...
1
vote
0
answers
8
views
model the inverse of hasManyThrough relationship using a pivot model
I have the following models/tables:
branch:
id - integer
department:
id - integer
teacher:
id - integer
branch_department_id - integer
branch_department:
id - integer
...
-3
votes
0
answers
28
views
Why are the checkbox ticks not visible in the JPG output, even though they are checked in the PDF? [closed]
Why are the checkbox ticks not visible in the JPG output, even though they are checked in the PDF? Is there a way to make sure the ticks are rendered properly when converting the PDF to JPG?
I’ve ...
0
votes
0
answers
37
views
PHP8.3 got stuck until previous request was finished
I've nginx + php-fpm(PHP8.3) installed on my Windows PC's Docker Container(based on Ubuntu 24.04 amd64 image). and I have the following sample script test.php:
<?php
//exit(0);
sleep(60);
First, ...
-4
votes
0
answers
42
views
4th answer of account recovery security questions always coming back wrong [closed]
I have made a login page and at the end of signing up you have to fill out a few questions for if you ever forget your password. 3 of the questions are already done and you only need to choose a ...
0
votes
0
answers
34
views
PHP when running a "foreach", find out which item on the list was a match [duplicate]
When this code is run, how can I echo matched variable from $spam_keywords?
Once a variable is matched/found I would like echo it or save it to another veriable.
$uri = $_SERVER['REQUEST_URI'];
$...
-3
votes
0
answers
19
views
File download PHP from MySQL database [duplicate]
if (isset($_GET['file_id'])) {
$id = $_GET['file_id'];
// fetch file to download from database
$sql = "SELECT * FROM files WHERE id=$id";
$result = mysqli_query($conn, $sql);...
0
votes
0
answers
25
views
Flickering unstyled content code need for elementor
I need this code to be usable with all my template instead of one specific template of my website.
I am using Elementor and it suggested following code:
add_action('wp_enqueue_scripts', function() {
...
0
votes
0
answers
28
views
.env is being hashed? [duplicate]
I am resolving .env like this.
$dotenv = new Dotenv();
$dotenv->load(__DIR__ . '/../.env');
$_ENV seems to be loaded as expcted, when I dumping it. However getenv('') just returns false for any of ...
1
vote
0
answers
10
views
The render() method takes a long time to execute Yii2
I just get a form with several fields. if in the controller method before return $this->render() I do echo 'Success!';exit;, then the page loads quickly. and when $this->render() is called, the ...
1
vote
1
answer
21
views
Laravel's ORM query using with() not working with paginate()
I am grabbing the related meetings with each Department, hence I would like to have a pagination for each meetings list. I currently have this in my Inertia Middleware to have it available in my ...
1
vote
0
answers
16
views
Multiple API Requests with ReactPHP
My Goals
I am quite new to ReactPHP, async programming and software dev at all. I am currently working on an API that I want to make async. The API has to do massive amounts of API requests to ...
0
votes
0
answers
55
views
How to Display Related Custom Post Type on WooCommerce Single Product Page Using Custom Fields?
someone please help me :)
So, here’s the situation: I’m using WordPress, and within it, there’s a query I’ve created using the Code Snippet plugin.
Plugins used:
Product: WooCommerce
Custom fields &...
-1
votes
1
answer
27
views
How can I emerge two tables in SQL Database Using IF Statement [duplicate]
In my SQL Database, I have a table "TRANSFER" and columns with "amount_cr" and "amount_db." In my PHP Code, I have a PHP file that sends a report in the figure to $...
0
votes
0
answers
20
views
Include fully qualified url within PHP code without using an ESI tag [duplicate]
Would like to call a fully qualified URL such as https://www.example.org/abc.html and include that HTML code snippet within a PHP page.
The reason for this is that the entire PHP page is dynamic but ...
0
votes
0
answers
50
views
Sending video notes to multiple users using Telegram Bot API results in 404 error for subsequent requests
I'm trying to send a video note to multiple Telegram users using the Telegram Bot API, but I'm encountering an issue where the first request succeeds and all subsequent requests return a 404 "Not ...
0
votes
0
answers
17
views
Blockcypher Saying Transaction Successful Yet Doesn't Show Up On Blockchain Explorer
Greetings everyone I am developing an e-commerce site that allows bitcoin transactions. I am trying to allow buyers to purchase products on the site using bitcoin. I have setup a wallet system that ...
1
vote
1
answer
20
views
Cors issue local xampp server and react frontend
I have a local Xampp running on http://localhost (port 80)
This server provides an api in folder kiosk2/api (root file api.php)
The .htaccess file in this folder is
Header set Access-Control-Allow-...
0
votes
1
answer
36
views
How can disable CSRF for some individual pages in Laravel 11
I'm using Laravel 11.3 to receive events from Issabel. When I sending data Via Curl in an Eventhandeler PHP AMI file from Issabel, it shows HTTP Code 419 as server respond. ChatGPT told me some ...
-1
votes
0
answers
32
views
Compile Error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` [closed]
i am using prestashop 8.2 with php 8.1.3
can anyone help to solve the issue below:
'pick_country' => Configuration::get('CEDEASYPARCEL_API_PICKUP_COUNTRY')?Configuration::get('...
0
votes
0
answers
15
views
How to Create a Responsive Property Table with Shortcode Integration: Issues and Solutions [closed]
I need a way to write a code similar to this table and integrate it into a shortcode. Here's a simple example of what I need to achieve. I would appreciate everyone's help in identifying and solving ...
2
votes
1
answer
41
views
Is it possible to disable the automatic UPC checksum check in TCPDF?
I'm using TCPDF to generate a page of retail store bin tags. These tags include a 1D UPC barcode. The system has worked for years, save for one problem: manufacturers and/or distributors occasionally ...
0
votes
0
answers
64
views
Running shell command on Ubuntu via PHP
I have a simple script that has this command in it:
shell_exec("source ~/.bashrc");
The output is:
sh: 1: source: not found
This happens with all commands. For example:
shell_exec("...
0
votes
0
answers
42
views
run script after load more button is clicked
I am using the Smash Balloon custom facebook feed pro plugin on wordpress. I have written a php script the alters the $content on the page with the facebook feed so that it changes the links in the ...
0
votes
0
answers
24
views
WooCommerce Hook woocommerce_before_calculate_totals looses defined constants
I am trying to add an action to recalculate the total cart price with modified price for customers with discounts. The code in located in my themes function.php. The problem is that if I enable ...
0
votes
0
answers
7
views
Magento Custom Module Frontend Request Not Hitting Controller Endpoint (302 Found)
I'm experiencing a persistent issue with my custom Magento 2 module. I have a frontend form integrated into a chat interface on my site. However, when I submit this form via a POST request, it's ...
-1
votes
1
answer
44
views
Laravel customize all exceptions thrown [closed]
Im trying to make a little change in exception log and render in laravel 11.
I want to add an uuid to the errors.500 blade and log it right before the log, but i really dont know how to, laravel docs ...
0
votes
0
answers
41
views
Why does my grouped array sometimes generate incorrect data for specific fields inside Foreach?
I have a Laravel function that processes an array of delivery items and groups them by DeliveryID to create a structured array of deliveries. Each delivery includes details such as items, subtotal, ...
1
vote
0
answers
25
views
Filament PHP Form: default() not setting the value for specialization_id field in Select component
I’m using Filament PHP to build a form for managing users in my application. The specialization_id field in the form is a Select component, which depends on the user’s role (doctor). If the user’s ...
0
votes
1
answer
19
views
How to test gnupg integration in my code?
I received a working PHP class that wraps gnupg. We handle gpg encryption and decryption with it. Now I have to test it with PHPUnit.
Nature of gpg is that it never returns two same results.
How ...
-3
votes
0
answers
56
views
Button "OPEN" WebApp next to the bot in Telegram chats
How to create an "OPEN" button using PHP, next to the bot in the Telegram chat list?
Or what is the function called?
if ($param === 'webapp') {
$replyMarkup = [
'inline_keyboard' ...
2
votes
1
answer
40
views
Call to undefined method Dompdf\\FrameDecorator\\Page::add_line()
I am trying to send an email with 2 pdf attachments but when in the controller I call getRejectedReport method it return me error says that Call to undefined method Dompdf\FrameDecorator\Page::...
0
votes
0
answers
38
views
How to get user data with PHP8 Google client + Javascript auth code
I have a working Vue application which log user in via Google Javascript SDK. This get a token/code (I really dont how they call it). Then I send this token to the PHP application which uses Google ...
0
votes
0
answers
22
views
composer vendor override - Cannot declare class because the name is already in use
I needed to modify some vendor files, which I did the following way (which was fine in the past):
I copy the vendor file to a vendor-override directory outside the vendor directory and modify it to my ...
0
votes
1
answer
41
views
Laravel Eloquent Model::save does not save objects in db, no error message
I work on a Laravel 9.0 project that uses Eloquent models to represent objects and store them in the DB. Most of the time, Eloquent works as expected.
However when I need to load a list of objects ...
1
vote
0
answers
28
views
PHP SQLSRV STORED PROC - Hanging Browser
I have a stored procedure that I would like to run from a simple button click.
The stored procedure takes 5-10 mins to run direct from SMSS.
I'm not looking to return any results to the browser, so I ...
0
votes
0
answers
48
views
How to Implement Authentication with the NIMLAB Crypto Exchange API in PHP?
I'm trying to implement authentication to connect with the NIMLAB crypto exchange, following their official documentation: NIMLAB API Docs.
However, I keep running into issues with the authentication ...
0
votes
0
answers
26
views
DQL query : LOWER function suddenly stopped working [duplicate]
Recently updated a backend service from a Symfony 5.4 / php 7 to a Symfony 6.4 / php 8.3 config.
The database is using Postgresql 14.
Since the doctrine queries I have that include LOWER stopped ...
-2
votes
0
answers
21
views
Create tags as categories in WooCommerceand auto assign to published products [closed]
I have 200 products already published with tags already present, for eg. one product has tag Loreal, shampoo and dandruff shampoo. I want these tags to act as separate categories. This product should ...
-1
votes
0
answers
50
views
docker mit apache + phpfpm exit code1 [closed]
I have a website that I would like to host in a php-fpm environment and Apache.
The host page.conf looks like this.
<VirtualHost *:443>
#LoadModule http2_module modules/mod_http2.so
...
0
votes
0
answers
19
views
Docker image not showing laravel logs to stderr stdout in docker logs
I'm using the nixpacks template from coolify (https://coolify.io/docs/applications/laravel/) to build a docker image and run it. Everything works fine, except I do not see the error logs in the ...
0
votes
1
answer
33
views
How to integrate PayPal Advanced Checkout in Laravel
I want to integrate the form with PayPal. This means that when someone fills out the form, chooses a payment method and fills in the payment details, their card balance will be reduced. I don't want ...
0
votes
0
answers
30
views
SQLSTATE[42000]: Syntax error or access violation: 1148 Unable to parse: use `DB_Name`; [closed]
I'm encountering an error while trying to connect to a MariaDB cluster using a load balancer IP in my Laravel application. The error message is:
SQLSTATE[42000]: Syntax error or access violation: 1148 ...
-2
votes
2
answers
82
views
How to avoid record duplication for an item?
The error, I am observing, I try to put the old value i.e already stored. However, the case is, the old value get plucked with its own id, eachtime.
SQLSTATE[23000]: Integrity constraint violation: ...
-3
votes
0
answers
26
views
Force specific WooCommerce product OR product variation to be sold in separate order
I have this code, below, care of Force specific WooCommerce product to be sold in separate order and User 7uc1f3r.
I wish to add two other products to this code. The first product is simple, the other ...
-1
votes
1
answer
51
views
PHP PDO fetchObject returns duplicated properties, half of them null [closed]
I'm trying to learn PHP and MySQL. I've got a database and some retrieval happening, but when I used fetchObject() I get 2 instances returned. First tried:
class Food {
// Properties
public $id;
...
4
votes
1
answer
176
views
Login with Linkedin - not redirecting back to my app
Context:
I'm developing a "login with LinkedIn" feature on Laravel 11 using socialite. This requires 2 endpoints:
One that redirects the user to a LinkedIn login page
One that LinkedIn ...