Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Can't save product with Opcache enabled #11

Closed
buskamuza opened this issue Dec 23, 2017 · 1 comment
Closed

Can't save product with Opcache enabled #11

buskamuza opened this issue Dec 23, 2017 · 1 comment
Assignees
Labels
help wanted php-7.2 PHP 7.2 support
Milestone

Comments

@buskamuza
Copy link
Contributor

When saving a simple product, one of the following errors occurs:

Warning: Narrowing occurred during type inference. Please file a bug report on bugs.php.net in /private/var/www/htdocs/m2-php72/magento2ce/vendor/composer/ClassLoader.php on line 412
Warning: Invalid argument supplied for foreach() in /private/var/www/htdocs/m2-php72/magento2ce/app/code/Magento/ConfigurableProduct/Model/Product/VariationHandler.php on line 243
@buskamuza buskamuza modified the milestone: Magento 2.3.0 Mar 7, 2018
@buskamuza buskamuza added this to the Magento 2.3.0 milestone Mar 20, 2018
@buskamuza buskamuza added help wanted php-7.2 PHP 7.2 support labels Mar 22, 2018
@cieslix cieslix self-assigned this Mar 24, 2018
@cieslix
Copy link
Contributor

cieslix commented Mar 24, 2018

I am closing this issue as I could not reproduce the problem as part of #distributed-cd.

There was a problem in Magento/ConfigurableProduct/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Configurable.php:161 with undefined index 'newProduct', but for it should be another task, when I've fixed it I was able to save product in admin panel.

Environment:

  • Magento 2.3-develop,
  • Zend OPcache v7.2.3, PHP 7.2.3 ( docker php:7.2-fpm )
  • php.ini settings bellow
    opcache.enable=1
    opcache.revalidate_freq=3600
    opcache.validate_timestamps=0
    opcache.max_accelerated_files=7963
    opcache.memory_consumption=192
    opcache.interned_strings_buffer=16
    opcache.fast_shutdown=1

Steps:

  • Log into admin,
  • Add new configurable product with variants,
  • Add new simple product,

@cieslix cieslix closed this as completed Mar 24, 2018
magento-engcom-team pushed a commit that referenced this issue Jun 5, 2018
magento-engcom-team pushed a commit that referenced this issue Jun 15, 2018
[Backport] [Resolved : Changing @tab-content__border variable has no effect in B…
magento-engcom-team pushed a commit that referenced this issue Jul 23, 2018
magento-engcom-team pushed a commit that referenced this issue Aug 9, 2018
magento-engcom-team pushed a commit that referenced this issue Dec 22, 2018
magento-engcom-team pushed a commit that referenced this issue Feb 23, 2019
[Backport] Added translation for comment tag
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted php-7.2 PHP 7.2 support
Projects
None yet
Development

No branches or pull requests

2 participants