Skip to content
Advertisement

How to fix this magento 2 apptha marketplace issue?

1 exception(s):

Exception #0 (Exception): Notice: Undefined offset: 1 in /var/www/html/magento2/app/code/Apptha/Marketplace/view/frontend/templates/product/manage.phtml on line 191

Exception #0 (Exception): Notice: Undefined offset: 1 in /var/www/html/magento2/app/code/Apptha/Marketplace/view/frontend/templates/product/manage.phtml on line 191
#0 /var/www/html/magento2/app/code/Apptha/Marketplace/view/frontend/templates/product/manage.phtml(191): MagentoFrameworkAppErrorHandler->handler(8, 'Undefined offse...', '/var/www/html/m...', 191, Array)
#1 /var/www/html/magento2/lib/internal/Magento/Framework/View/TemplateEngine/Php.php(59): include('/var/www/html/m...')
#2 /var/www/html/magento2/lib/internal/Magento/Framework/View/Element/Template.php(255): MagentoFrameworkViewTemplateEnginePhp->render(Object(AppthaMarketplaceBlockProductManage), '/var/www/html/m...', Array)
#3 /var/www/html/magento2/lib/internal/Magento/Framework/View/Element/Template.php(279): MagentoFrameworkViewElementTemplate->fetchView('/var/www/html/m...')
#4 /var/www/html/magento2/lib/internal/Magento/Framework/View/Element/AbstractBlock.php(659): MagentoFrameworkViewElementTemplate->_toHtml()
#5 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(542): MagentoFrameworkViewElementAbstractBlock->toHtml()
#6 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(518): MagentoFrameworkViewLayout->_renderBlock('marketplace_pro...')
#7 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(472): MagentoFrameworkViewLayout->renderNonCachedElement('marketplace_pro...')
#8 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(570): MagentoFrameworkViewLayout->renderElement('marketplace_pro...', false)
#9 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(520): MagentoFrameworkViewLayout->_renderContainer('content', false)
#10 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(472): MagentoFrameworkViewLayout->renderNonCachedElement('content')
#11 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(570): MagentoFrameworkViewLayout->renderElement('content', false)
#12 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(520): MagentoFrameworkViewLayout->_renderContainer('main', false)
#13 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(472): MagentoFrameworkViewLayout->renderNonCachedElement('main')
#14 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(570): MagentoFrameworkViewLayout->renderElement('main', false)
#15 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(520): MagentoFrameworkViewLayout->_renderContainer('columns', false)
#16 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(472): MagentoFrameworkViewLayout->renderNonCachedElement('columns')
#17 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(570): MagentoFrameworkViewLayout->renderElement('columns', false)
#18 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(520): MagentoFrameworkViewLayout->_renderContainer('main.content', false)
#19 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(472): MagentoFrameworkViewLayout->renderNonCachedElement('main.content')
#20 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(570): MagentoFrameworkViewLayout->renderElement('main.content', false)
#21 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(520): MagentoFrameworkViewLayout->_renderContainer('page.wrapper', false)
#22 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(472): MagentoFrameworkViewLayout->renderNonCachedElement('page.wrapper')
#23 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(570): MagentoFrameworkViewLayout->renderElement('page.wrapper', false)
#24 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(520): MagentoFrameworkViewLayout->_renderContainer('root', false)
#25 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(472): MagentoFrameworkViewLayout->renderNonCachedElement('root')
#26 /var/www/html/magento2/lib/internal/Magento/Framework/View/Layout.php(939): MagentoFrameworkViewLayout->renderElement('root')
#27 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(146): MagentoFrameworkViewLayout->getOutput()
#28 /var/www/html/magento2/var/generation/Magento/Framework/View/Layout/Interceptor.php(39): MagentoFrameworkViewLayoutInterceptor->___callPlugins('getOutput', Array, Array)
#29 /var/www/html/magento2/lib/internal/Magento/Framework/View/Result/Page.php(243): MagentoFrameworkViewLayoutInterceptor->getOutput()
#30 /var/www/html/magento2/lib/internal/Magento/Framework/View/Result/Layout.php(167): MagentoFrameworkViewResultPage->render(Object(MagentoFrameworkAppResponseHttpInterceptor))
#31 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(74): MagentoFrameworkViewResultLayout->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#32 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): MagentoFrameworkViewResultPageInterceptor->___callParent('renderResult', Array)
#33 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): MagentoFrameworkInterceptionChainChain->invokeNext('Magento\Framewo...', 'renderResult', Object(MagentoFrameworkViewResultPageInterceptor), Array, 'result-varnish-...')
#34 /var/www/html/magento2/app/code/Magento/PageCache/Model/Controller/Result/VarnishPlugin.php(74): MagentoFrameworkInterceptionChainChain->MagentoFrameworkInterceptionChain{closure}(Object(MagentoFrameworkAppResponseHttpInterceptor))
#35 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): MagentoPageCacheModelControllerResultVarnishPlugin->aroundRenderResult(Object(MagentoFrameworkViewResultPageInterceptor), Object(Closure), Object(MagentoFrameworkAppResponseHttpInterceptor))
#36 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): MagentoFrameworkInterceptionChainChain->invokeNext('Magento\Framewo...', 'renderResult', Object(MagentoFrameworkViewResultPageInterceptor), Array, 'result-builtin-...')
#37 /var/www/html/magento2/app/code/Magento/PageCache/Model/Controller/Result/BuiltinPlugin.php(67): MagentoFrameworkViewResultPageInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppResponseHttpInterceptor))
#38 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(142): MagentoPageCacheModelControllerResultBuiltinPlugin->aroundRenderResult(Object(MagentoFrameworkViewResultPageInterceptor), Object(Closure), Object(MagentoFrameworkAppResponseHttpInterceptor))
#39 /var/www/html/magento2/var/generation/Magento/Framework/View/Result/Page/Interceptor.php(26): MagentoFrameworkViewResultPageInterceptor->___callPlugins('renderResult', Array, Array)
#40 /var/www/html/magento2/lib/internal/Magento/Framework/App/View.php(221): MagentoFrameworkViewResultPageInterceptor->renderResult(Object(MagentoFrameworkAppResponseHttpInterceptor))
#41 /var/www/html/magento2/app/code/Apptha/Marketplace/Controller/Product/Manage.php(73): MagentoFrameworkAppView->renderLayout()
#42 /var/www/html/magento2/lib/internal/Magento/Framework/App/Action/Action.php(102): AppthaMarketplaceControllerProductManage->execute()
#43 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(74): MagentoFrameworkAppActionAction->dispatch(Object(MagentoFrameworkAppRequestHttp))
#44 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): AppthaMarketplaceControllerProductManageInterceptor->___callParent('dispatch', Array)
#45 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): MagentoFrameworkInterceptionChainChain->invokeNext('Apptha\Marketpl...', 'dispatch', Object(AppthaMarketplaceControllerProductManageInterceptor), Array, 'contextPlugin')
#46 /var/www/html/magento2/app/code/Magento/Store/App/Action/Plugin/Context.php(106): MagentoFrameworkInterceptionChainChain->MagentoFrameworkInterceptionChain{closure}(Object(MagentoFrameworkAppRequestHttp))
#47 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): MagentoStoreAppActionPluginContext->aroundDispatch(Object(AppthaMarketplaceControllerProductManageInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#48 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): MagentoFrameworkInterceptionChainChain->invokeNext('Apptha\Marketpl...', 'dispatch', Object(AppthaMarketplaceControllerProductManageInterceptor), Array, 'customer-app-ac...')
#49 /var/www/html/magento2/app/code/Magento/Customer/Model/App/Action/ContextPlugin.php(61): MagentoFrameworkInterceptionChainChain->MagentoFrameworkInterceptionChain{closure}(Object(MagentoFrameworkAppRequestHttp))
#50 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): MagentoCustomerModelAppActionContextPlugin->aroundDispatch(Object(AppthaMarketplaceControllerProductManageInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#51 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): MagentoFrameworkInterceptionChainChain->invokeNext('Apptha\Marketpl...', 'dispatch', Object(AppthaMarketplaceControllerProductManageInterceptor), Array, 'storeCheck')
#52 /var/www/html/magento2/app/code/Magento/Store/App/Action/Plugin/StoreCheck.php(44): MagentoFrameworkInterceptionChainChain->MagentoFrameworkInterceptionChain{closure}(Object(MagentoFrameworkAppRequestHttp))
#53 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): MagentoStoreAppActionPluginStoreCheck->aroundDispatch(Object(AppthaMarketplaceControllerProductManageInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#54 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): MagentoFrameworkInterceptionChainChain->invokeNext('Apptha\Marketpl...', 'dispatch', Object(AppthaMarketplaceControllerProductManageInterceptor), Array, 'weee-app-action...')
#55 /var/www/html/magento2/app/code/Magento/Weee/Model/App/Action/ContextPlugin.php(112): MagentoFrameworkInterceptionChainChain->MagentoFrameworkInterceptionChain{closure}(Object(MagentoFrameworkAppRequestHttp))
#56 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): MagentoWeeeModelAppActionContextPlugin->aroundDispatch(Object(AppthaMarketplaceControllerProductManageInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#57 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): MagentoFrameworkInterceptionChainChain->invokeNext('Apptha\Marketpl...', 'dispatch', Object(AppthaMarketplaceControllerProductManageInterceptor), Array, 'tax-app-action-...')
#58 /var/www/html/magento2/app/code/Magento/Tax/Model/App/Action/ContextPlugin.php(91): AppthaMarketplaceControllerProductManageInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
#59 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(142): MagentoTaxModelAppActionContextPlugin->aroundDispatch(Object(AppthaMarketplaceControllerProductManageInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#60 /var/www/html/magento2/var/generation/Apptha/Marketplace/Controller/Product/Manage/Interceptor.php(26): AppthaMarketplaceControllerProductManageInterceptor->___callPlugins('dispatch', Array, Array)
#61 /var/www/html/magento2/lib/internal/Magento/Framework/App/FrontController.php(55): AppthaMarketplaceControllerProductManageInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#62 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(74): MagentoFrameworkAppFrontController->dispatch(Object(MagentoFrameworkAppRequestHttp))
#63 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): MagentoFrameworkAppFrontControllerInterceptor->___callParent('dispatch', Array)
#64 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): MagentoFrameworkInterceptionChainChain->invokeNext('Magento\Framewo...', 'dispatch', Object(MagentoFrameworkAppFrontControllerInterceptor), Array, 'requestPreproce...')
#65 /var/www/html/magento2/app/code/Magento/Store/App/FrontController/Plugin/RequestPreprocessor.php(94): MagentoFrameworkInterceptionChainChain->MagentoFrameworkInterceptionChain{closure}(Object(MagentoFrameworkAppRequestHttp))
#66 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): MagentoStoreAppFrontControllerPluginRequestPreprocessor->aroundDispatch(Object(MagentoFrameworkAppFrontControllerInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#67 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): MagentoFrameworkInterceptionChainChain->invokeNext('Magento\Framewo...', 'dispatch', Object(MagentoFrameworkAppFrontControllerInterceptor), Array, 'install')
#68 /var/www/html/magento2/lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php(69): MagentoFrameworkInterceptionChainChain->MagentoFrameworkInterceptionChain{closure}(Object(MagentoFrameworkAppRequestHttp))
#69 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): MagentoFrameworkModulePluginDbStatusValidator->aroundDispatch(Object(MagentoFrameworkAppFrontControllerInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#70 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): MagentoFrameworkInterceptionChainChain->invokeNext('Magento\Framewo...', 'dispatch', Object(MagentoFrameworkAppFrontControllerInterceptor), Array, 'front-controlle...')
#71 /var/www/html/magento2/app/code/Magento/PageCache/Model/App/FrontController/VarnishPlugin.php(55): MagentoFrameworkInterceptionChainChain->MagentoFrameworkInterceptionChain{closure}(Object(MagentoFrameworkAppRequestHttp))
#72 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): MagentoPageCacheModelAppFrontControllerVarnishPlugin->aroundDispatch(Object(MagentoFrameworkAppFrontControllerInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#73 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): MagentoFrameworkInterceptionChainChain->invokeNext('Magento\Framewo...', 'dispatch', Object(MagentoFrameworkAppFrontControllerInterceptor), Array, 'front-controlle...')
#74 /var/www/html/magento2/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php(69): MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
#75 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(142): MagentoPageCacheModelAppFrontControllerBuiltinPlugin->aroundDispatch(Object(MagentoFrameworkAppFrontControllerInterceptor), Object(Closure), Object(MagentoFrameworkAppRequestHttp))
#76 /var/www/html/magento2/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): MagentoFrameworkAppFrontControllerInterceptor->___callPlugins('dispatch', Array, Array)
#77 /var/www/html/magento2/lib/internal/Magento/Framework/App/Http.php(135): MagentoFrameworkAppFrontControllerInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#78 /var/www/html/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(258): MagentoFrameworkAppHttp->launch()
#79 /var/www/html/magento2/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))
#80 {main}

After adding 10 products in magento 2 Apptha marketplace it is throwing exception like this…

Advertisement

Answer

It’s default package issue, in block file the page limit set to ’10’,

$pager->setLimit(10);

(line number : 114) in file /app/code/Apptha/Marketplace/Block/Product/Manage.php

If you are increasing the limit to above 10 means the products will display(Per page) based on the limit.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement