Új hozzászólás Aktív témák

  • radi8tor

    MODERÁTOR

    Help me! :)

    Átköltözött a webshop magasabb PHP verzióra: 7.3.22
    Előjött két ilyen dolog az error logban:
    PHP Warning: count(): Parameter must be an array or an object that implements Countable in ...path_manager.php on line 49
    PHP Warning: count(): Parameter must be an array or an object that implements Countable in ...Core.php on line 1266

    Az első hivatkozott sor ez lenne:
    if (count($banned_cats) && (count($categories) > 1)) {

    A második pedig ez:
    return is_scalar($thing) ? mb_strlen($thing, $env->getCharset()) : count($thing);

    Guglival találtam egy ilyen megoldást (meg csomó másikat is), de nekem kevés a tudásom hogy ezt implementáljam:

    Replace the line:
    if (count($parentPathPieces) == 1) {
    with the following one:
    if ($parentPathPieces && count($parentPathPieces) == 1) {

    Tudnátok segíteni mire írjam át az én soraimat? :R

Új hozzászólás Aktív témák

Hirdetés