Array to string conversion notice

#1

Hi everyone,

I’m seeing the following notice after a new installation (NGinx, PHP 7.3):

Notice : Array to string conversion in /var/www/project/lib/DotEnv.php on line 50

This is due to the existence of $envs['argv'] which is an (empty) array.

Anyone else seen this before?

1 Like

#2

Actually, this only occurs with NGinx, not with Apache.

0 Likes

#3

Hey @mo6, think that would be better to open an issue in the official GitHub repo, Discourse is usually the place for more generic discussions.

0 Likes

#4

Thanks @pauloamgomes. I wanted to know if anyone else encountered an issue with my setup. Now that we’ve concluded it is an issue it looks like that I can open een issue on the repo, although I have no solution yet.

0 Likes

#5

Yeah, that is not happening on my setup, I’m using docker with nginx and php 7.3 images from wodby.

0 Likes

#6

Hmmm, same here, although I don’t think it’s a PHP issue, rather a NGinx one. We’ll investigate further.

We use a setup where we have a NGinx docker container for a React frontend and a Apache docker container for Cockpit CMS.

PHP_TAG=7.3-dev-4.10.0
NGINX_TAG=1.15-5.0.9
APACHE_TAG=2.4-4.0.2
0 Likes