I am creating a custom plugin for my site. I got the error "There is no active plugin with key `pluginkey`" while I activate the plugin. I made some changes, in the plugin and deactivated it. Then while activating the plugin, I got this error.
I have given activate.php code for your reference.
OW::getNavigation()->addMenuItem(OW_Navigation::MAIN, 'enquiry.create', 'enquiry', 'main_menu_item',
OW_Navigation::VISIBLE_FOR_ALL);
$widgetService = BOL_ComponentAdminService::getInstance();$widget = $widgetService->addWidget('ENQUIRY_CMP_UserProfile', false);
$widgetPlace = $widgetService->addWidgetToPlace($widget, BOL_ComponentService::PLACE_DASHBOARD);
$widgetService->addWidgetToPosition($widgetPlace, BOL_ComponentService::SECTION_RIGHT);
$widgetService1 = BOL_ComponentAdminService::getInstance();
$widget1 = $widgetService1->addWidget('ENQUIRY_CMP_SiblingsProfile', false);
$widgetPlace1 = $widgetService1->addWidgetToPlace($widget1, BOL_ComponentService::PLACE_DASHBOARD);
$widgetService1->addWidgetToPosition($widgetPlace1, BOL_ComponentService::SECTION_RIGHT);
$widgetService2 = BOL_ComponentAdminService::getInstance();
$widget2 = $widgetService2->addWidget('ENQUIRY_CMP_SpecialDetails', false);
$widgetPlace2 = $widgetService2->addWidgetToPlace($widget2, BOL_ComponentService::PLACE_DASHBOARD);
$widgetService2->addWidgetToPosition($widgetPlace2, BOL_ComponentService::SECTION_RIGHT);
$widgetService3 = BOL_ComponentAdminService::getInstance();
$widget3 = $widgetService3->addWidget('ENQUIRY_CMP_DocDetails', false);
$widgetPlace3 = $widgetService3->addWidgetToPlace($widget3, BOL_ComponentService::PLACE_DASHBOARD);
$widgetService3->addWidgetToPosition($widgetPlace3, BOL_ComponentService::SECTION_RIGHT);
$widgetService4 = BOL_ComponentAdminService::getInstance();
$widget4 = $widgetService4->addWidget('ENQUIRY_CMP_ParentPhoto', false);
$widgetPlace4 = $widgetService3->addWidgetToPlace($widget4, BOL_ComponentService::PLACE_DASHBOARD);
$widgetService4->addWidgetToPosition($widgetPlace4, BOL_ComponentService::SECTION_RIGHT);
What is going wrong? I reload the plugins page, then the plugin is in activated stage.
If my question is not understandable, Please inform.