NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Cobalt Error
Started by eterno

eterno

eterno

Member
Joined
23 Jan 2022
Last Seen
26 Jun 2022
Topics
4
Posts
6

Uncaught TypeError

count(): Argument #1 ($value) must be of type Countable|array, null given

(File: /var/www/vhosts/infinityroyale.it/vps.Infinityroyale.it/sito/Sito/custom/templates/Cobalt/template.php)

Link:

 

Frame #4

/var/www/vhosts/infinityroyale.it/vps.Infinityroyale.it/sito/Sito/custom/templates/Cobalt/template.php:312

 

Frame #3

/var/www/vhosts/infinityroyale.it/vps.Infinityroyale.it/sito/Sito/custom/templates/Cobalt/template.php:425

 

Frame #2

/var/www/vhosts/infinityroyale.it/vps.Infinityroyale.it/sito/Sito/modules/Core/pages/panel/templates.php:174

 

Frame #1

/var/www/vhosts/infinityroyale.it/vps.Infinityroyale.it/sito/Sito/index.php:89

File: /var/www/vhosts/infinityroyale.it/vps.Infinityroyale.it/sito/Sito/custom/templates/Cobalt/template.php

                                                        

 

  if($ext_update == "yes"){

 

   if(!$cache->isCached('cobalt_version')){

      $cobalt_api = file_get_contents('https://cdn.coldfiredzn.com/cobalt/updater.json');

      $cobalt_api_decode = json_decode($cobalt_api, true);

      $cobalt_version = $cobalt_api_decode["cobalt_version"];

      $cache->store('cobalt_version', $cobalt_version, 86400);

   } else {

      $cobalt_version = $cache->retrieve('cobalt_version');

   }

 

   $smarty->assign('COBALT_VERSION', $cobalt_version);

  }

     

    $local_rn = "282332";

  if(!$cache->isCached('cobalt_r_number_match')){

     $cobalt_rn_api = file_get_contents('https://cdn.coldfiredzn.com/cobalt/al.json');

     $cobalt_rn_api_decode = json_decode($cobalt_rn_api, true);

     

     for($i=0; $i<count>

         if ($cobalt_rn_api_decode['random_numbers'][$i] == $local_rn) {

             $cache->store('cobalt_rn', "yes");

         }

     }

     

     $cache->store('cobalt_r_number_match', "Checked", 86400);

  }

  

  $smarty->assign('COPY', $language->get('general', 'click_to_copy_tooltip'));

  $smarty->assign('TEMPLATE', $template);

 

  $this->_template = $template;

  $this->_language = $language;

  $this->_user = $user;

  $this->_pages = $pages;

  $this->_widgets = $widgets;

  $this->_cache = $cache;

  $this->_smarty = $smarty;

 

 }

 

                                                     

</count></p>
eterno · over 2 years ago