KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Server Exception in MemCache construct #1208

Open Daniel Cordeiro opened this topic on on Dec 6, 2019 - 2 comments

Daniel Cordeiro commented on Dec 6, 2019

In Package v.4.3.2, the MemCache construct has an error:

Uncaught Exception: Please added servers in /home/sistemas/relatorio/vendor/koolreport/cache/MemCache.php:29

$ttl = Utility::get($settings,"ttl",5*60);
       $servers = Utility::get($servers,"servers"); // <---- calls $server instead $settings
        if($servers==null)
        {
            throw new \Exception("Please added servers");
        }

He calls $server instead $settings. When I change tihs line to use $settings, everything work correctly.

Daniel Cordeiro commented on Dec 6, 2019

And I get a notice in same file, line 35: PHP Notice: Undefined variable: port in /home/sistemas/relatorio/vendor/koolreport/cache/MemCache.php on line 35

foreach($servers as $host=>$port)
        {
            $this->_memCache->addServer($host,$post); // <-- The correctly is $port
        }
KoolReport commented on Dec 7, 2019

That's bad. Thank you very much for letting us know. The fix was applied.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
solved

Cache