327 questions
0
votes
1
answer
46
views
Using Jquery how do I find an element by id using a regular expression
I'm using PHP8.1 and JQuery.
I have a script with several links that each have an id that is a digit only. i.e:
<a href="#" id="<?= $id ?>"><?= $student_name ?>&...
4
votes
1
answer
112
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 ...
1
vote
1
answer
148
views
Slim Framework 4 with php 8.1 and IIS Server comunication
I have a problem with the operation of the website.
I installed slim framework v.4 I have php v.8.1 and the server IIS
https://www.slimframework.com/docs/v4/
I used this code to try if the project ...
0
votes
0
answers
44
views
Getting Permission denied at simplesaml/module.php/saml/sp/saml2-acs.php/gatewayidp
In simplesaml after login authentication getting Permission denied issue.
Any idea ?
0
votes
0
answers
65
views
PHP Agent Installer Task Execution
Experiencing an issue during the installation of the New Relic PHP Agent. The installation fails during the task send_transaction with the following error:
{"err":"task: Failed to run ...
1
vote
1
answer
94
views
How to catch error and continue after a mysql error
I have the following code:
$squery = "SELECT TABLE_SCHEMA,TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE '%configuration_lang'";
$sres = dbquery($squery);
while ($srow = ...
0
votes
0
answers
66
views
Curl is returning response but Laravel Http client is not returnig respose
-> The below code is based on php Curl.
$curl = curl_init();
// API Endpoint
$url = 'https://api.bybit.com/fht/compliance/tax/v3/private/registertime';
curl_setopt_array($curl, array(
CURLOPT_URL =...
0
votes
1
answer
690
views
BaconQrCode can't run in my laravel 10 and latest vesion of php
I'm working on a Laravel project that uses the baconQrCode library to generate QR codes, and I'm encountering the error Class 'BaconQrCode\Renderer\Image\Png' not found when I call my generateUser ...
0
votes
1
answer
116
views
Debug logs not coming when updating Symfony from v2.8 to v6.4
Debug logs not coming when updating Symfony from v2.8 to v6.4 with PHP8 upgrade.
We have updated our application from Symfony v2.8 to v6.4 along with upgrade of PHP from v7.4 to v8.1. We have used the ...
0
votes
1
answer
122
views
php artisan test on laravel 8 raises ERROR: Command "test" is not defined. Did you mean one of these?
Laravel version: 8
php version: 8.1
When I run php artisan test, I get Command "tests" is not defined.
I added nunomaduro/collision to my dependencies, and I get the error:
NunoMaduro\...
0
votes
0
answers
23
views
Unable to open a connection with phporientdb
I am working on a demigratio sydmfony project towards version 5.4, and I have not been able to connect to my orientdb database. In this project we use ostico/orientdb, here is the error message:
An ...
1
vote
2
answers
327
views
How to properly create form with enum form type, and pass to twig template?
I'm trying to create a edit form for user and want to list current user roles in form and
also want to make choice from all roles from enum Roles.
There is a example of my code.
Current error is "...
1
vote
1
answer
90
views
Trying to access array offset on value of type bool - PHP 8.1 - Wordpress - Mulivendorx plugin
I get this error when this code is run as a Wordpress code snippet using WP Code plugin. I'm sure it has to do with the code provided by the plugin developer being out of date, not in-line with ...
0
votes
1
answer
105
views
Format number to decimal in php
I am sending data by api with json response where it has amount filed.
it is required that amount should be decimal with 2 zeros after the point like this 400.00 and it should not be a string.
I am ...
0
votes
0
answers
77
views
Issue with COM Class Not Found in PHP 8.1 on XAMPP (Windows)
I'm encountering an error while trying to use the COM class in PHP 8.1 on XAMPP (Windows). The error message states: "Fatal error: Uncaught Error: Class 'COM' not found".
I've checked my php....