505 questions
0
votes
0
answers
41
views
Laravel transactional locks in sync job queues
I've got a Laravel-based API that runs an API, which in turn translates incoming requests to jobs for async. processing. When, however, I have a sync. processing flow, I make use of 'sync' queue that ...
0
votes
1
answer
65
views
Different responses when filtering models and collections
I'm sure there is an obvious explanation here, but I'm getting weirdly different responses when filtering collections.
$c=Media::all()->collect();
// first set of commands
$...
0
votes
0
answers
67
views
Google Sheets API - Unable to style BOTTOM_AXIS (text color and font size) after updating chart range
I'm working with the Google Sheets API to update a chart's data range and axis styling. The data range update works fine, but changes to the BOTTOM_AXIS text style (e.g., setting font size to 50 and ...
0
votes
0
answers
74
views
PHP scripts no more accessing SSL
On my Windows 10 machine, I run some PHP scripts that call API functions on a game, Torn. Torn allows and encourages the call of such API.
Since a few days, all my command line scripts stopped working ...
0
votes
1
answer
147
views
TYPO3V11 - fileReference: how to get files to create a ZIP
I’m relatively new to TYPO3 and currently managing a website built on this CMS. Since I have limited experience, I would greatly appreciate any assistance or guidance you can provide.
Thank you in ...
0
votes
0
answers
101
views
How to change library lookup paths on Debian: Unable to load dynamic library 'gd.so'
I have 2 server A, B.
Server A works properly, server B doesn't.
On Server B, when I perform the command
php7.4 -d display_startup_errors=on -d display_errors=on
I get the following error:
Warning: ...
1
vote
0
answers
101
views
Fatal Error: Uncaught Error: Call to undefined function _get_custom_object_labels() in taxonomy.php
I am encountering a fatal error on my WordPress website, which is hosted on Microsoft Windows Azure. The error occurs when I try to access the backend of my WordPress site. Here are the details:
**...
-2
votes
1
answer
62
views
Laravel 8 Unparenthesized `a ? b : c ?: d` is deprecated
I'm getting an error in Laravel backend
The line that is giving error:
<?php echo Form::select('percent', \VanguardLTE\Shop::$values['percent_labels'], $edit ? $shop->percent : old('percent')?:'...
0
votes
1
answer
53
views
Can I download a static asset with a given url in PHP
I'm debugging a 3rd party open source application, and there is a method that compress pdf files in a zip file and then stores it in the static folder. Then an email is sent with an url that is made ...
1
vote
2
answers
230
views
Does usort() behave differently in php 8.2.0 vs php 7.4.33?
I have an associate array like this:
$all_works = [
["title"=>"A Children’s Story", "year"=>"2024"],
["title"=>"Occurred during ...
2
votes
1
answer
707
views
PHPMailer Google Oauth2 sending email issue
im using php 7.4 with the php libs
{
"require": {
"league/oauth2-google": "4.0.0",
"phpmailer/phpmailer": "6.1.4"
}
}
here is my ...
0
votes
0
answers
108
views
Update mysql 5.7 for 8.0 in phalcon 4.1 and php 7.4
i have a problem in update mysql version of my application, 8.0 version causes a 300% more loewst process in database compare of 5.7 version.
Any sugestions or cases for improve performance in this ...
0
votes
0
answers
118
views
Adding new reference to any item in array affects behaviour of the array
I've seen many questions about this (one of them here)
$a = array('a', 'b', 'c', 'd');
foreach ($a as &$v) { }
foreach ($a as $v) { }
print_r($a);
and I get the answers, you shouldn't be ...
1
vote
0
answers
117
views
Unable to Connect to Postgres DB through PHP(7.4) in Windows server
I host my PHP page in Windows IIS, Uncommented the pgsql extensions in php.ini file, restarted the services/machine. stil getting the below error in my php page,
Connection failed. Error message: ...
0
votes
0
answers
18
views
Can't change value in $_SERVER
I'm running a PHP app using php-fpm on Docker Windows (Hyper-V).
Inside container I set
export MY_VAR=new_value
and can confirm it's been set with printenv
But on the very first line of my app I get ...
-2
votes
1
answer
1k
views
Is it Possible to Make Composer 2 work with PHP 7.4.33
I'm trying to get my PHP website app setup to use Cloudinary for image file storage.
On my local machine, I am running PHP Version 8.1.2. My website is on a shared-hosting site and is using PHP ...
0
votes
0
answers
55
views
Auth0- Verify token generated from react native
I’m trying to validate the access token I receive from my react native app in the backend using the Auth0 PHP package. But unable to proceed getting internal server error.
`use Auth0\SDK\Configuration\...
0
votes
0
answers
2k
views
How can i downgrade PHP version from 8.1 to 7.4 in AlmaLinux 8?
current PHP is 8.1, but i want to change it to 7.4.
following the step as : https://wiki.crowncloud.net/?How_to_Install_PHP_7_x_in_AlmaLinux_8#How+to+Install+PHP+7+x+in+AlmaLinux+8
while command: ''...
2
votes
0
answers
913
views
ssh2_connect(): error starting up ssh connection(-5): unable to exchange encryption keys + centos 7 + php7.4
While connect my destination server by
ssh2_connect("<<server-ip>>", 22)
then received error:
ssh2_connect(): error starting up ssh connection(-5): unable to exchange ...
18
votes
4
answers
16k
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
201
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
129
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 ...
1
vote
1
answer
280
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 Exception("error&...
1
vote
2
answers
2k
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
...
-1
votes
1
answer
260
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
134
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
1
answer
2k
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
433
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
260
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
120
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
...
2
votes
1
answer
12k
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
1k
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
518
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
...
1
vote
1
answer
702
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
184
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
44
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
199
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
181
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
971
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
713
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 ...
1
vote
0
answers
283
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
41
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 (...
1
vote
1
answer
1k
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
1
answer
5k
views
Error: Typed property must not be accessed before initialization
When I try to use broadcast (...), in the table failed_jobs I get the error:
Error: Typed property App\Events\SendMessageEvent:: $ message must not be accessed before initialization in app/Events/...
0
votes
1
answer
102
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
153
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
403
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
745
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
1k
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
185
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 ...