Questions tagged [php-7.4]
For questions specific to the usage and features of version 7.4 of PHP. When using this tag also include the more generic [php] tag.
508
questions
-1
votes
0
answers
31
views
Running PHP 7.4 in Docker - Issue with 'php artisan serve' command [duplicate]
I successfully built a Docker image for an older PHP 7.4 project. However, upon attempting to run the project in a PHP 8.1 environment, I encountered an issue where the application displays an empty ...
0
votes
0
answers
10
views
What causes the following error: DB Error: extension not found?
I received a project which I'd like to bring alive.
I'd like to highlight that I've no experience with php, the last time I wrote any php was 10 years ago.
My system is debian 11.5 with apache2(.4) ...
6
votes
3
answers
3k
views
Trouble with homebrew and libsodium
I have a few versions of php on my system(macOS):
7.4, 8.0, 8.1 and 8.2
I need to switch between these regularly for different projects.
I've run into a problem with laravel where when i try to run ...
0
votes
2
answers
56
views
Laravel Model Undefined Relationship Issue Only in $with Variable
I have encountered a peculiar issue in my Laravel 8.47.0 project that I have not come across before. The problem arises when I include the 'events' relationship in the $with variable of the Order ...
0
votes
0
answers
27
views
phpmyadmin page is not clickable after login
After I am logged in to phpmyadmin the page is fully loading. However when I click on any element like for example any of my databases nothing happens.
When I try to click on it by holding ctrl to ...
0
votes
0
answers
14
views
Did not get sever response header when mpm_event and php-fpm is enabled
When I used mpm_prefork module in Apache server then Apache_response_headers work properly and give response header but when I enabled mpm_event and PHP-fpm then this function not work so is there any ...
0
votes
0
answers
66
views
PHP8 returning ZipArchive getStream from a function makes the containing zip archive to be closed
private function getFilePointer($file)
{
$pathInfo = pathinfo($file);
$zip = new ZipArchive();
if (($res = $zip->open($file)) !== true) {
throw new ...
1
vote
3
answers
179
views
Install SOAP extension to PHP 7.4
I try install SOAP extension to Linux Mint 19 Tara. I need version for PHP7.4, which is already working.
sudo apt install php7.4-soap
Result:
Loading package lists… Done
A dependency tree is created
...
0
votes
1
answer
47
views
Laravel 8: Fpdi is depreciated when upgraded to 7.4
We upgraded our laravel from version < 8 to version 8 and also upgraded the php from 7.1 to php 7.4
Now there are some functionalities that got depreciated such as maatwebsite and also the Fpdi. We ...
0
votes
0
answers
33
views
Odoo v11 process => stock.immediate.transfer
I'm trying to process the reserved quantities of an order by API.
The same thing that I do by clicking here:
then here
but now working with API.
The reason why I'm trying with stock.immediate....
0
votes
0
answers
32
views
imap_open() function getting stuck on unreachable ip address using php-7.4
Below is my code and i m using PHP-7.4.33
$mbox = imap_open ("{10.10.10.1:995/imap/ssl/novalidate-cert}", "user_id", "password",0,0);
print_r($mbox, true)
now wen hit on ...
0
votes
0
answers
10
views
Unable To Load Helper Functions in (Laravel7) After Successful Deployment
Api Framework : Laravel7
Server : AWS ( OD ) Instance
Deployment Tool : Jenkins
We do deploy code on AWS OD instances, but sometime after clear app cache also clear compiled files. in some case ...
0
votes
1
answer
219
views
PHP Parse error: syntax error, unexpected 'fn' (T_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM) on laminas-diactoros dependency class on Laravel
Recenty I was updating some code on my Laravel app and I managed to get it working perfectly on local, no error messages whatsoever, so I decided to upload it to the test server.
When I did, this ...
0
votes
1
answer
160
views
Does PHP8 Reflection more bad performance versus PHP7 without reflection
I have re write my code from old php 7.4 scripts. And i see my code be more slower than old version
My old models export data from method toArray
And his representation was like that
public function ...
0
votes
1
answer
82
views
Unsupported driver [mongodb] : Laravel 7 & PHP 7.4
I am using Laravel 7 with MongoDB. I already installed mongo using
https://www.php.net/manual/en/mongodb.installation.pecl.php
The package used is:
https://github.com/jenssegers/laravel-mongodb
This ...
0
votes
0
answers
110
views
JavaScript requires error on WordPress 6.3
I'm a WordPress beginner. My WordPress version is 6.3. Due to some reason I had to change the website URL, after that the website is not running smoothly. Elementor is not loading at all when I tried ...
1
vote
0
answers
62
views
Notice: Trying to access array offset on value of type null in /var/www/html/chamilo/main/inc/lib/api.lib.php on line 702
I am now to linux and I need to install chamilo-lms. I have installed chamilo using:
cd /tmp && wget https://github.com/chamilo/chamilo-lms/releases/download/v1.11.6/chamilo-1.11.6-php7.zip
...
-1
votes
1
answer
4k
views
Can't install php7.4-dev on Ubuntu 18.04 [duplicate]
Trying to install php7.4-dev extension, but I'm getting
E: Unable to locate package php7.4-dev
E: Couldn't find any package by glob 'php7.4-dev'
E: Couldn't find any package by regex 'php7.4-dev'
...
1
vote
1
answer
324
views
How install PHP 7.4 OpenSSL support in Oracle Linux 9.2
I installed PHP 7.4.5 from source code on an Oracle Linux Server release 9.2.
The developer informed me that OpenSSL needs to be enabled.
When I check the installed PHP info, it shows:
OpenSSL ...
2
votes
0
answers
219
views
Can't install php7.4-bcmath on Ubuntu 18
There is a server on Ubuntu 18. Worth nginx and php 7.4
I need to install php7.4-bcmath
Command: "sudo apt-get install php7.4-bcmath" keeps giving error:
Reading package lists... Done
...
0
votes
0
answers
72
views
After adding social Authentication, the classic login form authentication doesn't work anymore
Last night, I implemented a social authentication with Google in my project. I used the knpuniversity/oauth2-client-bundle.
It worked fine till I tried to login with the classic form.
After submitting ...
1
vote
1
answer
193
views
Failed loading Xdebug PHP 7.4.0
I am trying to use Xdebug for coverage and debugging in PhpStorm. I have followed several tutorials, mainly this one.
I am getting this error when running php -v.
Failed loading C:\php\ext\php_xdebug-...
-1
votes
2
answers
118
views
The require method return int when it is not possible in PHP
I have following code, it saves some php code into a file, then load it, run again, sometimes the require method returns int, why does this happen?
demo.php
<?php
$f = function() use($a){
$...
0
votes
0
answers
301
views
I am ubale to install INTL extension on PHP 7.4 in my ubuntu
My environment:
Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
PHP
PHP Version 7.4.33 (as per phpinfo() )
All I want is install the INTL extension (https://www.php.net/...
0
votes
0
answers
35
views
How can I run a PHP stomp file as a background process?
I have installed Apache ActiveMQ and PECL Stomp, enabling the stomp.so extension on PHP.
I have written a PHP file which connects to a TCP address and successfully consumes messages from the topic, ...
0
votes
0
answers
47
views
Getting error #include <unicode/ubrk.h> ^~~~~~~~~~~~~~~~ 1 error generated. make: *** [php_intl.lo] Error 1 ERROR: `make' failed
I have installed XAMP with PHP Version 7.4 and iterm2 for bash profile.
I'm tying to install php intl extensions using
sudo pecl install intl
It's failing with below error
/private/var/folders/zz/...
0
votes
0
answers
107
views
php version is not identified
As the title, php version is not identified.
Despite googling, it didn't work out.
If you suggest a solution for this problem, I appreciate it.
$ php -v
dyld: Library not loaded: /usr/local/opt/icu4c/...
1
vote
0
answers
413
views
Ubuntu 22.04, php downgrade from 8.1 to 7.4 broke phpmyadmin. Tried everrything so far
I am trying to deploy an old Laravel 5.6 project on AWS and encountered an issue with phpMyAdmin. It was working fine before, but after downgrading to PHP 7.4 to match the requirements for the Laravel ...
-2
votes
1
answer
120
views
can laravel 7 and 9 live on php 8.1 [closed]
I have some applications using laravel 7 with PHP7.4 and now I want to make an application with laravel 9 and it looks like I have to upgrade PHP to version 8.1 (cmiiw), and the problem is that ...
0
votes
0
answers
96
views
PHP File/PDF Streaming and Safari Crashing
From reading around this seems like a Safari bug and/or a common issue with Safari but i've yet to find a solid answer to this. Also, apologies for the long thread.
So i have a simple PHP script (no ...
0
votes
0
answers
15
views
str_ireplace doesn't handle cyrillic text [duplicate]
I know and saw multiple questions asked on stackoverflow, but nobody had a solution and there is a real problem.
I have a chat and a filter to clear stop-words from it. Words can be arabic/russian/...
0
votes
0
answers
36
views
PHP is just getting the first character from string
I have some data in an associative array and when I pass each element of the array to a variable, it only gets the first character of the string.
For example:
array (size=5)
'data' =>
array (...
0
votes
1
answer
426
views
Problem switching between multiple versions of PHP on MacOS Ventura
I'm using MacOS 13.4 on a 2021 MBP.
I need to be able to toggle between versions of PHP to test PHP applications for compatibility across both PHP 7 and 8.
I used brew to install PHP 8.2. Then ...
0
votes
0
answers
19
views
Intermittent empty document response afyter PHP 7.4 upgrade with no errors logged or displayed
After upgrade from PHP 7.0 to 7.4 I noticed an intermittent issue on my Wordpress site. When I open a page initially the server will return an empty response. Reloading the browser will cause the page ...
0
votes
1
answer
49
views
Self-hosted Wordpress and unable to successfully adjust the upload_max_filesize
I copied the latest wordpress onto a Linode ubuntu 20.04 server using cURL and was able to deploy it live with apache2 and custom DNS, but have been unable to upload a PRO plugin due to PHP ...
0
votes
0
answers
42
views
PhP mailscript not working in PhP 8.0 or higher
For my sites I have been using a simple mailing script that gets parameters from a form and sends them to a specified email adress. The problem is that my host is now upgrading to php 8.0 or higher ...
0
votes
0
answers
166
views
php.ini - Install Phalcon not appearing in PHPInfo
I installed my own server for the very first time with the objective to test Phalcon but it doesn't seems to be enabled, or even present:
echo Phalcon\Version::get();
Returns error:
Fatal error: ...
0
votes
1
answer
254
views
[ERROR]Trying to access array offset on value of type null on php 7.4
i'm trying to troubleshoot a staff directory system that's built by someone else. it shows up fine on php5.6 but we were told to move to at least php7.4 by May this year. so i tried running ...
0
votes
1
answer
458
views
Laravel model returns null sometimes evenif the record exist in the database
I have a weird issue. I have a listener runs in queue which is getting a record
Model::find($id);
But some times this is returning null even if the record exits in the database, which fails the ...
0
votes
0
answers
70
views
Webklex php-imap custom flags
I struggle with the mentioned lib and use of custom flags. The IMAP protocol specs states that system flags starts with , keywords do not have any prefix.
There is the class Message with its methods ...
0
votes
0
answers
62
views
PHP : type declaration for class properties failed
I'm using type declaration for class properties (member variables)
class MyClass
{
private int $_myInt=0;
...
}
I got on server#1 :
PHP Parse error: syntax error, unexpected 'int' (T_STRING),...
0
votes
0
answers
33
views
After upgrading to PHP 7.4 Fabrik form pugin stop working on Joomla 3.10
I'm trying to get a PHP plugin working again on Joomla 3.10 that worked before I switched providers.
I also upgraded from PHP 5.4 to PHP 7.4.33. The plugin must associate a photo file with a personal ...
3
votes
1
answer
978
views
Installing Xdebug in docker for PHP 7.4
I'm attempting to setup unit tests and test coverage for a PHP 7.4 project using PHPUnit 9.x. I've been able to get it working locally, but I'm having a difficult time getting it running in a pipeline ...
0
votes
0
answers
30
views
Unhandled Exception ("AphrontSchemaQueryException") lin phabricator
I had tried to install phabricator from repo what my office gave to my local computer.
After followed this step by step, added ssh key public to, then open url http://phabricator.local:8080
...
-1
votes
1
answer
47
views
In Zend Framework should a script be a service or a controller?
The context
I am refactoring an application in ZF2 that uses scripts to synchronize data with web services and APIs.
Currently each script resides in a controller, that is called through cron jobs ...
1
vote
0
answers
144
views
Cell text is not displayed using easytable and fpdf, PHP 7.4
Using the easytable library (https://github.com/fpdf-easytable/fpdf-easytable), the PDF is generated correctly with content containing special characters in the development environment. However, in ...
0
votes
0
answers
44
views
PHP 7.4 and HTML_Quickform 1.3 to 3.2.16?
currently i have to upgrade a programm that is written on PHP 5 to PHP 7.4 to migrate it into the cloud. But in the code is HTML_Quickform 1.3 used and what i have red is that it is a really old ...
0
votes
0
answers
24
views
Template class [] not found convert php5 to php7
$bit = vB_Template::create('imdmstat_latestpost_bit');
all code
$bit = vB_Template::create('imdmstat_latestpost_bit');
$bit->register('latestpost', $latestpost);
$bit->register('...
0
votes
0
answers
62
views
impossible to create symfony entity class as API Platform resource
I am starting a fresh project in symfony 5.4 and php 7.4.33 that need to implement an api, that's why i choose to go with API Platform
The issue appears when i choose to create an entity using the bin/...