What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Bug Fixed Showcase Categories page in acp error

Dadparvar

Member
Hi,

Since 2.7.2 version of SC, when I want to check categories page in acp, I get unexpected error and in error log I get:
Code:
Server Error Log
Error Info
ErrorException: Declaration of XFA_ExtendedCover_Extends_Showcase_ControllerAdmin_Category::_getCategoryCreateEditResponse(array $category) should be compatible with NFLJ_Showcase_ControllerAdmin_Category::_getCategoryCreateEditResponse(array $category, $actionType = false) - library/XFA/ExtendedCover/Extends/Showcase/ControllerAdmin/Category.php:0
Generated By: Unknown Account, 1 minute ago
Stack Trace
#0 /home/ius/domains/site.com/public_html/fa/library/XenForo/Autoloader.php(119): XenForo_Application::handlePhpError(2, 'Declaration of ...', '/home/ius/domai...', 0, Array)
#1 /home/ius/domains/site.com/public_html/fa/library/XenForo/Autoloader.php(119): include()
#2 /home/ius/domains/site.com/public_html/fa/library/XenForo/Application.php(1052): XenForo_Autoloader->autoload('XFA_ExtendedCov...')
#3 /home/ius/domains/site.com/public_html/fa/library/XenForo/Application.php(529): XenForo_Application::autoload('XFA_ExtendedCov...')
#4 /home/ius/domains/site.com/public_html/fa/library/XenForo/FrontController.php(460): XenForo_Application::resolveDynamicClass('NFLJ_Showcase_C...', 'controller')
#5 /home/ius/domains/site.com/public_html/fa/library/XenForo/FrontController.php(343): XenForo_FrontController->_getValidatedController('NFLJ_Showcase_C...', 'Index', Object(XenForo_RouteMatch))
#6 /home/ius/domains/site.com/public_html/fa/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#7 /home/ius/domains/site.com/public_html/fa/admin.php(13): XenForo_FrontController->run()
#8 {main}
Request State
array(3) {
  ["url"] => string(50) "https://site.com/fa/admin.php?showcase-category/"
  ["_GET"] => array(1) {
    ["showcase-category/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
In XFA/ExtendedCover/Extends/Showcase/ControllerAdmin/Category.php

Replace

PHP:
protected function _getCategoryCreateEditResponse(array $category)
{
   $response = parent::_getCategoryCreateEditResponse($category);

by

PHP:
protected function _getCategoryCreateEditResponse(array $category, $actionType = false)
{
   $response = parent::_getCategoryCreateEditResponse($category, $actionType);
 
Top