• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed article variable in Showcase addon

Status
Not open for further replies.

egerci

New Member
AMS
Showcase
Hello,

there is a error src/addons/XenAddons/Showcase/Pub/Controller/Item.php line 504

return $this->redirect($this->buildLink('showcase', $article));

I think "article" variable name should be replaced with "item" variable name. I guess this bug/error existed in previous versions.

XenForo Version String: XenForo 2.2.3 Patch 1

Addon Version String: Showcase 3.2.5


Code:
ErrorException: [E_NOTICE] Undefined variable: article src/addons/XenAddons/Showcase/Pub/Controller/Item.php:504
Oluşturan: Bilinmeyen Hesap 22 Şubat 2021 16:25

Code:
#0 src/addons/XenAddons/Showcase/Pub/Controller/Item.php(504): XF::handlePhpError(8, '[E_NOTICE] Unde...', 's...', 504, Array)
#1 src/XF/Mvc/Dispatcher.php(350): XenAddons\Showcase\Pub\Controller\Item->actionReviews(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XenAddons\\Showc...', 'Reviews', Object(XF\Mvc\RouteMatch), Object(XenAddons\Showcase\Pub\Controller\Item), NULL)
#3 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenAddons\Showcase\Pub\Controller\Item), NULL)
#4 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#6 src/XF.php(488): XF\App->run()
#7 index.php(20): XF::runApp('XF\\Pub\\App')
#8 {main}
 
I think "article" variable name should be replaced with "item" variable name.
That is correct and has been fixed in SC 3.2.6 (thank you for reporting).

I guess this bug/error existed in previous versions.
Yes, its been there for awhile now, thankfully its in a low level feature (filtering reviews), so not causing major issues.
 
Status
Not open for further replies.
Back
Top