GithubHelp home page GithubHelp logo

Can't select a DB about phpredmin HOT 8 CLOSED

sasanrose avatar sasanrose commented on June 23, 2024
Can't select a DB

from phpredmin.

Comments (8)

sasanrose avatar sasanrose commented on June 23, 2024

@topdatagmbh, I didn't get your problem. I would be grateful if you could explain more.

from phpredmin.

godoffrags avatar godoffrags commented on June 23, 2024

There are no log entrys in php log or your logs.
I test it in the newest firefox and newest chrome. In both i have the problem.
PHPRedmin runs on a amazon instance.
I wrote you to your gmail email a access for the redmin.

from phpredmin.

sasanrose avatar sasanrose commented on June 23, 2024

I tried and checked your instance of phpredmin and I confirm there was a problem with database selection. However, I am not able to debug it. Since, I don't have any access to the files and my own local instance works fine. We need more information for debugging this problem.

from phpredmin.

toubsen avatar toubsen commented on June 23, 2024

I can confirm that behaviour on my own instance. The culprit are the following lines in "libraries/controller.php", which will not work against Redis 2.4.x

    $databasesConfig = $this->_objects['db']->config('GET', 'databases');
    $current['max_databases'] = $databasesConfig['databases'];

Thus the max_databases will be set to zero against Redis 2.4, which in turn will always discard the passed "dbId" URL param.

This could be circumvented by using the INFO command againts redis, and then parsing the maximum dbId prefix from the output, but would then only catch the databases that have keys defined.

Best workaround to support such old versions is probably to allow to configure the maximum database number in config.php

from phpredmin.

toubsen avatar toubsen commented on June 23, 2024

I made small changes to my local instance to allow manual configuration of the max database count. Sent you a pull request for this, which unfortunately ended up in a new issue, as I missed how to let it appear here (sorry fo the duplicate).

from phpredmin.

blitzmann avatar blitzmann commented on June 23, 2024

I just got new hosting with 2.4, and I can also confirm this bug. @toubsen's fix seems to work

from phpredmin.

godoffrags avatar godoffrags commented on June 23, 2024

Fix work :) Thanks

from phpredmin.

blitzmann avatar blitzmann commented on June 23, 2024

A fix for this has been merged, go ahead and close the issue if you don't mind. =)

from phpredmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.