Preconditions
Previous version 2.2.1
PHP version 7.1.9
Steps to reproduce:
Update Associated Configurable product and save
Expected Result:
Product should save successfully
Actual result
Error message is received: MagentoConfigurableProductModelProductVariationHandler does not exist
@msawyers , thank you for your report.
We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation or latest release.
The bug is reproduced on Magento 2.1.10 (PHP Version 7.1.12)
Sample Data is installed
As a result Product have not been saved
See attached screenshots:


I think this is an issue with PHP 7.1.12, when running on PHP 7.0.26 you do not encounter this issue. There is an opcache issue in 7.1.12 and 7.2.0 which causes issues, see:
https://bugs.php.net/bug.php?id=74980
https://git.php.net/?p=php-src.git;a=commit;h=3df47c12f77a71f90778ec42e6892c828e702fb2
if you add
if (function_exists('opcache_reset')) {
opcache_reset();
}
To index.php the issue also dissapears
Hi, ok thanks will try.
Hi i added to index.php and issue still remains
@msawyers you should add it after the docblock, I should have been more clear, before any other code is run you should add the if
I just ran into my terminal
composer update
I cleaned the cache and the static files my problem was solved
Magento 2.2.1, PHP 7.1
@vitormicillo It's very specific to PHP 7.1.12 and 7.2.0 with opcache enabled
Many thanks @BlackIkeEagle, works like a charm.
@BlackIkeEagle what index.php you refer ?
what the location?
@vitormicillo depending on where your document root is, index.php in your root of your project file or pub/index.php
it helped
https://github.com/magento/magento2/issues/12570#issuecomment-350510482
did it by:
php -r "opcache_reset();"
@Detzler did you run this code in SSH?
Thanks @BlackIkeEagle
I added your code into my index.php and it is working now.
`
/**
*
try {
require __DIR__ . '/app/bootstrap.php';
} catch (Exception $e) {
echo <<
{$e->getMessage()}
HTML;
exit(1);
}
$bootstrap = MagentoFrameworkAppBootstrap::create(BP, $_SERVER);
/** @var MagentoFrameworkAppHttp $app */
$app = $bootstrap->createApplication(MagentoFrameworkAppHttp::class);
$bootstrap->run($app);
`
@emilshamloo, yes I ran it via ssh shell
@magento-engcom-team, shouldn't we integrate "opcache_reset" into "cache:clean stack"?
Most helpful comment
if you add
To index.php the issue also dissapears