-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hello! I tested this module with Nexcess servers but it doesn't work. My server is "shared", one of Nexcess's common plans. I know there are some restrictions.
Could you tell me what the minimum configuration requirements are for this module to work correctly?
php -v PHP 8.3.8 (cli) (built: Jun 4 2024 14:53:17) (NTS gcc x86_64) Copyright (c) The PHP Group Zend Engine v4.3.8, Copyright (c) Zend Technologies with Zend OPcache v8.3.8, Copyright (c), by Zend Technologies
The server configurations is:
disable_functions | opcache_get_status
The error that occurs is:
main.CRITICAL: Error: Call to undefined function Element119\AdminOpCacheReport\ViewModel\opcache_get_status() in /chroot/home/servername/vendor/element119/module-admin-opcache-report/ViewModel/OpCache.php:45 Stack trace: #0 /chroot/home/servername/vendor/element119/module-admin-opcache-report/ViewModel/OpCache.php(117): Element119\AdminOpCacheReport\ViewModel\OpCache->getOpCacheStatus() #1 /chroot/home/servername/vendor/element119/module-admin-opcache-report/Block/Adminhtml/OpCache/Flush.php(28): Element119\AdminOpCacheReport\ViewModel\OpCache->getOpCacheStatusData('opcache_enabled') #2 /chroot/home/servername/vendor/magento/framework/View/Element/AbstractBlock.php(223): Element119\AdminOpCacheReport\Block\Adminhtml\OpCache\Flush->_construct() #3 /chroot/home/servername/vendor/magento/framework/View/Element/Template.php(145): Magento\Framework\View\Element\AbstractBlock->__construct(Object(Magento\Backend\Block\Widget\Context), Array) #4 /chroot/home/servername/vendor/magento/module-backend/Block/Template.php(84): Magento\Framework\View\Element\Template->__construct(Object(Magento\Backend\Block\Widget\Context), Array) #5 /chroot/home/servername/vendor/magento/module-backend/Block/Widget/Container.php(56): Magento\Backend\Block\Template->__construct(Object(Magento\Backend\Block\Widget\Context), Array) #6 /chroot/home/servername/vendor/element119/module-admin-opcache-report/Block/Adminhtml/OpCache/Flush.php(21): Magento\Backend\Block\Widget\Container->__construct(Object(Magento\Backend\Block\Widget\Context), Array) #7 /chroot/home/servername/generated/code/Element119/AdminOpCacheReport/Block/Adminhtml/OpCache/Flush/Interceptor.php(14): Element119\AdminOpCacheReport\Block\Adminhtml\OpCache\Flush->__construct(Object(Magento\Backend\Block\Widget\Context), Object(Element119\AdminOpCacheReport\ViewModel\OpCache), Array) #8 /chroot/home/servername/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Element119\AdminOpCacheReport\Block\Adminhtml\OpCache\Flush\Interceptor->__construct(Object(Magento\Backend\Block\Widget\Context), Object(Element119\AdminOpCacheReport\ViewModel\OpCache), Array) #9 /chroot/home/servername/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Element119\\Admi...', Array) #10 /chroot/home/servername/vendor/magento/framework/ObjectManager/ObjectManager.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Element119\\Admi...', Array) #11 /chroot/home/servername/vendor/magento/framework/View/Element/BlockFactory.php(44): Magento\Framework\ObjectManager\ObjectManager->create('Element119\\Admi...', Array) #12 /chroot/home/servername/vendor/magento/framework/View/Layout/Generator/Block.php(272): Magento\Framework\View\Element\BlockFactory->createBlock('Element119\\Admi...', Array) #13 /chroot/home/servername/vendor/magento/framework/View/Layout/Generator/Block.php(252): Magento\Framework\View\Layout\Generator\Block->getBlockInstance('Element119\\Admi...', Array) #14 /chroot/home/servername/vendor/magento/framework/View/Layout/Generator/Block.php(225): Magento\Framework\View\Layout\Generator\Block->createBlock('Element119\\Admi...', 'adminhtml.opcac...', Array) #15 /chroot/home/servername/vendor/magento/framework/View/Layout/Generator/Block.php(134): Magento\Framework\View\Layout\Generator\Block->generateBlock(Object(Magento\Framework\View\Layout\ScheduledStructure), Object(Magento\Framework\View\Layout\Data\Structure), 'adminhtml.opcac...') #16 /chroot/home/servername/vendor/magento/framework/View/Layout/GeneratorPool.php(93): Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context)) #17 /chroot/home/servername/vendor/magento/framework/View/Layout.php(365): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context)) #18 /chroot/home/servername/generated/code/Magento/Framework/View/Layout/Interceptor.php(68): Magento\Framework\View\Layout->generateElements() #19 /chroot/home/servername/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements() #20 /chroot/home/servername/vendor/magento/framework/View/Page/Builder.php(65): Magento\Framework\View\Layout\Builder->generateLayoutBlocks() #21 /chroot/home/servername/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks() #22 /chroot/home/servername/vendor/magento/framework/View/Page/Config.php(227): Magento\Framework\View\Layout\Builder->build() #23 /chroot/home/servername/vendor/magento/framework/View/Page/Config.php(250): Magento\Framework\View\Page\Config->build() #24 /chroot/home/servername/vendor/element119/module-admin-opcache-report/Controller/Adminhtml/Index/Index.php(29): Magento\Framework\View\Page\Config->getTitle() #25 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(58): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index->execute() #26 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(138): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->___callParent('execute', Array) #27 /chroot/home/servername/vendor/meta/module-business-extension/Plugin/LoggingPluginBase.php(137): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() #28 /chroot/home/servername/vendor/meta/module-business-extension/Plugin/LoggingPluginBase.php(79): Meta\BusinessExtension\Plugin\LoggingPluginBase->wrapCallableWithLogging(true, true, 'Action execute', Object(Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure)) #29 /chroot/home/servername/vendor/meta/module-business-extension/Plugin/LoggingActionPlugin.php(41): Meta\BusinessExtension\Plugin\LoggingPluginBase->wrapCallableWithErrorAndImpressionLogging('Action execute', Object(Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure)) #30 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(135): Meta\BusinessExtension\Plugin\LoggingActionPlugin->aroundExecute(Object(Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure)) #31 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(153): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() #32 /chroot/home/servername/generated/code/Element119/AdminOpCacheReport/Controller/Adminhtml/Index/Index/Interceptor.php(23): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->___callPlugins('execute', Array, Array) #33 /chroot/home/servername/vendor/magento/framework/App/Action/Action.php(111): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->execute() #34 /chroot/home/servername/vendor/magento/module-backend/App/AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #35 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http)) #36 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(138): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->___callParent('dispatch', Array) #37 /chroot/home/servername/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #38 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #39 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(153): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #40 /chroot/home/servername/generated/code/Element119/AdminOpCacheReport/Controller/Adminhtml/Index/Index/Interceptor.php(32): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array) #41 /chroot/home/servername/vendor/magento/framework/App/FrontController.php(245): Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #42 /chroot/home/servername/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse(Object(Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor), Object(Magento\Framework\App\Request\Http)) #43 /chroot/home/servername/vendor/magento/framework/App/FrontController.php(146): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Element119\AdminOpCacheReport\Controller\Adminhtml\Index\Index\Interceptor)) #44 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #45 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #46 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #47 /chroot/home/servername/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array) #48 /chroot/home/servername/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #49 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch() #50 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('launch', Array) #51 /chroot/home/servername/vendor/magento/module-application-performance-monitor/Plugin/ApplicationPerformanceMonitor.php(43): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #52 /chroot/home/servername/vendor/magento/module-application-performance-monitor/Profiler/Profiler.php(59): Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor->Magento\ApplicationPerformanceMonitor\Plugin\{closure}() #53 /chroot/home/servername/vendor/magento/module-application-performance-monitor/Plugin/ApplicationPerformanceMonitor.php(41): Magento\ApplicationPerformanceMonitor\Profiler\Profiler->doProfile(Object(Closure), Object(Magento\Framework\App\Http\Interceptor)) #54 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(135): Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor->aroundLaunch(Object(Magento\Framework\App\Http\Interceptor), Object(Closure)) #55 /chroot/home/servername/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #56 /chroot/home/servername/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http\Interceptor->___callPlugins('launch', Array, NULL) #57 /chroot/home/servername/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch() #58 /chroot/home/servername/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #59 {main} {"exception":"[object] (Error(code: 0): Call to undefined function Element119\\AdminOpCacheReport\\ViewModel\\opcache_get_status() at /chroot/home/servername/vendor/element119/module-admin-opcache-report/ViewModel/OpCache.php:45)"} []
