It is currently Sat Nov 23, 2019 8:03 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Fatal Error
PostPosted: Mon Nov 04, 2019 4:20 pm 

Joined :
Mon Nov 04, 2019 4:15 pm

Posts : 1
Hello,
I have Install extension and I get the following error.
Fatal error: Declaration of Apptha\Airhotels\Controller\Index\Index::execute() must be compatible with Magento\Cms\Controller\Index\Index::execute($coreRoute = NULL) in /app/code/Apptha/Airhotels/Controller/Index/Index.php on line 52.

lease Need Help

<?php
/**
* Apptha
*
* NOTICE OF LICENSE
*
* This source file is subject to the EULA
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.apptha.com/LICENSE.txt
*
* ==============================================================
* MAGENTO EDITION USAGE NOTICE
* ==============================================================
* This package designed for Magento COMMUNITY edition
* Apptha does not guarantee correct work of this extension
* on any other Magento edition except Magento COMMUNITY edition.
* Apptha does not provide extension support in case of
* incorrect edition usage.
* ==============================================================
*
* @category Apptha
* @package Apptha_Airhotels
* @version 1.0.0
* @author Apptha Team <developers@contus.in>
* @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
* @license http://www.apptha.com/LICENSE.txt
*
*/
namespace Apptha\Airhotels\Controller\Index;


class Index extends \Magento\Cms\Controller\Index\Index
{
public function execute(){

$objectManager = \Magento\Framework\App\ObjectManager::getInstance ();
//$airhotelsKey = $objectManager->get ( 'Apptha\Airhotels\Helper\Product' )->AirhotelsKey();
$moduleEnableornot = $objectManager->get ( 'Apptha\Airhotels\Helper\Data' )->getEnableFrontend();

if ($moduleEnableornot == 0) {
/**
* Notification Message
*/
$msg = base64_decode('PGgzIHN0eWxlPSJmbG9hdDpsZWZ0O2NvbG9yOnJlZDttYXJnaW46IDMwMHB4IDQ3NXB4OyB3aWR0aDoyNiU7IiBpZD0idGl0bGUtdGV4dCI+RW5hYmxlIEFpcmhvdGVscyB0byB2aWV3IHRoZSB3ZWJzaXRlPC9oMz4=');

$this->getResponse()->setBody ( $msg );
} else {
return parent::execute();
}
}
}


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron