Questions tagged [php-7.1]

The successor to PHP 7.0. Use this tag for version-specific issues relating specifically to PHP 7.1.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

PHP container log redirection to docker logs

I am working to create a LEMP stack-based dockerized environment in AWS ECS using docker-compose. My php7.1-fpm and nginx containers are interconnected and working fine as expected. I have redirected ...
BSivakumar's user avatar
2 votes
1 answer
316 views

Validating an RSA PKCS#1v1.5 SHA 256 signature with an RSA 2048 public key

I have a public key stored in the database as a string. The generating library says that it is an RSA 2048 public key. Here is an example of the public key as it is stored: ...
paran's user avatar
  • 79
-1 votes
1 answer
49 views

laravel 5.1 installation issue with php 7.1 , cannot install carbon 2

composer install error on carbon 1 is deprecated SO, how can i run my vagrant with laravel 5.1 with carbon 1 and I have try find from stackoverflow and other site but no helps comes up . every thing ...
iftekharul islam's user avatar
0 votes
2 answers
597 views

Connection could not be established with: php_network_getaddresses: getaddrinfo failed: Name or service not known

Connection could not be established with host p3plvcpnl452615.prod.phx3.secureserver.net :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known I have ...
Sam Mah's user avatar
  • 31
0 votes
1 answer
250 views

phpinfo() changes the status code of nginx response in a weird way

I have a php code that should always end up being "http 500 code" as I have a call to undefined func status_code("OK"); code: <? # phpinfo(); echo 'error_log = ' . ini_get('...
DmitrySemenov's user avatar
0 votes
1 answer
173 views

MAMP ext mailparse is not loading, not sure if installed correctly PHP 7.1.33

i started to work on web application which uses PHP 7.1.33 - which i did set up in MAMP, but I have problem to get extension mailparse - which I tried and probably installed through PECL commands. But ...
Mike's user avatar
  • 13
0 votes
1 answer
897 views

"PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/http.so'" after downgraded PHP from 8.1 to 7.1

We have a requirement that needs to downgrade PHP from 8.1 to 7.1 in our Ubuntu 18 server. sudo update-alternatives --set php /usr/bin/php7.1 After the downgrade, we're seeing PHP Startup error ...
Wylan Osorio's user avatar
  • 1,136
0 votes
0 answers
71 views

Is it possible to install the dependencies you have in composer.json file without you have composer as tool in you machine?

I'm trying to put this app working but unfortunately whenever I try to install all dependencies inside composer.json file as you can see in the image above I'm getting that error. I don't know what's ...
OUTC-K's user avatar
  • 121
0 votes
1 answer
178 views

I a trying to update my server to php7.1 version but I am facing an issue

I have been trying to update the server for the latest PHP version 7.1 but I am being unsuccessful. I am getting the following error when I try apt-get upgrade E: Some index files failed to download. ...
Sabiha Taj's user avatar
0 votes
1 answer
38 views

How i can find data in array php

I have data array in php like this, 0 => "data" => 0 => "id_data": "P-1234", "name_data": "data 0 warga 1" 1 =>...
ihsan karunia's user avatar
4 votes
1 answer
5k views

Error while doing `brew tap exolnet/homebrew-deprecated`

I want to install php@7.1 on my macbook pro with macos m1. I'm want to perform following steps brew tap exolnet/homebrew-deprecated brew install php@7.1 However, I get this error on command brew tap ...
Ruchit Patel's user avatar
0 votes
2 answers
5k views

Unable to locate credentials aws cli

I am using AWS CLI version 2. I am using centos > Nginx > php 7.1, Following command works fine when I directly run on command line. aws s3 cp files/abc.pdf s3://bucketname/ but when I run same ...
Jass's user avatar
  • 3,365
1 vote
0 answers
246 views

Session keeps destroying after redirect inside iframe only - Codeigniter

I'm developing an app in shopify app market As you know, shopify apps work in iframe. I've no problem in session when i directly use the app in browser without iframe. The issue is only within iframe. ...
Hussain Baduhsa's user avatar
0 votes
1 answer
597 views

php-fpm processes stuck on state "getting request informations"

My webserver has been experiencing a problem of php-fpm active processes slowly increasing till the pm.max_children setting is reached, at which point it's stuck and I need to restart php-fpm. (os: ...
jeremyj11's user avatar
  • 589
0 votes
0 answers
105 views

1.6.1.24 update to 1.7.7.4 database schema error [duplicate]

I am sandbox upgrading a copy of my live Prestashop website in MAMP (free) following the iteration: my website is a 1.6.1.3 I perform an update of the stated 1.6.1.3 to a 1.6.1.24 with a 1-click ...
nicoledesignstore's user avatar
1 vote
1 answer
1k views

"Gitpod" Downgrade default PHP v7.4.3 to 7.1.3 or 7.2

The error I'm facing is on Gitpod with PHP version, so the question is, how can I delete PHP completely from the workspace or replace it? Basically, I want to downgrade it. I want to replace PHP with ...
Pranav's user avatar
  • 31
0 votes
1 answer
2k views

osticket ldap authentication not happening

We have migrating the osticket from linux to windows server and in the linux server that osticket is working fine with ldap authentication. But after migrating into windows server, ldap authentication ...
manju dn's user avatar
1 vote
2 answers
328 views

requiring a specific commit of a package - composer seems to be ignoring composer.json requirements

I have the following composer.json / require: "require": { "php": ">=7.0", "ext-mbstring": "*", "ext-openssl":...
neubert's user avatar
  • 16k
0 votes
0 answers
261 views

How to install a specific version of php 7.1.28 on Amzon Linux EC2

I need to install the 7.1.28 version of php in my EC2 instance, and i have to install also php-mysqlnd and php opcache, i added the remi repository but i get the 7.1.33, there is any repository or any ...
EricDrvn's user avatar
0 votes
1 answer
274 views

I have a problem with optional parameters that gives 404 error in laravel 7

I have the following function in laravel 7: public function create(Franchise $franchise = null) { ... } And the route is as follows: Route::get('series/create/{franchise?}', 'SerieController@create'...
Elard Guevara's user avatar
0 votes
1 answer
126 views

PHP7 compatibility test

After checking our code with php7mar there are some entries in the report that are similar to the following: #### /includes/classes/class.shopdb.php * funcGetArg * Line 206: ` $...
musicweb's user avatar
1 vote
2 answers
505 views

Relationship between user and store

I need to create a relationship between user and many stores. I have created a three models Store Model id name email phone info 1 xyz xyz@gmail.com 9329292922 Small Store 2 ...
B L Praveen's user avatar
  • 1,850
0 votes
1 answer
254 views

How to use getter & setter using dependency injection?

I am trying to implement Dependency Injection in Symfony. I created a class named Token as follows: class Token { private $token; private $key; public function __construct(string $key) ...
Znk's user avatar
  • 29
0 votes
1 answer
79 views

How do I encode password with UserPasswordEncoderInterface inside a repository?

In my repository, I would like to do something like: public function generatePassword(Users $user, UserPasswordEncoderInterface $passwordEncoder) { return $passwordEncoder->encodePassword($user,...
Ambu's user avatar
  • 174
1 vote
1 answer
2k views

Laravel Excel, file import throws "ZipArchive::getFromName(): Invalid or uninitialized Zip object"

I'm using Laravel excel to import headers & some records. With this approach, I should able to get headers: $headings = (new HeadingRowImport)->toArray($myFile); If $myFile is a CSV, it's OK; ...
4givN's user avatar
  • 2,936
0 votes
0 answers
78 views

How to speed up PDF display in symfony 3.4

I am running symfony 3.4 to render a PDF file based on some user answers. The PDF is generated and then shown on the browser via return $this->file('invoice_3241.pdf', 'my_invoice.pdf', ...
Jon's user avatar
  • 766
7 votes
1 answer
4k views

How to extend PHP Laravel model's fillable fields in a child class?

I try to extend an extintig ˙PHP` Laravel model with some other fields, but I not found the right solution. I use PHP 7.1 with Laravel 6.2 Here is my code, what explain what I want to do. The ...
netdjw's user avatar
  • 5,469
4 votes
1 answer
4k views

How to specify the void return type for a constructor

For consistency I'm specifying return types since PHP 7.1, for all methods, including magic ones like __toString, and even when the implicit return type is void like with __unserialize(): class a { ...
Code4R7's user avatar
  • 2,600
-1 votes
1 answer
170 views

Global Variable Variables in PHP7 Function?

Updating php5 app for php7 and meeting this difficulty... There seems to be a global variable variable in a function used all over the place like so: function verify($field) { global ${$field}; ...
master03's user avatar
0 votes
0 answers
14 views

Order by inside loop PDO [duplicate]

TOP 3 Players: <?php $xxx=$ConnectingDB->query("SELECT DISTINCT(who) FROM autoquiz_logs LIMIT 3 "); while ($xoxo = $xxx->fetch(PDO::FETCH_ASSOC)) { $xxxo=$ConnectingDB->query("...
Jam E's user avatar
  • 1
0 votes
1 answer
995 views

Laravel 5.5 Project Download File Insted Of Opening Them In Browser PHP 7.1 MAC

I am developing laravel 5.5 project PHP 7.1.32 on windows it works fine. Now I Shifted To Mac OSX I copied the whole project from windows to mac instead of opening the file in browser it downloads the ...
hassan javaid's user avatar
2 votes
3 answers
585 views

How to find exact keywords in solr search?

Actually I am facing one problem in solr search. There is an author field in which I stored two value like "deep kumar-singh" and "deep kumar singh". When I search the author:"deep kumar-singh" It ...
Deepak saini's user avatar
  • 4,110
15 votes
4 answers
30k views

Change mac os x default php version

In my mac (version 10.13.6 High Sierra) php -v output is PHP 7.1.32 . I need to update this 7.1 version to 7.3. i tried to remove this version using brew unlink php7.1 but it's not worked. How can ...
C.V's user avatar
  • 909
0 votes
1 answer
276 views

Images are not showing on PDF after changing application pool setting on IIS Server

We have one application hosted on Windows 2016 server and with this there is one shared drive as well which holds some images. Recently we have changed application pool of the site and also added ...
kreya's user avatar
  • 1,091
3 votes
1 answer
8k views

can't install php 7.1

devall@giga:~$ sudo apt-get install php7.1 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php7.1 E: Couldn't find any ...
Giga Todadze's user avatar
1 vote
1 answer
186 views

Unable to trace require_once error in PHP

i have a file structure like this in my PHP 7.1 Model/Abstract.php Model/NTLStm.php Model/SoapCl.php Controller.php i Called Model/Abstract.php in Controller like this: use Model/Abstract as ...
jojo's user avatar
  • 126
2 votes
1 answer
1k views

Laravel multi-tenant app works properly in local but does not work in production/staging

I build a multi-tenant app in laravel, That works properly in local but it does not work on production/staging. Whenever I try to login, it shows an error that : SQLSTATE[42S02]: Base table or view ...
rashmie's user avatar
  • 58
0 votes
1 answer
342 views

magento 2 website not working after deployment from nginx to apache2

My website is work fine here development site which is on nginx server php version 7.1 But when i deployed here production site it gives me error like add to cart functionality, unnecessary index....
shubham dahibhate's user avatar
0 votes
1 answer
52 views

When Generating URL Characters Being Arbitrarily Moved

Received this from a customer, our password reset emails normally generate correctly, however what (in code) looks like this: <h4> <a href="https://'.$this->server.'/password?email_token=...
Chris's user avatar
  • 269
0 votes
0 answers
168 views

Category controller in prestashop makes an infinite loop

I move my prestashop site to another server hosting, the same differenet between the old one and this server is PHP version NEW server : 7.1 old server : 5.6 In category page I get a infinite loop ...
Ahmed guesmi's user avatar
1 vote
0 answers
248 views

Unable to load dynamic library '/usr/lib/php/20160303/pdo_mysql.so

After an updrade of Ubuntu where php7.3 has been installed I can not load the mysql library when I execute php7.1. So, when I execute php7.1 -v I get this message: PHP Warning: PHP Startup: Unable ...
Oriol Planas's user avatar
0 votes
0 answers
173 views

Symfony 3.4 Test Failing With PHPUnit\Framework\Exception: But No Message

I have a large suite of tests in Symfony that are run using simple-phpunit (I have Symfony's phpunit-bridge installed). These tests were all passing until today. Today I have two failed tests, both ...
Lucha Laura Hardie's user avatar
0 votes
0 answers
770 views

base64_decode() returns different results in different PHP versions

For this base64 encoded string "Q8Ju/Mbi4UDGBt2aqXhG7Q==" PHP 5.5 and lower returns this: CÂnüÆâá@ÆÝš©xFí PHP 5.6 and higher returns this: C�n����@�ݚ�xF� It appears to be a difference in how the ...
Erinly's user avatar
  • 3
2 votes
0 answers
23 views

Why does false[0] not throw an error for undefined offset? [duplicate]

Why does false[0] not throw an undefined offset error? (and should I count on this behavior) Background Story I am sending the options object of a Vuetify datatable component to a php backend. The ...
Kenneth's user avatar
  • 535
1 vote
0 answers
122 views

How to send timezone to dialogflow request using php script?

We have a chat interface which we are using to request to dialogflow. Here the chat window is designed in php. Now the chat can be initiated in any location, so when user connects we are also trying ...
vedavyasg's user avatar
1 vote
0 answers
357 views

aws autoscalling causing automatic logout in Laravel

Few days back, We implemented AWS auto scaling and after that we started facing automatic logout problem in Laravel, We changed session storing from file to database like this BROADCAST_DRIVER=redis ...
Jass's user avatar
  • 3,365
0 votes
1 answer
121 views

How to write XML to CSV format

I am working on a simple console program that parse RSS to .csv format, but i am stuck on foreach loop. I need to write every tag to the file separated by commas, but it just finds the first ones and ...
Damian Kobiela's user avatar
0 votes
1 answer
175 views

Json starting with [ and when using json_encode it starts with " in magento2 using php7.1

I want my json to start with { but if using json_encode it is getting converted into string, I am using php7.1 on ubuntu and working on magento 2.3 This is what I am getting with the below code, I ...
Himanshu Bisht's user avatar
1 vote
1 answer
45 views

I want to rebill on every month first Wednesday of first full week, Every month should starts from Monday

I have a subscription module, it rebills a term on every month on first day, But here I want to rebill on Wednesday of first full week of a month. I need to write this in php code. Currently I am ...
Jdprasad V's user avatar
1 vote
0 answers
34 views

Why my middleware is not working,I try to put some parameter inside the middleware and its not working

My middleware should block user with restric_desc = Revoke Student Portal Access. But it end up blocking all user from accessing the tab. Route::group(['middleware' => ['auth'], 'request' =>App\...
newb.coder's user avatar

1
2 3 4 5
11