[BS] Telegram

[BS] Telegram 1.0.0b

No permission to download

MesterPerfect

Active member
Template error: in_array() expects parameter 2 to be array, null given
11 minutes ago · src/addons/BS/Telegram/XF/Entity/UserOption.php:20


Code:
    ErrorException: Template error: in_array() expects parameter 2 to be array, null given src/addons/BS/Telegram/XF/Entity/UserOption.php:20 

    Generated by: MesterPerfect Oct 22, 2019 at 4:14 PM 

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'in_array() expe...', '/home/ahmed593/...', 20, Array)
#1 src/addons/BS/Telegram/XF/Entity/UserOption.php(20): in_array('trophy_award', NULL)
#2 [internal function]: BS\Telegram\XF\Entity\UserOption->doesReceiveTelegram('trophy', 'award')
#3 src/XF/Template/Templater.php(999): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l2/s5/public/account_preferences.php(222): XF\Template\Templater->method(Object(BS\Telegram\XF\Entity\UserOption), 'doesReceiveTele...', Array)
#5 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(MMO\Hide\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_prefere...', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Account\\Pref...', 'public:account_...', Array)
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#13 src/XF.php(390): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state

Code:
Request state

array(4) {
  ["url"] => string(23) "/vb/account/preferences"
  ["referrer"] => string(39) "https://mx-blind.com/vb/account/privacy"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
 

021

Well-known member
Template error: in_array() expects parameter 2 to be array, null given
11 minutes ago · src/addons/BS/Telegram/XF/Entity/UserOption.php:20


Code:
    ErrorException: Template error: in_array() expects parameter 2 to be array, null given src/addons/BS/Telegram/XF/Entity/UserOption.php:20

    Generated by: MesterPerfect Oct 22, 2019 at 4:14 PM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'in_array() expe...', '/home/ahmed593/...', 20, Array)
#1 src/addons/BS/Telegram/XF/Entity/UserOption.php(20): in_array('trophy_award', NULL)
#2 [internal function]: BS\Telegram\XF\Entity\UserOption->doesReceiveTelegram('trophy', 'award')
#3 src/XF/Template/Templater.php(999): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l2/s5/public/account_preferences.php(222): XF\Template\Templater->method(Object(BS\Telegram\XF\Entity\UserOption), 'doesReceiveTele...', Array)
#5 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(MMO\Hide\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_prefere...', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Account\\Pref...', 'public:account_...', Array)
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#13 src/XF.php(390): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state

Code:
Request state

array(4) {
  ["url"] => string(23) "/vb/account/preferences"
  ["referrer"] => string(39) "https://mx-blind.com/vb/account/privacy"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
.it was fixed in the latest update
 
Top