majordomo icon indicating copy to clipboard operation
majordomo copied to clipboard

Errors in cycle.php

Open dx168b opened this issue 3 years ago • 2 comments

Please, fix next errors in arguments of function "removeTree()": "chached" This is a cache, not a Georgian chacha. :)

This errors i founded with XDebug for PHP.

if (is_dir(ROOT . 'cached')) {
    DebMes("Removing cache from " . ROOT . 'cached');
    removeTree(ROOT . 'chached');
}
if (is_dir(ROOT . 'cms/cached')) {
    DebMes("Removing cache from " . ROOT . 'cms/cached');
    removeTree(ROOT . 'cms/chached');
}

Corrected code from my server:

if (is_dir(ROOT . 'cached')) {
    DebMes("Removing cache from " . ROOT . 'cached');
    removeTree(ROOT . 'cached');
}
if (is_dir(ROOT . 'cms/cached')) {
    DebMes("Removing cache from " . ROOT . 'cms/cached');
    removeTree(ROOT . 'cms/cached');
}

dx168b avatar Mar 07 '21 07:03 dx168b

by this chacha some modules - google locations, telegram and broadlink don't lost their parameters - cookies, avatars,... . Did you use this modules with your correct code?

xor2016 avatar Mar 07 '21 23:03 xor2016

Yes. Im using Telegram module. But chat user avatars were not displayed before these fixes. Everything else worked as it did.

dx168b avatar Mar 10 '21 16:03 dx168b