• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

A bug when Default Connection is not "site database"

tali

Member
Step to reproduce :
  1. Set another connection a part "site database" ; let's call it "database2"
  2. Set database2 as favorite and test your two connections.
  3. Create a list with a databasejoin element which you want for a table on the "site database"
  4. In the Data tab, choose "site database" -> You'll get the list of "database2" tables.
It may have to do with the following statements
  • In components/com_fabrik/models/list.php you have a call to
    Code:
    public function &getDb();
    strangely, despite
    Code:
    FabrikWorker::getConnection($this->getTable())
    returns the correct connection you asked for (Nb : 1 ), the following code
    Code:
    FabrikWorker::getConnection($this->getTable())->getDb()
    gives the DB of the Default connection (Nb : 2 ) you did not asked for.
So, if this is indeed a bug, meanwhile it is corrected, the solution is, when you want to create or connect to a table of the "site database", to be sure to have it as the default connection.
 
Last edited:
Create a list with a databasejoin element which you want for a table on the "site database"
Fabrik doesn't support "cross-joining", i.e. using a dbjoin to the other connection (although it's possible to select this)
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top