Problem/Motivation

Launching a sandbox flags up PHP errors to screen

Notice: Undefined index: project in simplytest_projects_fetch_versions() (line 401 of /var/www/html/profiles/simplytest/modules/simplytest_projects/simplytest_projects.module).
Notice: Undefined index: project in simplytest_projects_fetch_versions() (line 405 of /var/www/html/profiles/simplytest/modules/simplytest_projects/simplytest_projects.module).

Steps to reproduce

Install a module to test.

Proposed resolution

Hide PHP messages from browser/screen.
Define variables correctly in module simplytest_projects_fetch_versions() code.

CommentFileSizeAuthor
#3 3194196-3.patch1021 bytesmohit.bansal623

Comments

budda created an issue. See original summary.

thejimbirch’s picture

Encountered this error while installing metatag 8.1-x and a patch.

    Notice: Undefined index: project in simplytest_projects_fetch_versions() (line 401 of /var/www/html/profiles/simplytest/modules/simplytest_projects/simplytest_projects.module).
    Notice: Undefined index: project in simplytest_projects_fetch_versions() (line 405 of /var/www/html/profiles/simplytest/modules/simplytest_projects/simplytest_projects.module).
mohit.bansal623’s picture

Status: Active » Needs review
StatusFileSize
new1021 bytes
webchick’s picture

Priority: Minor » Normal

Escalating to at least normal, because this is an obvious user-facing error on every simplytest.me sandbox deployment.

mortona2k’s picture

Version: 7.x-1.x-dev » 8.x-4.x-dev
Status: Needs review » Needs work
Related issues: +#3203118: Undefined index: project when trying jsonapi

I am bumping the version to 8.x because this notice comes up for every installation I've tried so far.

I assume we can't use simplytest to test the patch because the platform itself needs it, not the site being installed?

I linked a closed related issue, but I think the real problem was overlooked there.