Description
Preconditions:
- Clean installation of Commerce on branch 2.5 using PHP 7.4
Steps to reproduce:
- Log in to backoffice.
- Add new content "Article".
- Perform reindex script: php bin/console ezplatform:reindex
- Check output message and verify logs in /var/logs/dev.log
Actual result:
See attached screenshot.
Unable to index the content Arcticle.
[2021-11-23 13:36:15] app.ERROR: Unable to index the content {"contentId":"138","error":"Notice: Trying to access array offset on value of type null"} [] [2021-11-23 13:36:16] app.ERROR: Unable to index the content {"contentId":"147","error":"Notice: Trying to access array offset on value of type null"} []
Expected result:
Reindex script is able to index content Article.
Note:
Both content ids (138 and 147) that can be seen on screenshot are Articles.
Update:
The problem also occurs for content type 'Product'.
Update2:
Please bear in mind that content 'Article' has been added on the project using PHP 7.3 version.
Designs
Attachments
Issue Links
- discovered while testing
-
IBX-1452 Cannot load frontend site of commerce while using PHP 7.4 version
- Closed