Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Info #4878

Open
cole007 opened this issue Sep 3, 2019 · 5 comments

Comments

@cole007
Copy link

commented Sep 3, 2019

Description

Similar to #2843 Utilities > PHP Info is throwing an Internal Server Error error.
The specific error from stack trace is yii\base\ErrorException: Array to string conversion in /XXX/vendor/craftcms/cms/src/utilities/PhpInfo.php:66

Steps to reproduce

  1. Go to Utilities > PHP Info

Additional info

  • Craft version: 3.3.0.1
  • PHP version: 7.1.30
  • Database driver & version: MySQL 5.7.26
  • Plugins & versions:

craftcms/redactor: 1.10
ether/simplemap 3.5.2
mikestecker/craft-videoembedder: 1.1.3
nystudio107/craft-eagerbeaver: 1.0.4
sebastianlenz/linkfield: 1.0.19
verbb/super-table: 2.2.1
rias/craft-position-fieldtype 1.0.14
topshelfcraft/supersort: 3.0.1
whoisjuan/craft-color-mixer: 1.0.5
marionnewlevant/twig-perversion: 2.1.0
ournameismud/fractal: 1.0.8
solspace/craft3-freeform: 2.5.26
ether/seo: 3.6.2
ether/tags: 1.0.5
spicyweb/craft-embedded-assets: 2.0.11
clearbold/craft-campaignmonitor-lists: 1.1.7

There are additionally several custom plugins in use for bespoke functionality

Full (redacted) stack log for error https://gist.github.com/cole007/25975e6c8d081d549e4a2d3b23c1141d

@brandonkelly

This comment has been minimized.

Copy link
Member

commented Sep 4, 2019

PhpInfo.php line 66 is just this:

phpinfo(INFO_ALL);

So the actual issue must lie somewhere internally to PHP or a PHP extension; maybe ask your host about it.

@mhayes14

This comment has been minimized.

Copy link

commented Sep 4, 2019

I am seeing the same issue since upgrading Craft (3.2.5.1 => 3.3.0.1).

It's caused by the environment variable "argv" being an array.

@tokersey

This comment has been minimized.

Copy link

commented Sep 6, 2019

@brandonkelly I think the environment suggestion isn't quite accurate. I am having the same issue on multiple the environments which have functioned appropriately up until upgrading to 3.3. The only difference being Craft and its dependencies were updated. I can revert back to 3.2.10 and it works as expected.

@brandonkelly brandonkelly reopened this Sep 6, 2019

@angrybrad

This comment has been minimized.

Copy link
Member

commented Sep 6, 2019

Can anyone experiencing this issue put in this in a ini.php file:

<?php phpinfo();

Put it in your public HTML folder, then load it in a browser. i.e. http://yoursite.com/ini.php

Save that entire page as HTML, then send it over to support@craftcms.com and reference this ticket, please.

@tokersey

This comment has been minimized.

Copy link

commented Sep 6, 2019

@angrybrad I sent support the PHP info. I wanted to post additional information poking into this issue. Like @mhayes14 said, argv is an array. If I turn off register_argc_argv in my php.ini, the page works as expected. However, this option is generally "On" by default.

In Craft 3.2.10 and prior, the value for $_SERVER['argv'] appears similar to:

Array( [0] =&gt; p=admin/utilities/php-info)

But upgrading to 3.3, the line throws the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.