Community AlphaAlpha MUADMINS
PTPortuguês (Brasil)
Entrar
No MuADMINSContribuirAjude e ganhe Community PointsAbrirNo MuADMINSHorários de eventosBlood Castle, Devil Square, invasões em uma grade semanalAbrir
← Todas as soluções
Siteany

WebEngine CMS 1.2.4 shows 'Fatal error: Uncaught TypeError: count(): Argument #1 must be of type Countable|array, string given' in includes/functions.php as soon as the site opens on PHP 8.

✓ Confirmado na issue
  1. Open includes/functions.php.
  2. Replace every count( call with count((array) so a string or empty value is cast to an array.
  3. Better long term: update to WebEngine 1.2.5 or newer, where the author fixed this for new PHP versions.

A pessoa que abriu o issue confirmou que isso resolveu.

Palavras originais (Inglês)

“Apryed's fix did the trick for me!”

Na issue, 2023-05-10 (palavras originais)
Isso ajudou?

Ainda com problema? Buscar no MuGPS Pergunte ao Assistente MU

MuADMINS Community Alpha: grátis, feito pela comunidade e em desenvolvimento ativo.