Skip to content

app:config:import stop when retrieve a warning or notice on php code #31428

Closed
@rubenpurple

Description

@rubenpurple

Hello, im trying to configure the pipeline system of Magento 2.4.

In the production system, the last step, i do the next commands:

/usr/local/bin/php bin/magento app:config:import
/usr/local/bin/php bin/magento setup:upgrade --keep-generated

As the documentation says. The problem, is when import the config.php file, i get the next error:

image

looking at the code:

image

The $time variable, get null from function: $this->getData('groups/productalert_cron/fields/time/value');

I changed the code so that if it is null, I left a zero as the value.

Then i try again, and now get the next error:
image

When i saw that error is a warning, i try to disable error_reporting in app/bootstrap.php:
//error_reporting(E_ALL);

and now, the import works fine.
image

I don't understand why I get these errors, caused by the values ​​returned by the functions, which are null.

I checked my database and config.php file, if I have the requested value:
image
image

now i have the doubt if avoiding error_reporting works fine the import function.

Reggards.

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Import / exportComponent: ImportExportIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions