Questions tagged [php-7.3]

Use this tag for version-specific issues relating specifically to PHP 7.3.Use with the [php] tag

319 questions
0
votes
1 answer

Codeigniter 3 shows errors in production mode

I'm using Codeigniter 3 in production mode but errors are displayed. My web server is Wampserver 3.1.7 with it's default php.ini. How can I disable error reporting? This is part of my index.php: define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ?…
rostamiani
  • 2,859
  • 7
  • 38
  • 74
0
votes
1 answer

Error updating Dockerfile FROM php:7.2-fpm to php:7.3-fpm

Because I want PHP 7.3 features I am trying to update the project from PHP 7.2 to PHP 7.3. Within docker-compose.yml I have: php: build: ./docker/php volumes: - .:/var/www/html links: - mysql:mysql depends_on: …
Blackbam
  • 17,496
  • 26
  • 97
  • 150
0
votes
0 answers

Setting specific PHP version with SetHandler in .htacess per directory doesn't work

Using Ubuntu 18 & Apache, I am trying to achieve state in which a PHP handler of my choice is used in each directory. There is a .htaccess directive for that which itself works fine - I can change x-httpd-php to x-httpd-php-source and it is…
jave.web
  • 13,880
  • 12
  • 91
  • 125
0
votes
0 answers

Performance degradation/site is down, guessing it's caused by PHP-7.3 FPM buffer overflow?

I am having issues with performance degradation / website is not reachable. End users see 502 Bad gateway error. The behaviour is php-fpm works fine for several hours, then site starts to work slower and slower and then site throws 502 error. The…
0
votes
1 answer

Imagick extension not enabled on the browser version of php in mac mojave

I am using mac mojave with the following configuration. Apache2 - Installed from default phph 7.3.8 - installed from brew imagick - installed from brew Now the issue is that the imagick extension is not loaded on the browser version of php. When i…
Vivek
  • 1
0
votes
1 answer

PUT requests being treated like GET requests on Laravel

I'm making a Laravel 5.8 API (PHP 7.3.6) and the GET, POST and DELETE functions are all acting normally but I cannot get the PUT to behave as it should. When I use Postman and do a PUT request to "sites" it behaves like a GET request. The GET, POST…
sdexp
  • 756
  • 4
  • 18
  • 36
0
votes
1 answer

How to model several variables per product

I want to know the way to design database for product data (variation-variables data) Example I have those tables: Products: id - Title Attributes: id - name Options : id - name - attribute_id Each product has one or more attributes, and each…
0
votes
1 answer

PHP 7.3 SoapClient stream_context (verify_peer) Ignored

I'm in the process of upgrading from PHP 5.6 to PHP 7.3 and it appears that a SoapClient in PHP 7.3 ignores the ssl verify_peer option. In PHP 5.6 the following code executes as it should: $opts = [ 'ssl' => [ 'crypto_method' =>…
Colby Clark
  • 181
  • 1
  • 8
0
votes
1 answer

Uncaught LogicException: The cache must return instances of ClassMetadata, but got 1

Trying to boot up Symfony app 3.4 with php 7.3 throws an exception: Fatal error: Uncaught LogicException: The cache must return instances of ClassMetadata, but got 1. in /var/www/contoso/vendor/jms/metadata/src/Metadata/MetadataFactory.php:73 Stack…
Oscar Romero
  • 231
  • 1
  • 2
  • 11
0
votes
1 answer

Symfony 4.3 returning invalid CSRF token always

System Info: Ubuntu 18.04.1 Apache 2.4.29 PHP 7.2.19 Server always reports that a csrf token on a login form is invalid. I have followed the symfony guide a couple Symfony guides…
Chris
  • 811
  • 8
  • 17
0
votes
1 answer

Can magic constants be imported in PHP

I cannot find any hint about the fact I cannot import any magic constant. Trying to like ...
codekandis
  • 712
  • 1
  • 11
  • 22
0
votes
1 answer

How can I create a laravel project with latest php version?

I have two PHP version(php 5.6 & php 7.3) installed in my xampp. I have two folders for these two version. php php73 php7.3 runs on port 8081 and php 5.6 runs on Port 8080. I have installed composer for the php 5.6 version. Now when I try to…
nas
  • 2,289
  • 5
  • 32
  • 67
0
votes
2 answers

How to parallely fetch data from a Rest API in PHP

I need to fetch around 250K numbers of records continuously from an API. from the client side i click on a button,using ajax server fetch the records from the api and stored as files in the server's file system. but because of this huge numbers of…
Akash
  • 1
  • 1
0
votes
1 answer

Laravel 5.8 + Apache — Subdomain configuration

So basically my issue is about the routing of a subdomain (or multiple ones) to a single Laravel app. To go more in details I have multiple Route::group and I want to have them "connect" to a specific subdomain. For example: account.domain.co →…
Hugo
  • 3
  • 5
0
votes
2 answers

PHP 7.3 Function create_function() is deprecated

I have used create_function in my theme below. add_action( 'widgets_init', create_function( '', 'register_widget( "Woocommerce_Header_Cart" );' ) ); But for PHP 7.3.0, the create_function() is deprecated. Any idea, how to fix my codes above on PHP…