Can't save settings under new drupal install

arsenix - November 19, 2008 - 04:13
Project:Zina
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm not sure if this is a "bug report" or a "support request". I have a brand new drupal install on which I installed zina. When I hit update on the settings page on the zina panel I get:

Fatal error: Call to undefined function zvar_set() in /var/www/drupal-6.6/sites/all/modules/zina/zina/index.php on line 3945

I'm sure this is going to something silly but I haven't been able to find it yet. Poking around in the code it looks like under Drupal Zina uses the database rather than zina.ini.php? It doesn't appear like this is working though. Any tips here would be appreciated... I thought I followed all the appropriate directions but maybe I missed something.

James

#1

arsenix - November 19, 2008 - 04:34

Apparently I am using mysqli instead of mysql. Can Zina work with mysqli?

James

#2

ryanlath - November 19, 2008 - 05:03

um, no, that would be a bug. I just updated CVS (I think it gets updated twice a day), hopefully I fixed it.

#3

ryanlath - November 19, 2008 - 05:06

Yes and no. It currently can't reuse Drupal's mysqli copnnection, but you can set-up Zina's db stuff through Zina (when the CVS update goes through--hopefully). That was the bug.

#4

arsenix - November 20, 2008 - 03:17

Where do the database settings get configured through zina? In zina.ini.php like in standalone? It doesn't appear to be saving the database settings into the zini.ini.php. I tried putting them in there manually but it doesn't appear to use them. On the flipside I can now use zina within drupal albeit sans database!

Is this related to the fact that $active_db is now = "mysqli" instead of "mysql" which means zina_get_active_db() returns false... so database is automatically turned off?

James

#5

ryanlath - November 20, 2008 - 04:09

mmm, I think I still got a bug (it's all related because I didn't anticpate the mysqli...) In the meantime...

here's how it's supposed to work:
- if module, use module database, save Zina settings in module database (no user interaction required--obviously this is what I'm going for as much as possible)
- if module, but module database not compatible, allow setup of standalone Zina database via Zina config... (saving config in..., and maybe this is where my logic breaks down

Although, I'll support mysqli eventually, and this isn't exactly how I intended, you should be able to manually setup up the database by putting the db settings in zina.ini.php .

Surround the following with opening and closing php tags..

$db = "1";
$db_host = "xxx"; #host name (usually, localhost)
$db_name = "xxx"; #db name
$db_user = "xxx"; #username
$db_pwd = "xxx"; #password
$db_pre = "xxx"; #prefix

#6

ryanlath - December 4, 2008 - 09:37
Status:active» fixed

mysqli should be supported as of 2.0a12

#7

System Message - December 18, 2008 - 09:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.