Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
43 views

I'm using PHP8.1 and Foundation 6.8.1. The code is fetching image names from a database and displaying them in a grid layout: four images in each row, as many rows as is needed. I was doing this all ...
John Cowan's user avatar
  • 1,794
1 vote
2 answers
71 views

I'm using PHP8.1 and HTML. I have a form with checkboxes, which are fed dynamically from a MySQL database table. When I uncheck a checkbox and submit the form, the unchecked checkbox is still seen in ...
John Cowan's user avatar
  • 1,794
4 votes
1 answer
133 views

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 ...
Dejan Dozet's user avatar
  • 1,077
1 vote
1 answer
184 views

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 ...
Piotr W's user avatar
  • 13
1 vote
1 answer
110 views

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 = ...
user2587656's user avatar
0 votes
0 answers
70 views

-> 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 =...
Nileshkumar's user avatar
0 votes
1 answer
821 views

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 ...
Jay marlou Talao's user avatar
0 votes
1 answer
147 views

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 ...
RDB's user avatar
  • 109
0 votes
1 answer
142 views

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\...
Rowlando13's user avatar
0 votes
0 answers
27 views

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 ...
sof's user avatar
  • 1
1 vote
2 answers
378 views

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 "...
Madji's user avatar
  • 57
1 vote
1 answer
108 views

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 ...
StevieK's user avatar
  • 31
0 votes
1 answer
109 views

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 ...
Sahak's user avatar
  • 3
0 votes
0 answers
90 views

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....
Bhowmik Sanad's user avatar
0 votes
1 answer
401 views

I am a beginner in programming and I am using CodeIgniter v4.5 to create a user management system. I cannot redirect users who try to access my app dashboard without logging in to the login form. I ...
Samgione's user avatar
0 votes
2 answers
407 views

<?php declare(strict_types=1); class Example { public readonly array $setOne; public readonly array $setTwo; public function __construct() { // Populate $setOne and $...
Tyler V.'s user avatar
  • 2,591
1 vote
0 answers
34 views

Environment: Ubuntu 20.04 PHP 8.1.28 MySQL 5.7.12 Newrelic 10.19.0.9 (I have found issues with newrelic that seemed promising, but turning off newrelic didn't help). Reference: https://github.com/...
Battousai's user avatar
  • 523
0 votes
0 answers
109 views

PHP on command line shows E_DEPRECATED even when error_reporting() has been set to only report E_ERROR. I have this dummy code: $prev_level = error_reporting(E_ERROR); echo $prev_level."\n"; ...
Cat's user avatar
  • 406
0 votes
0 answers
126 views

I am trying to set up and existing CraftCMS 3 installation on a Ubuntu 22.04 machine with PHP8.1. The deprecation errors I can fix, no problem. DB imported, it's accessible, no biggie. All pages load ...
Robin K's user avatar
  • 447
0 votes
2 answers
464 views

Below are the comments given by Coverity scan. Here there is a chance that $data become undefined, but the code "$data ?? []" will solve that issue. If $data is null output of this code will ...
xman's user avatar
  • 5
0 votes
1 answer
313 views

I want to add php extension for memcached. I downloaded dll (8.1 Thread Safe (TS) x64) from https://pecl.php.net/package/memcached/3.2.0RC2/windows. Put the php_memcached.dll file in C:\wamp64\bin\php\...
Deepu Sasidharan's user avatar
0 votes
1 answer
146 views

PHP 8.1. I declared a method with this signature: public static function if(mixed $condition, mixed $subject = null, \Closure $callback) And called it with this call: CLASS::if(condition: is_numeric(....
Jay Bienvenu's user avatar
  • 3,435
1 vote
0 answers
355 views

Everytime I reload the page, if have made changes in my code, I will get : Error: Maximum execution time of 30 seconds exceeded. A directory named Container... will appear in the path var/cache/dev . ...
Bahamut0's user avatar
1 vote
0 answers
111 views

I get the following errors in the theme functions file on a website with Wordpress installed. This error appeared when I upgraded to PHP 8.1.26. 2 Error Log: [proxy_fcgi:error] AH01071: Got error '...
fast's user avatar
  • 11
1 vote
1 answer
210 views

I downloaded and installed Oracle InstantClient from https://www.oracle.com/database/technologies/instant-client/macos-intel-x86-downloads.html, and installed it via the Instructions for OS X Monterey....
dbcn's user avatar
  • 258
1 vote
3 answers
672 views

I have a problem with the construction of an array which produces this error in PHP 8.1: Warning: Trying to access array offset on value of type bool in C:\xampp\htdocs\sito3\xlsx.php on line 250 I ...
ibookingelba ARGONAUTIVACANZE's user avatar
0 votes
0 answers
321 views

Upgraded to latest version of Magento 2.4.4-p6 and now GD2 will not resize my images [2023-11-09T00:29:45.553851+00:00] main.CRITICAL: Exception: Deprecated Functionality: Implicit conversion from ...
aidin's user avatar
  • 111
0 votes
1 answer
62 views

My actual value is: 0.990641327804487 but while doing php arithmetic operation it convert this number into 0.99064132780449 I have tried number_format function, if i convert it into number_format it ...
Arnab Sheikh's user avatar
0 votes
1 answer
657 views

I recently updated PHP to version 8.1 on one of my systems. I have also updated Composer version 2.6.5 2023-10-06 10:11:52, using 'composer update' command (see output:) > composer update Loading ...
Dennis 's user avatar
  • 1,325
0 votes
2 answers
605 views

I have 2 domains as D1 "abc.com" and D2 "def.com". I have configured D1 as following sever block on Nginx. server { listen 80; server_name *.abc.com,abc.com; root /var/...
sanket gawde's user avatar
0 votes
0 answers
882 views

I have a website that receives a lot of traffic load, and when php is not able to handle all requests the web starts to slow down, even at certain times causes an error 502 nginx, I have this setting ...
CCG's user avatar
  • 1
0 votes
2 answers
109 views

I'm currently develop a web application with Laravel. My database engine is a Microsoft SQL Server. For some data I preferred to generate an uuid. When I use Windows to run my Laravel app, the uuid ...
C. MARTIN's user avatar
0 votes
0 answers
60 views

I recently updated the php version on my family tree website from 7.4 to 8.1 and also enabled SSL Certificate to get rid of the "this website is not secure" message. Now my page generates an ...
Lee Worbey's user avatar
0 votes
1 answer
77 views

Example: $date = new DateTime('2023-09-08 06:00:00.0', new DateTimeZone('UTC')); // USER's timezone echo $date->format('Y-m-d H:i:s'); $formatter = new IntlDateFormatter( 'en', ...
Dev devovs's user avatar
0 votes
1 answer
637 views

I am using laravel-dompdf on my system to output pdfs. I recently updated php and laravel. However, some of the pdf's are garbled. Font is defined by font-face in css. The font-face is defined in ...
nanii's user avatar
  • 1
0 votes
1 answer
192 views

I'm trying to parse a csv file. But when trying to parse the following line, I'm facing an issue with an escaped comma. <?php $str = "19018216307,Public,\,k]'=system1-system2,20230914143505.5,...
Nikhil Mohan's user avatar
-2 votes
2 answers
739 views

I was using below formula in PHP. It was working fine till PHP 7.4. Now I have upgraded to PHP 8.1 and it's giving error. <?php echo ((float)13.5 + intdiv((float)13.5, (int)10) * (float)2.5 / (...
m2dev's user avatar
  • 11
-1 votes
1 answer
89 views

I am developing a project with Symfony 6.1 on Windows 11 PC. The project is in a docker container. The problem happens on any execution which requires user input such as: php bin/console make:entity ...
Bahamut0's user avatar
0 votes
0 answers
37 views

Giving error while this code applied Error: Fatal error: Uncaught Error: Class "B" not found in D:\laragon\www\test2\collect.php:6 Stack trace: #0 {main} thrown in D:\laragon\www\test2\...
Developer Unified Infotech's user avatar
1 vote
1 answer
469 views

What are the ways to get the time zone given the city code in php8.1 with Symfony 5.4?
Dev devovs's user avatar
5 votes
1 answer
7k views

When I want to execute a php file it's displayed as text in my browser. I tried sudo a2enmod php8.1 but it shows an error in return that ERROR: Module php8.1 does not exist! Show I tried installing ...
Ruchita Sheth's user avatar
0 votes
1 answer
510 views

I'm writing a feature test and noticed that the session ID value changes after every request. For instance, each dumped value will be different: dump(session()->getId()); $response = $this->get(...
eComEvo's user avatar
  • 13k
0 votes
1 answer
81 views

I need a function that can set its deepest value on an instance, whether it is an object or an array. For example, I have a function like this that I wrote and played with, but the setValue function ...
UKRman's user avatar
  • 517
0 votes
1 answer
1k views

I have been running Alpine Linux image version 3.15 with PHP 8.0 with openssl 1.1.x version on my server. Using this version I have encrypted some data using openssl_pkcs7_encrypt() function, stored ...
mbuster's user avatar
  • 170
0 votes
0 answers
786 views

I have a cURL-based script for sending push notifications to iOS. While it works perfectly on my local machine, I'm encountering issues when running it on an AWS EC2 instance. The instance is running ...
Esmatullah Arifi's user avatar
0 votes
1 answer
568 views

I get this error: Call to undefined function apache_getenv() I see suggestions to just switch to getenv(), but I don't see why I should have to since the manual implies it should be available for PHP ...
I'm Root James's user avatar
0 votes
0 answers
156 views

In my case, I have installed Laravel 10 in UBUNTU, after installation, I created front and admin routes, but there is a problem with routes, the front route is working, but the admin route is not ...
James Martin's user avatar
1 vote
0 answers
78 views

I am using XAMPP with 3 projects in the htdocs folder. suddenly one of the Laravel projects started reading the .env values of another project. After I restarted XAMPP it was fixed. Each project is ...
pileup's user avatar
  • 3,520
0 votes
1 answer
212 views

Im getting admin interface error after i migrated successfully pimcore 10.6, but admin interface not working. when i printing echo its printing till render line but getting this error An exception has ...
Thejaswini's user avatar
2 votes
1 answer
2k views

I get this message immediately after reboot trying to run a php script: # sudo -u apache php updater.phar Mon Jul 31 17:59:24 2023 (2241): Fatal Error Insufficient shared memory! It is a Nextcloud ...
Clodoaldo Pinto's user avatar

1
2 3 4 5
7