HI,
When I navigate to MRBS I'm getting and error:

Fatal error: Call to undefined function sql__query1() in ~/mrbs/dbsys.inc on line 83

I tested MRBS installation with default settings, it worked fine. When I switched to Drupal mode and tried to call from Drupal site - error.
I tried to open it in iframe - the same error. What is the correct way to call MRBS from Drupal site?

Thanks.

Comments

Anonymous’s picture

I think I have a similar problem. I changed the $auth["session"] = "drupal"; and $auth["type"] = "drupal";, moved MRBS to Drupal's root directory (so where / is the root directory of the website MRBS is in /drupal/mrbs) and installed and enabled the MRBS module. When I try to access the site I get this error (actual username removed)

Fatal error: Call to a member function query() on a non-object in /home/<<username>>/public_html/drupal/mrbs/mysqli.inc on line 46

If I change $auth["session"] back to "php" and $auth["type"] to "db_ext" it works (I already had it setup to use Drupal's user/pass DB for authentication).

All files have the correct chmod as required by the webserver.

yanke-2’s picture

I have sucessfully installed the modeul. I think maybe the install instruction is not clearly enough. I made a big mistake at the begging. You should know the main dir should be the same with drupal , it means all the install files are in the drupal dir and you should renamed the "web" dir to "mrbs"( If you download msr4 1.4.1 from its website there is a dir named " web" . ).
Is it right, Mr Wesku?

And thank you very much for this moduel, I think it is very useful! I'm learning how to control or frame it in the website now!

azeeshan’s picture

Does anyone have a solution for this? I am having the exact same problem.

I completed my site and everything on localhost and tested mrbs. MRBS worked fine for me on localhost. Now I want to go live with my site. So I moved the drupal directory just as it is to the webhost. The MRBS subdirectory is in the drupal site directory just like before. so NOTHING changed. everything is the same.

I then changed the database values for mrbs in config.inc.php so that it can connect to the database. That is all correct too.

auth session and type are set to "drupal" just like before.

However, now when I tried to open mrbs from the webhost I got this error:

"Fatal error: Call to undefined function: sql__query1() in /.../html/mrbs/dbsys.inc on line 83"

"html" is the folder in which my drupal site is.

Kindly please let me know if you have a solution. I am pulling my hair out over this :(

azeeshan’s picture

Priority: Normal » Critical
vesapalmu’s picture

Please post MRBS version that you are using. It seems there are often some changes that have a major impact in this integration when new minor MRBS versions are released. Only tested and working version is currently older 1.4.0.