Duplicate Argument 1 passed to XF\Template\Templater::setMediaSites

Nirjonadda

Well-known member
Affected version
2.0.1
I am getting server error log.

Code:
TypeError: Argument 1 passed to XF\Template\Templater::setMediaSites() must be of the type array, boolean given, called in /home/nadda/public_html/src/XF/App.php on line 1447 src/XF/Template/Templater.php:383

Generated by: Unknown account Dec 26, 2017 at 7:37 PM

Stack trace

#0 src/XF/App.php(1447): XF\Template\Templater->setMediaSites(false)
#1 src/XF/App.php(1079): XF\App->setupTemplaterObject(Object(XF\Container), 'ThemeHouse\\Reac...')
#2 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#3 src/XF/App.php(1089): XF\Container->offsetGet('templater')
#4 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#5 src/XF/App.php(2657): XF\Container->offsetGet('cssWriter')
#6 css.php(19): XF\App->cssWriter()
#7 {main}

Request state

array(4) {
  ["url"] => string(450) "/css.php?css=public%3Adbtech_donate_display_block.less%2Cpublic%3Alightslider.less%2Cpublic%3Anode_list.less%2Cpublic%3Anotices.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Ath_firework_holidays.less%2Cpublic%3Ath_lastPostAv.less%2Cpublic%3Ath_snow_holidays.less%2Cpublic%3Ath_winter_holidays.less%2Cpublic%3Axc_user_activity.less%2Cpublic%3Axfmg_media_list.less%2Cpublic%3Aextra.less&s=24&l=1&d=1514043850&k=fc8fc91ba088fecd456874932af753f4f64ed645"
  ["referrer"] => string(27) "/"
  ["_GET"] => array(5) {
    ["css"] => string(326) "public:dbtech_donate_display_block.less,public:lightslider.less,public:node_list.less,public:notices.less,public:share_controls.less,public:th_firework_holidays.less,public:th_lastPostAv.less,public:th_snow_holidays.less,public:th_winter_holidays.less,public:xc_user_activity.less,public:xfmg_media_list.less,public:extra.less"
    ["s"] => string(2) "24"
    ["l"] => string(1) "1"
    ["d"] => string(10) "1514043850"
    ["k"] => string(40) "fc8fc91ba088fecd456874932af753f4f64ed645"
  }
  ["_POST"] => array(0) {
  }
}
 
It's essentially the same issue you have already reported. The data isn't being pulled from the cache correctly. You should be looking at getting your host to look at your caching set up and its various problems, or perhaps consider not using one at all (or a different cache layer).
 
Back
Top Bottom