errors on field setup
kenorb - March 15, 2008 - 11:37
| Project: | Autonode CCK widget |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
If you have db_url variable in settings.php as an associative array, you have following errors:
* warning: parse_url() expects parameter 1 to be string, array given in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\sites\all\modules\contributions\autonode\autonode.module on line 389.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: _get_columns SHOW COLUMNS FROM in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\includes\database.mysql.inc on line 172.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE field=''' at line 1 query: autonode_field_settings SHOW COLUMNS FROM WHERE field='' in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\includes\database.mysql.inc on line 172.
* warning: parse_url() expects parameter 1 to be string, array given in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\sites\all\modules\contributions\autonode\autonode.module on line 389.
* warning: parse_url() expects parameter 1 to be string, array given in C:\Users\bronek\workspace\ICLP\vivid-intel-flex\trunk\webapp\intel_flex\sites\all\modules\contributions\autonode\autonode.module on line 389.In settings.php you can read followed text:
* To specify multiple connections to be used in your site (i.e. for
* complex custom modules) you can also specify an associative array
* of $db_url variables with the 'default' element used until otherwise
* requested.Patch for this bug in attachment.
| Attachment | Size |
|---|---|
| autonode.module.patch | 452 bytes |

#1
thanks for the patch, I will commit it as soon i can get to cvs close.
#2
patch committed.
#3
Automatically closed -- issue fixed for two weeks with no activity.
#4
I recently uploaded your module and I am still getting this error. Question, will module automatically create nodes with populated tables or do I have to run cron jobs or something. Sorry not a programmer, a designer but I'm learning.
#5
Could you paste the exact error message you're getting?
To answer your question: it should automatically create the node when you submit a not-yet existing reference.
#6
My client wants to download a Vendor account information database (including long/lang and keywords eventually) into the Drupal database and have Drupal automatically create nodes where we will then create a searchable database for businesses using a mix of other fun modules. Every once in awhile client would like to update listings the same way (can we avoid duplicates)
Thank you for your assistance or reality check:
First field set up I get:
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/zebra.msjones.com/httpdocs/includes/bootstrap.inc on line 670.
#7
So you get this error the very first time you click save field? Unfortunately this error is pretty obscure. Could you give me a sample data i could test with? Are there other modules that can affect the creation of the "business nodes"?