0

I am using magento2 and purchased theme inside testimonial module enable after add testimonial than frontend side getting error

 Fatal error: Uncaught Error: Cannot instantiate abstract class Rokanthemes\Testimonial\Controller\Form\Index in /home/XXXXX/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111 Stack trace: #0 /home/XXXXX/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Rokanthemes\\Tes...', Array) #1 /home/XXXXX/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Rokanthemes\\Tes...', Array) #2 /home/XXXXX/public_html/vendor/magento/framework/App/ActionFactory.php(40): Magento\Framework\ObjectManager\ObjectManager->create('Rokanthemes\\Tes...') #3 /home/XXXXX/public_html/vendor/magento/framework/App/Router/Base.php(297): Magento\Framework\App\ActionFactory->create('Rokanthemes\\Tes...') #4 /home/XXXXX/public_html/vendor/magento/framework/App/Router/Base.php(158): Magento\Framework\App\Router\Base->matchAction(Obje in /home/XXXXX/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 111

If any one idea please reply me this error comes only live environment in staging working add testimonial functionality.

below my file path Rokanthemes/Testimonial/Controller/Form

<?php
/**
* Copyright © 2015 tokitheme.com. All rights reserved.

* @author Blue Sky Team <contact@tokitheme.com>
*/

namespace Rokanthemes\Testimonial\Controller\Form;

abstract class Index extends \Rokanthemes\Testimonial\Controller\Form {
    /**
     * @var \Magento\Framework\Controller\Result\ForwardFactory
     */
    protected $resultForwardFactory;

    /**
     * @param \Magento\Framework\App\Action\Context $context
     * @param \Magento\Framework\Controller\Result\ForwardFactory $resultForwardFactory
     */
    public function __construct(
        \Magento\Framework\App\Action\Context $context
    ) {
        parent::__construct($context);
    }

    /**
     * Renders CMS Home page
     *
     * @param string|null $coreRoute
     * @return \Magento\Framework\Controller\Result\Forward
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
     */
    public function execute($coreRoute = null)
    {
        $this->_view->loadLayout();
        $this->_view->getLayout()->getBlock('testimonialform');
        $this->_view->renderLayout();
    }
}
  • refer this link if that's relevant to you magento.stackexchange.com/questions/76584/… – Mohit Rane Jul 16 at 12:16
  • but actually in my custom module inside and there is diffrent – Rv Singh Jul 16 at 12:22
  • in live site not working this module but staging working – Rv Singh Jul 16 at 12:23
  • did try removing cache and deploying commands? – Mohit Rane Jul 16 at 12:24
  • In which file check to in our module inside – Rv Singh Jul 16 at 12:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.