Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent warnings when invalidating the cache #66

Closed
wants to merge 1 commit into from
Closed

Prevent warnings when invalidating the cache #66

wants to merge 1 commit into from

Conversation

rolandschuetz
Copy link

@rolandschuetz rolandschuetz commented May 9, 2016

Easyname uses OPcache, but restricts the opcache_invalidate() usage.

Therefore Easyname Hosting the following warning in thrown:

Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in system/modules/rocksolid-custom-elements/src/MadeYourDay/Contao/CustomElements.php on line 1262
#0 [internal function]: __error(2, 'Zend OPcache AP...', '/data/web/e2850...', 1262, Array)
#1 system/modules/rocksolid-custom-elements/src/MadeYourDay/Contao/CustomElements.php(1262): opcache_invalidate('/data/web/e2850...', true)
#2 system/modules/rocksolid-custom-elements/src/MadeYourDay/Contao/CustomElements.php(1237): MadeYourDay\Contao\CustomElements::refreshOpcodeCache('/data/web/e2850...')
#3 system/modules/rocksolid-custom-elements/src/MadeYourDay/Contao/CustomElements.php(1247): MadeYourDay\Contao\CustomElements::loadConfig(true)
#4 system/modules/rocksolid-custom-elements/src/MadeYourDay/Contao/CustomElements.php(54): MadeYourDay\Contao\CustomElements::reloadConfig()
#5 system/modules/core/drivers/DC_Table.php(208): MadeYourDay\Contao\CustomElements->onloadCallback(Object(sioweb\contao\extensions\backend\DC_Table))
#6 system/modules/SWBackend/drivers/DC_Table.php(40): Contao\DC_Table->__construct('tl_content', Array)
#7 system/modules/SWBackend/classes/Backend.php(138): sioweb\contao\extensions\backend\DC_Table->__construct('tl_content', Array)
#8 contao/main.php(142): Backend->getBackendModule('article')
#9 contao/main.php(293): Main->run()
#10 {main}

@ausi
Copy link
Member

ausi commented May 11, 2016

I think this is a problem of Easyname. They should either remove the method completely so that function_exists('opcache_invalidate') returns false or add the option to disable the warning messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants