Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete log no longer works in Ci 4.5.x #27

Open
pietos opened this issue Jun 26, 2024 · 1 comment
Open

Delete log no longer works in Ci 4.5.x #27

pietos opened this issue Jun 26, 2024 · 1 comment

Comments

@pietos
Copy link

pietos commented Jun 26, 2024

Where you try to delete a log file you will get the following error:
image

Currently

public function showLogs() {

   $request = \Config\Services::request();

    if(!is_null($request->getGet("del"))) {
        $this->deleteFiles(base64_decode($request->getGet("del")));
        $uri = \Config\Services::request()->uri->getPath();
        return redirect()->to('/'.$uri);
    }

Solution

public function showLogs() {

   $request = \Config\Services::request();

    if(!is_null($request->getGet("del"))) {
        $this->deleteFiles(base64_decode($request->getGet("del")));
        $uriPath = $request->getUri()->getPath();
        return redirect()->to($uriPath);
    }
@frankvanderee
Copy link

thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants